diff options
author | Emil Velikov <[email protected]> | 2018-09-05 17:35:13 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-10-03 13:38:06 +0100 |
commit | d26b122ee88dae51fb230ecb0987811eabd5046b (patch) | |
tree | 90abeea85ac99550e83239a95c4b147513b04005 | |
parent | 4ef53669af215b6eba8188f2c6f330f98914b87b (diff) |
dri/common: move the required GLX_* token definitions locally
Will allow us to remove even bigger hack elsewhere. But more
importantly, we should not be using _any_ GLX tokens in DRI.
Document the gory details about the current side-effects.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 9a518153dc8..5a66bcf8e05 100644 --- a/src/mesa/drivers/dri/common/utils.c +++ b/src/mesa/drivers/dri/common/utils.c @@ -41,6 +41,20 @@ #include "utils.h" #include "dri_util.h" +/* WARNING: HACK: Local defines to avoid pulling glx.h. + * + * Any parts of this file that use the following defines are either partial or + * entirely broken wrt EGL. + * + * For example any getConfigAttrib() or indexConfigAttrib() query from EGL for + * SLOW or NON_CONFORMANT_CONFIG will not work as expected since the EGL tokens + * are different from the GLX ones. + */ +#define GLX_NONE 0x8000 +#define GLX_SLOW_CONFIG 0x8001 +#define GLX_NON_CONFORMANT_CONFIG 0x800D +#define GLX_DONT_CARE 0xFFFFFFFF + /** * Create the \c GL_RENDERER string for DRI drivers. * |