diff options
author | Anuj Phogat <[email protected]> | 2013-10-22 12:00:11 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2013-11-01 16:01:48 -0700 |
commit | 81f5fb352a5a19ad79e385d9c444db4acdce621c (patch) | |
tree | 39d499e11a0bf48480fe425d1e98850e5a33ebb3 /src/mesa/drivers | |
parent | 627b2692e916060f1cb72d5e254b63927961687d (diff) |
i965: Don't do vector splitting for ir_var_system_value
This is required while adding builtin system value vec{2, 3, 4}
variables. For example:
(declare (sys) vec2 gl_SamplePosition)
Without this patch above glsl ir splits in to:
(declare (temporary) float gl_SamplePosition_x)
(declare (temporary) float gl_SamplePosition_y)
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp index eb7851ba567..6284b590234 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp @@ -111,6 +111,7 @@ ir_vector_reference_visitor::get_variable_entry(ir_variable *var) case ir_var_uniform: case ir_var_shader_in: case ir_var_shader_out: + case ir_var_system_value: case ir_var_function_in: case ir_var_function_out: case ir_var_function_inout: |