mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
dri_interface.h: define __DRI_ATTRIB_MAX
Thus we can use the value to explicitly size arrays, instead of __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE + 1. The latter seems magical and is error prone, as we add more dri attributes. v2: Fix off by one error (Tomasz) Cc: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
58f51f0754
commit
2c60bf093e
1 changed files with 1 additions and 0 deletions
|
|
@ -702,6 +702,7 @@ struct __DRIuseInvalidateExtensionRec {
|
||||||
#define __DRI_ATTRIB_BIND_TO_TEXTURE_TARGETS 46
|
#define __DRI_ATTRIB_BIND_TO_TEXTURE_TARGETS 46
|
||||||
#define __DRI_ATTRIB_YINVERTED 47
|
#define __DRI_ATTRIB_YINVERTED 47
|
||||||
#define __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE 48
|
#define __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE 48
|
||||||
|
#define __DRI_ATTRIB_MAX (__DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE + 1)
|
||||||
|
|
||||||
/* __DRI_ATTRIB_RENDER_TYPE */
|
/* __DRI_ATTRIB_RENDER_TYPE */
|
||||||
#define __DRI_ATTRIB_RGBA_BIT 0x01
|
#define __DRI_ATTRIB_RGBA_BIT 0x01
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue