From a026d2d11c8abd2094b2453812ba1ccd947659ac Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Fri, 12 Oct 2018 15:50:04 -0700 Subject: [PATCH] intel/compiler: Assert that unsupported tg4 offsets were lowered for XeHP Reviewed-by: Jordan Justen Reviewed-by: Jason Ekstrand Part-of: --- src/intel/compiler/brw_fs_nir.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index b44d8c1a94a..f8e2b777bed 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -6105,6 +6105,11 @@ fs_visitor::nir_emit_texture(const fs_builder &bld, nir_tex_instr *instr) if (brw_texture_offset(instr, i, &offset_bits)) { header_bits |= offset_bits; } else { + /* On gfx12.5+, if the offsets are not both constant and in the + * {-8,7} range, nir_lower_tex() will have already lowered the + * source offset. So we should never reach this point. + */ + assert(devinfo->verx10 < 125); srcs[TEX_LOGICAL_SRC_TG4_OFFSET] = retype(src, BRW_REGISTER_TYPE_D); }