mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
dri_util: cleanup dri extension handling
Explicitly set the version that is implemented, as that may differ from the one defined in dri_interface.h. The remaining __DRI*Extensions are treated as constants, so got ahead and declare them as such. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
51e3569573
commit
c812557a0e
2 changed files with 5 additions and 5 deletions
|
|
@ -775,7 +775,7 @@ const __DRIswrastExtension driSWRastExtension = {
|
|||
};
|
||||
|
||||
const __DRI2configQueryExtension dri2ConfigQueryExtension = {
|
||||
.base = { __DRI2_CONFIG_QUERY, __DRI2_CONFIG_QUERY_VERSION },
|
||||
.base = { __DRI2_CONFIG_QUERY, 1 },
|
||||
|
||||
.configQueryb = dri2ConfigQueryb,
|
||||
.configQueryi = dri2ConfigQueryi,
|
||||
|
|
|
|||
|
|
@ -174,13 +174,13 @@ struct __DRIscreenRec {
|
|||
struct {
|
||||
/* Flag to indicate that this is a DRI2 screen. Many of the above
|
||||
* fields will not be valid or initializaed in that case. */
|
||||
__DRIdri2LoaderExtension *loader;
|
||||
__DRIimageLookupExtension *image;
|
||||
__DRIuseInvalidateExtension *useInvalidate;
|
||||
const __DRIdri2LoaderExtension *loader;
|
||||
const __DRIimageLookupExtension *image;
|
||||
const __DRIuseInvalidateExtension *useInvalidate;
|
||||
} dri2;
|
||||
|
||||
struct {
|
||||
__DRIimageLoaderExtension *loader;
|
||||
const __DRIimageLoaderExtension *loader;
|
||||
} image;
|
||||
|
||||
driOptionCache optionInfo;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue