i965: Don't do vector splitting for ir_var_system_value
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 22 Oct 2013 19:00:11 +0000 (12:00 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 1 Nov 2013 23:01:48 +0000 (16:01 -0700)
commit81f5fb352a5a19ad79e385d9c444db4acdce621c
tree39d499e11a0bf48480fe425d1e98850e5a33ebb3
parent627b2692e916060f1cb72d5e254b63927961687d
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 <anuj.phogat@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp