[Mesa-dev] [PATCH 24/53] intel/eu: Fix pixel interpolator queries for SIMD32.

Jason Ekstrand jason at jlekstrand.net
Thu May 24 21:56:06 UTC 2018


From: Francisco Jerez <currojerez at riseup.net>

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
 src/intel/compiler/brw_eu_emit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c
index 294bea0..fc39d94 100644
--- a/src/intel/compiler/brw_eu_emit.c
+++ b/src/intel/compiler/brw_eu_emit.c
@@ -3360,6 +3360,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_inst_exec_size(devinfo, p->current);
+   const uint16_t qtr_ctrl = brw_inst_qtr_control(devinfo, p->current);
 
    /* brw_send_indirect_message will automatically use a direct send message
     * if data is actually immediate.
@@ -3373,7 +3374,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);
 }
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list