r600g/sb: treat undefined values like constants
authorDave Airlie <airlied@redhat.com>
Wed, 18 Feb 2015 00:13:20 +0000 (10:13 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 18 Feb 2015 01:13:06 +0000 (11:13 +1000)
commite8e4437ed0660b3f1d1912f53d997cf5e25f486d
tree5620f8bd55a7a55b4af17d624c05d0ef033b50ce
parent598d144cef412f114bddccc5d3c428682b41a7c2
r600g/sb: treat undefined values like constants

When we schedule an instructions with undefined value, we
eventually will use 0, which is a constant, however sb wasn't
taking this into account and creating ops with illegal scalar
swizzles.

this replaces my fix for op3 in t slots.

Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_sched.cpp