[Mesa-dev] [PATCH 08/10] glsl_to_tgsi: Adds a PIPE_SHADER_CAP_VARYINGS_PACKING_CONSTRAINTS

Vincent Lejeune vljn at ovi.com
Thu Feb 23 12:12:29 PST 2012


---
 src/gallium/include/pipe/p_defines.h   |    3 ++-
 src/mesa/state_tracker/st_extensions.c |    3 +++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 4155178..f08070a 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -533,7 +533,8 @@ enum pipe_shader_cap
    PIPE_SHADER_CAP_SUBROUTINES = 16, /* BGNSUB, ENDSUB, CAL, RET */
    PIPE_SHADER_CAP_INTEGERS = 17,
    PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS = 18,
-   PIPE_SHADER_CAP_OUTPUT_READ = 19
+   PIPE_SHADER_CAP_OUTPUT_READ = 19,
+   PIPE_SHADER_CAP_VARYINGS_PACKING_CONSTRAINTS = 20
 };
 
 
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index fb36a68..3092a1a 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -206,6 +206,9 @@ void st_init_limits(struct st_context *st)
       options->EmitNoIndirectUniform = !screen->get_shader_param(screen, sh,
                                         PIPE_SHADER_CAP_INDIRECT_CONST_ADDR);
 
+	options->VaryingsPackingConstraint = screen->get_shader_param(screen, sh,
+	                                      PIPE_SHADER_CAP_VARYINGS_PACKING_CONSTRAINTS);
+
       if (options->EmitNoLoops)
          options->MaxUnrollIterations = MIN2(screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_INSTRUCTIONS), 65536);
    }
-- 
1.7.7



More information about the mesa-dev mailing list