dri3: Enable GLX_MESA_query_renderer on DRI3 too
This should have happend around the time of commit 4680d23
, but Keith's
DRI3 patches and my GLX_MESA_query_renderer patches crossed in the mail.
I don't have a working DRI3 setup, so I haven't been able to actually
verify this. I'm hoping that someone can piglit this for me on DRI3...
It's also unfortunate the DRI2 and DRI3 can't share more code.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: Keith Packard <keithp@keithp.com>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:

committed by
Emil Velikov

parent
7ebdc9e48c
commit
625bdd64e5
@@ -76,6 +76,7 @@
|
||||
#include "dri_common.h"
|
||||
#include "dri3_priv.h"
|
||||
#include "loader.h"
|
||||
#include "dri2.h"
|
||||
|
||||
static const struct glx_context_vtable dri3_context_vtable;
|
||||
|
||||
@@ -1599,14 +1600,19 @@ dri3_bind_extensions(struct dri3_screen *psc, struct glx_display * priv,
|
||||
if (strcmp(extensions[i]->name, __DRI2_ROBUSTNESS) == 0)
|
||||
__glXEnableDirectExtension(&psc->base,
|
||||
"GLX_ARB_create_context_robustness");
|
||||
|
||||
if (strcmp(extensions[i]->name, __DRI2_RENDERER_QUERY) == 0) {
|
||||
psc->rendererQuery = (__DRI2rendererQueryExtension *) extensions[i];
|
||||
__glXEnableDirectExtension(&psc->base, "GLX_MESA_query_renderer");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static const struct glx_screen_vtable dri3_screen_vtable = {
|
||||
.create_context = dri3_create_context,
|
||||
.create_context_attribs = dri3_create_context_attribs,
|
||||
.query_renderer_integer = NULL,
|
||||
.query_renderer_string = NULL,
|
||||
.query_renderer_integer = dri3_query_renderer_integer,
|
||||
.query_renderer_string = dri3_query_renderer_string,
|
||||
};
|
||||
|
||||
/** dri3_create_screen
|
||||
|
Reference in New Issue
Block a user