From c9f28575461d8edb16ad8b7e1d02c5423d05c467 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 22 Aug 2022 18:00:09 -0700 Subject: [PATCH] intel/compiler/xe2: TXD is lowered to SIMD16 in SIMD32 mode Reviewed-by: Caio Oliveira Part-of: --- src/intel/compiler/brw_lower_logical_sends.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_lower_logical_sends.cpp b/src/intel/compiler/brw_lower_logical_sends.cpp index e9fcd849dfc..5788a7bfd65 100644 --- a/src/intel/compiler/brw_lower_logical_sends.cpp +++ b/src/intel/compiler/brw_lower_logical_sends.cpp @@ -953,8 +953,10 @@ lower_sampler_logical_send_gfx7(const fs_builder &bld, fs_inst *inst, opcode op, length++; break; case SHADER_OPCODE_TXD: - /* TXD should have been lowered in SIMD16 mode. */ - assert(bld.dispatch_width() == 8); + /* TXD should have been lowered in SIMD16 mode (in SIMD32 mode in + * Xe2+). + */ + assert(bld.dispatch_width() == (8 * reg_unit(devinfo))); /* Load dPdx and the coordinate together: * [hdr], [ref], x, dPdx.x, dPdy.x, y, dPdx.y, dPdy.y, z, dPdx.z, dPdy.z