i965/fs: retype offset_reg to UD at load_ssbo
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Mon, 19 Mar 2018 14:03:17 +0000 (15:03 +0100)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Fri, 20 Apr 2018 11:30:12 +0000 (13:30 +0200)
commiteb96bd57c71dba81e81c61f30ff8f4c5be17440f
treeca40f46d886b5bb25b7c24c9aaa785c8bf9bb7f5
parent24fb3e6aa166b3afe906eb2845077766075189ed
i965/fs: retype offset_reg to UD at load_ssbo

All operations with offset_reg at do_vector_read are done
with UD type. So copy propagation was not working through
the generated MOVs:

mov(8) vgrf9:UD, vgrf7:D

This change allows removing the MOV generated for reading the
first components for 16-bit and 64-bit ssbo reads with
non-constant offsets.

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