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 <anuj.phogat@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
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: