mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
glx/sw: check for modifier support in the kopper path
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24075>
This commit is contained in:
parent
5589d2b556
commit
1887368df4
2 changed files with 8 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include <dlfcn.h>
|
||||
#include "dri_common.h"
|
||||
#include "drisw_priv.h"
|
||||
#include "dri3_priv.h"
|
||||
#include <X11/extensions/shmproto.h>
|
||||
#include <assert.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
|
@ -998,6 +999,11 @@ driswCreateScreenDriver(int screen, struct glx_display *priv,
|
|||
glx_config_destroy_list(psc->base.visuals);
|
||||
psc->base.visuals = visuals;
|
||||
|
||||
if (pdpyp->zink) {
|
||||
bool err;
|
||||
psc->has_multibuffer = dri3_check_multibuffer(priv->dpy, &err);
|
||||
}
|
||||
|
||||
psc->driver_configs = driver_configs;
|
||||
|
||||
psc->base.vtable = &drisw_screen_vtable;
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ struct drisw_screen
|
|||
|
||||
void *driver;
|
||||
const char *name;
|
||||
|
||||
bool has_multibuffer;
|
||||
};
|
||||
|
||||
struct drisw_drawable
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue