i965/vs: Use GRFs for pull constant offsets on gen7.
authorEric Anholt <eric@anholt.net>
Thu, 4 Apr 2013 21:10:18 +0000 (14:10 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 10 Apr 2013 16:45:21 +0000 (09:45 -0700)
commitd5f7aebac2b1afbc5023cd114174860d8d763d06
tree7c4757cbd462c2d7629bd9fed1000c42e3a1ce41
parent3badbf7f7fa4898c69545fea3c60ea29cf61ae3b
i965/vs: Use GRFs for pull constant offsets on gen7.

This allows the computation of the offset to get written directly into the
message source.

shader-db results:
total instructions in shared programs: 3308390 -> 3283025 (-0.77%)
instructions in affected programs:     442998 -> 417633 (-5.73%)

No difference in GLB2.7 low res (n=9).

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp