summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-07-05 21:28:11 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-08-24 13:28:30 -0700
commit642aa58577bb0064c86fdd1a261a76a131886f06 (patch)
tree26a5e1e34259b92a3e873ba69041ac1cf22a4c9d /src/mesa/main/get.c
parent115a27357c4d991d8064452d0179493aef528e3e (diff)
downloadexternal_mesa3d-642aa58577bb0064c86fdd1a261a76a131886f06.zip
external_mesa3d-642aa58577bb0064c86fdd1a261a76a131886f06.tar.gz
external_mesa3d-642aa58577bb0064c86fdd1a261a76a131886f06.tar.bz2
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 <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 8cb0cc7..b017827 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -530,6 +530,13 @@ static const int extra_core_ARB_color_buffer_float_and_new_buffers[] = {
EXTRA_END
};
+static const int extra_EXT_shader_framebuffer_fetch[] = {
+ EXTRA_API_ES2,
+ EXTRA_API_ES3,
+ EXT(MESA_shader_framebuffer_fetch),
+ EXTRA_END
+};
+
/* This is the big table describing all the enums we accept in
* glGet*v(). The table is partitioned into six parts: enums
* understood by all GL APIs (OpenGL, GLES and GLES2), enums shared