diff options
author | Francisco Jerez <[email protected]> | 2016-07-05 21:28:11 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2016-08-24 13:28:30 -0700 |
commit | 642aa58577bb0064c86fdd1a261a76a131886f06 (patch) | |
tree | 26a5e1e34259b92a3e873ba69041ac1cf22a4c9d /src/mesa/main/glheader.h | |
parent | 115a27357c4d991d8064452d0179493aef528e3e (diff) |
mesa: Add support for querying GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT.
This can currently only give true as result since the only way you can
expose EXT_shader_framebuffer_fetch right now is by flipping the
MESA_shader_framebuffer_fetch bit, but that could potentially change
in the future, see [1] for an explanation.
[1] https://lists.freedesktop.org/archives/mesa-dev/2016-July/124028.html
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/glheader.h')
-rw-r--r-- | src/mesa/main/glheader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h index 40fada1ce03..3f2a923782c 100644 --- a/src/mesa/main/glheader.h +++ b/src/mesa/main/glheader.h @@ -140,6 +140,9 @@ typedef void *GLeglImageOES; #define GL_ETC1_RGB8_OES 0x8D64 #endif +#ifndef GL_EXT_shader_framebuffer_fetch +#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52 +#endif /* Inexplicably, GL_HALF_FLOAT_OES has a different value than GL_HALF_FLOAT. */ |