mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
egl: add DRI_USE_INVALIDATE with non-sw kopper
Fixes: 991cc686a5f (egl: really fix kopper fd passing) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30647>
This commit is contained in:
parent
8bfbcd5b28
commit
b66743984c
2 changed files with 12 additions and 1 deletions
|
|
@ -2905,6 +2905,7 @@ static const __DRIextension *kopper_swrast_loader_extensions[] = {
|
|||
&kopper_swrast_loader_extension.base,
|
||||
&image_lookup_extension.base,
|
||||
&kopper_loader_extension.base,
|
||||
&use_invalidate.base,
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1647,6 +1647,14 @@ static const __DRIkopperLoaderExtension kopper_loader_extension = {
|
|||
.SetSurfaceCreateInfo = kopperSetSurfaceCreateInfo,
|
||||
};
|
||||
|
||||
static const __DRIextension *kopper_loader_extensions[] = {
|
||||
&swrast_loader_extension.base,
|
||||
&image_lookup_extension.base,
|
||||
&kopper_loader_extension.base,
|
||||
&use_invalidate.base,
|
||||
NULL,
|
||||
};
|
||||
|
||||
static const __DRIextension *swrast_loader_extensions[] = {
|
||||
&swrast_loader_extension.base,
|
||||
&image_lookup_extension.base,
|
||||
|
|
@ -1818,7 +1826,9 @@ dri2_initialize_x11_swrast(_EGLDisplay *disp)
|
|||
if (!dri2_load_driver(disp))
|
||||
goto cleanup;
|
||||
|
||||
if (check_xshm(dri2_dpy)) {
|
||||
if (disp->Options.Zink && !disp->Options.ForceSoftware) {
|
||||
dri2_dpy->loader_extensions = kopper_loader_extensions;
|
||||
} else if (check_xshm(dri2_dpy)) {
|
||||
dri2_dpy->loader_extensions = swrast_loader_shm_extensions;
|
||||
} else {
|
||||
dri2_dpy->loader_extensions = swrast_loader_extensions;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue