OSDN Git Service

i965/fs/nir: Minor refactor of store_output
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 28 Aug 2017 04:48:03 +0000 (21:48 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:37:52 +0000 (10:37 -0800)
commitec8c6649f17ab9790eaddf56a043abb3316aad48
tree7dd897deb1a115737ec6606221ee8062685f1b4a
parent030d2b5016360caf44ebfa3f6951a6d676316a89
i965/fs/nir: Minor refactor of store_output

Stop retyping the output of shuffle_64bit_data_for_32bit_write.  It's
always BRW_REGISTER_TYPE_D which is perfectly fine for writing out.
Also, when we change get_nir_src to return something with a 64-bit type
for 64-bit values, the retyping will not be at all what we want.  Also,
retyping the output based on src.type before we whack it back to 32 bits
is a problem because the output is always 32 bits.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_fs_nir.cpp