summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shader_query.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-03-10 15:57:19 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-03-31 12:52:47 +1100
commit9e317271d7694d912da99e524294156b6c2de96e (patch)
treec92792608572d7e17a71a3e48911b6c433ef2cec /src/mesa/main/shader_query.cpp
parent51142e7705a5e0c28de9fc097fa7c8446ba0cffe (diff)
downloadexternal_mesa3d-9e317271d7694d912da99e524294156b6c2de96e.zip
external_mesa3d-9e317271d7694d912da99e524294156b6c2de96e.tar.gz
external_mesa3d-9e317271d7694d912da99e524294156b6c2de96e.tar.bz2
mesa: add support to query GL_TRANSFORM_FEEDBACK_BUFFER_INDEX
Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/shader_query.cpp')
-rw-r--r--src/mesa/main/shader_query.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index 15cc49a..ee2eeab 100644
--- a/src/mesa/main/shader_query.cpp
+++ b/src/mesa/main/shader_query.cpp
@@ -1322,6 +1322,12 @@ _mesa_program_resource_prop(struct gl_shader_program *shProg,
default:
goto invalid_operation;
}
+
+ case GL_TRANSFORM_FEEDBACK_BUFFER_INDEX:
+ VALIDATE_TYPE(GL_TRANSFORM_FEEDBACK_VARYING);
+ *val = RESOURCE_XFV(res)->BufferIndex;
+ return 1;
+
default:
goto invalid_enum;
}