[Mesa-dev,RFC,2/5] i965/fs: set execution size for SEND messages in generate_uniform_pull_constant_load_gen7

Submitted by Iago Toral Quiroga on Dec. 9, 2015, 12:15 p.m.

Details

Message ID 1449663349-17772-3-git-send-email-itoral@igalia.com
State New
Headers show
Series "Skip automatic execsize for instructions with a width of 4" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga Dec. 9, 2015, 12:15 p.m.
---
 src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index 8d24883..36a7329 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -1252,6 +1252,7 @@  fs_generator::generate_uniform_pull_constant_load_gen7(fs_inst *inst,
       brw_set_default_compression_control(p, BRW_COMPRESSION_NONE);
       brw_set_default_mask_control(p, BRW_MASK_DISABLE);
       brw_inst *send = brw_next_insn(p, BRW_OPCODE_SEND);
+      brw_inst_set_exec_size(devinfo, send, dst.width);
       brw_pop_insn_state(p);
 
       brw_set_dest(p, send, dst);
@@ -1283,6 +1284,7 @@  fs_generator::generate_uniform_pull_constant_load_gen7(fs_inst *inst,
       /* dst = send(payload, a0.0 | <descriptor>) */
       brw_inst *insn = brw_send_indirect_message(
          p, BRW_SFID_SAMPLER, dst, src, addr);
+      brw_inst_set_exec_size(devinfo, insn, dst.width);
       brw_set_sampler_message(p, insn,
                               0,
                               0, /* LD message ignores sampler unit */