History log of /external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5aa38832f0549fc45db88e344e234bb23482190d 17-Feb-2017 Brendan King <Brendan.King@imgtec.com> egl/dri3: implement query surface hook

This is a DRI3 version of a change made for DRI2
(4d6d4f939e0af4252e0b, "egl/dri2: implement query surface hook"),
that fixed failures in dEQP-EGL.functional.resize.surface_size.grow
and dEQP-EGL.functional.resize.surface_size.shrink.

Cc: Tapani Pälli <tapani.palli@intel.com>
Cc: Mark Janes <mark.a.janes@intel.com>
Cc: Chad Versace <chadversary@chromium.org>
Signed-off-by: Brendan King <Brendan.King@imgtec.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 884f65e1856733697a894c86f94803343cfa9a21)
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
7c6babb22c83d0cde747ec57c5ceb3c9e037c626 21-Nov-2016 Emil Velikov <emil.velikov@collabora.com> egl/x11: store xcb_screen_t *screen instead of int screen

Just fetch and store it once, rather than doing the
xcb_setup_roots_iterator + get_xcb_screen dance five times.

v2: Call xcb_disconnect() on error (Eric)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1)
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
8b780a543a39b6c2f971b074aff3c1d5d902b9b0 16-Nov-2016 Eric Engestrom <eric@engestrom.ch> egl/x11: misc style fixes

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
af7abc512c422183a761ce3d687086abe282fa74 12-Sep-2016 Emil Velikov <emil.velikov@collabora.com> loader: remove loader_get_driver_for_fd() driver_type

Reminiscent from the pre-loader days, were we had multiple instances of
the loader logic in separate places and one could build a "GALLIUM_ONLY"
version.

Since that is no longer the case and the loaders (glx/egl/gbm) do not
(and should not) require to know any classic/gallium specific we can
drop the argument and the related code.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
9caacb39b9f27919a7c986ad0c5d671a81b1f1e0 25-Aug-2016 Emil Velikov <emil.veliikov@collabora.com> loader/dri3: constify the loader_dri3_vtable

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
8fb9ea413de31cc6a95ac4c38215b621de728687 16-Aug-2016 Emil Velikov <emil.velikov@collabora.com> egl/dri2: move surface refcounting out of the platform code

All the platforms are duplicating what should be a driver/dri2 thing -
refcounting. Just fold it accordingly.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
0247e5ee3edd546b8598082d5b45d110f61853d0 06-Oct-2016 Martin Peres <martin.peres@linux.intel.com> loader/dri3: add get_dri_screen() to the vtable

This allows querying the current active screen from the
loader's common code.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
d6f669ba834697b7321c7ea2cbb38794385c7205 17-Jun-2016 Frank Binns <frank.binns@imgtec.com> egl: only store device name when Wayland support is built

The device name is only needed for WL_bind_wayland_display so make this clear
by only storing the device name when Wayland support is built.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
5505845945fb9bdd0c752b0f299a627591205dbd 17-Jun-2016 Frank Binns <frank.binns@imgtec.com> egl/x11_dri3: provide an authentication function

To support WL_bind_wayland_display an authentication function needs to be
provided but this was not being done for this platform as it's not strictly
necessary. However, as this isn't an optional function there's the potential
for a segfault to occur if authentication is mistakenly performed. Protect
against this by providing a function that prints an error.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
4c28c916ef229e94bd46fd1703e6b535e03e7e64 17-Jun-2016 Frank Binns <frank.binns@imgtec.com> egl/x11_dri3: disable WL_bind_wayland_display for devices without render nodes

Up until now, DRI3 was only used for devices that have render nodes, unless
overridden via an environment variable, with it falling back to DRI2 otherwise.
This limitation was there in order to support WL_bind_wayland_display as it
requires client opened device node fds to be authenticated, which isn't possible
when using DRI3. This is an unfortunate compromise as DRI3 provides security
benefits over DRI2.

Instead, allow DRI3 to be used for devices without render nodes but don't
advertise WL_bind_wayland_display in this case. Applications that need this
extension can still be run by disabling DRI3 support via the LIBGL_DRI3_DISABLE
environment variable.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
d98d6e6269167230d20efdc45d608435a52f25fb 30-May-2016 Dave Airlie <airlied@gmail.com> egl/dri3: don't crash on no context.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94925

Pointed out by Karol Herbst on irc.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
4518eea065df5c6877b996738ed425c292e3b144 30-Oct-2015 Martin Peres <martin.peres@linux.intel.com> egl: make it clear which platform x11 backend is being used (dri2 or 3)

Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
Reviewed-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
fcdc798515a74d12e4f1f848ac8b8bacce928855 21-Jul-2015 Boyan Ding <boyan.j.ding@gmail.com> egl/x11_dri3: Implement EGL_KHR_image_pixmap

v2: from Martin Peres
- Replace a tab with spaces

v3: from Martin Peres
- disable EGL_KHR_image_pixmap when is_different_gpu is set (Axel Davy)

Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c
f35198badeb956a8f435727d805a47c7e42610d0 21-Jul-2015 Boyan Ding <boyan.j.ding@gmail.com> egl/x11: Implement dri3 support with loader's dri3 helper

v2: From Martin Peres
- Tell we are compiling the dri3 backend in configure.ac
- Update the Makefile.am
- get rid of the LIBDRM_HAS_RENDERNODE_SUPPORT macro
- fix some warnings related to EGLuint64KHR to int64_t conversions
- use dri2_get_dri_config to get the __DRIconfig instead of open-coding it
- replace the occasional tabs with spaces

v3: From Martin Peres
- fix and indent problem (Matt Turner)
- drop the authenticate function, use NULL in the vtable instead (Emil)
- drop some useless includes (Emil Velikov)
- mandate libdrm (Emil Velikov)
- link to xcb-dri3 (Kristian Høgsberg)
- convert to the new loader interface for drwable (Kristian)
- remove some dead code after the dropping of some vfuncs (Kristian)
- add a comment on the topic of rendering to the frontbuffer

v4: From Martin Peres
- do not expose the preserved swap behavior (Acked by Eric Anholt)

Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
/external/mesa3d/src/egl/drivers/dri2/platform_x11_dri3.c