i965: support constant gather offsets larger than 4 bits
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Nov 2016 02:05:34 +0000 (21:05 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Nov 2016 15:44:01 +0000 (07:44 -0800)
commit4f2d1d6ea713df8f8d816b48b9e99c7117cf36d7
treed281d7a0596eb53729beab251c4fad37df597c19
parentfaf20df143a63e58aa729446f21c38ae39a438f2
i965: support constant gather offsets larger than 4 bits

Offsets that don't fit into 4 bits need to force gather_po to be
selected. Adjust the logic so that this happens.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_shader.h
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp