aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2016-04-25 19:20:49 -0700
committerJason Ekstrand <[email protected]>2018-06-28 13:19:38 -0700
commit789d20df36dfdd04fd8e9f628a26c1bab90cd037 (patch)
treefadc2401cd9a70be6bb1694d93cbbd4462dd30f8
parent1650442026254b76f24582f4a5c567cd5f7d4a3b (diff)
intel/eu: Fix pixel interpolator queries for SIMD32.
Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/intel/compiler/brw_eu_emit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c
index 365630b703a..46e34d3ba9a 100644
--- a/src/intel/compiler/brw_eu_emit.c
+++ b/src/intel/compiler/brw_eu_emit.c
@@ -3374,6 +3374,7 @@ brw_pixel_interpolator_query(struct brw_codegen *p,
const struct gen_device_info *devinfo = p->devinfo;
struct brw_inst *insn;
const uint16_t exec_size = brw_get_default_exec_size(p);
+ const uint16_t qtr_ctrl = brw_get_default_group(p) / 8;
/* brw_send_indirect_message will automatically use a direct send message
* if data is actually immediate.
@@ -3387,7 +3388,7 @@ brw_pixel_interpolator_query(struct brw_codegen *p,
brw_inst_set_rlen(devinfo, insn, response_length);
brw_inst_set_pi_simd_mode(devinfo, insn, exec_size == BRW_EXECUTE_16);
- brw_inst_set_pi_slot_group(devinfo, insn, 0); /* zero unless 32/64px dispatch */
+ brw_inst_set_pi_slot_group(devinfo, insn, qtr_ctrl / 2);
brw_inst_set_pi_nopersp(devinfo, insn, noperspective);
brw_inst_set_pi_message_type(devinfo, insn, mode);
}