[Mesa-dev] [RFC PATCH 18/56] mesa: Support querying atomic counters referenced by tess stages

Chris Forbes chrisf at ijw.co.nz
Sat Sep 20 18:40:58 PDT 2014


Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 src/mesa/main/uniforms.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c
index ceeadf4..60fd11a 100644
--- a/src/mesa/main/uniforms.c
+++ b/src/mesa/main/uniforms.c
@@ -1325,10 +1325,10 @@ _mesa_GetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex,
       params[0] = ab->StageReferences[MESA_SHADER_FRAGMENT];
       return;
    case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER:
-      params[0] = GL_FALSE;
+      params[0] = ab->StageReferences[MESA_SHADER_TESS_CTRL];
       return;
    case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER:
-      params[0] = GL_FALSE;
+      params[0] = ab->StageReferences[MESA_SHADER_TESS_EVAL];
       return;
    default:
       _mesa_error(ctx, GL_INVALID_ENUM,
-- 
2.1.0



More information about the mesa-dev mailing list