i965/vec4: Don't emit MOVs for unused URB slots.
authorMatt Turner <mattst88@gmail.com>
Thu, 15 Oct 2015 22:13:12 +0000 (15:13 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 21 Oct 2015 17:17:37 +0000 (10:17 -0700)
commit4a132349c333aba9f4dc264d35d5b366ed5e3759
treeb021f55896a40d1596ab5fad2bd42960bcff6a7b
parent04703762e544bc732f6f8b07033221dfbd58159f
i965/vec4: Don't emit MOVs for unused URB slots.

Otherwise we'd emit a MOV from the null register (which isn't allowed).

Helps 24 programs in shader-db (the geometry shaders in GSCloth):

instructions in affected programs:     302 -> 262 (-13.25%)

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp