[Mesa-dev] [PATCH 16/19] program: add subroutine uniform support

Dave Airlie airlied at gmail.com
Sun May 31 18:35:00 PDT 2015


From: Dave Airlie <airlied at redhat.com>

Add support for the subroutine uniform type ir->mesa.cpp

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/mesa/program/ir_to_mesa.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 3dcb537..404b029 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -533,6 +533,7 @@ type_size(const struct glsl_type *type)
       return size;
    case GLSL_TYPE_SAMPLER:
    case GLSL_TYPE_IMAGE:
+   case GLSL_TYPE_SUBROUTINE:
       /* Samplers take up one slot in UNIFORMS[], but they're baked in
        * at link time.
        */
@@ -2439,6 +2440,7 @@ _mesa_associate_uniform_storage(struct gl_context *ctx,
 	    break;
 	 case GLSL_TYPE_SAMPLER:
 	 case GLSL_TYPE_IMAGE:
+         case GLSL_TYPE_SUBROUTINE:
 	    format = uniform_native;
 	    columns = 1;
 	    break;
-- 
2.1.0



More information about the mesa-dev mailing list