Module: Mesa Branch: main Commit: f79123e1d99ccff43ba714e2a6457345b7239f6f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f79123e1d99ccff43ba714e2a6457345b7239f6f
Author: Francisco Jerez <curroje...@riseup.net> Date: Sat Feb 19 01:12:37 2022 -0800 intel/compiler/xe2: Fix for NibCtrl field removal. Reviewed-by: Caio Oliveira <caio.olive...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26860> --- src/intel/compiler/brw_eu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_eu.c b/src/intel/compiler/brw_eu.c index fb493e8ac4d..e2482a48a75 100644 --- a/src/intel/compiler/brw_eu.c +++ b/src/intel/compiler/brw_eu.c @@ -252,7 +252,11 @@ void brw_inst_set_group(const struct intel_device_info *devinfo, brw_inst *inst, unsigned group) { - if (devinfo->ver >= 7) { + if (devinfo->ver >= 20) { + assert(group % 8 == 0 && group < 32); + brw_inst_set_qtr_control(devinfo, inst, group / 8); + + } else if (devinfo->ver >= 7) { assert(group % 4 == 0 && group < 32); brw_inst_set_qtr_control(devinfo, inst, group / 8); brw_inst_set_nib_control(devinfo, inst, (group / 4) % 2);