From: Francisco Jerez Date: Fri, 17 Jul 2015 15:46:21 +0000 (+0300) Subject: i965/fs: Pass a BAD_FILE header source to LOAD_PAYLOAD in emit_texture_gen7(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc2273a3400963e478582ee1efbfc8cdaae3eae7;p=mesa.git i965/fs: Pass a BAD_FILE header source to LOAD_PAYLOAD in emit_texture_gen7(). So that it's left uninitialized by LOAD_PAYLOAD, we only need to reserve space for it in the message since it will be initialized implicitly by the generator. Reviewed-by: Jason Ekstrand Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index ef8e967cfb2..09beb4d21c1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -483,7 +483,7 @@ fs_visitor::emit_texture_gen7(ir_texture_opcode op, fs_reg dst, * need to offset the Sampler State Pointer in the header. */ header_size = 1; - sources[0] = fs_reg(GRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD); + sources[0] = fs_reg(); length++; }