summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2022-02-06 14:13:24 -0800
committerJordan Justen <jordan.l.justen@intel.com>2022-02-09 02:04:22 -0800
commita4acf358bee837c11949fcf11f4e0c439f0481ca (patch)
tree71150b5353de39467af45c2190a9d9e728c6904c
parent03e1e19246da43f87b50a2ced38263a884b15b4c (diff)
intel/fs: Assert that old pull-const code is not used if devinfo->has_lscdg2-data-cache-pull-const
Jason changed this to use LSC in: f5876dfdb9b ("intel/fs: Lower uniform pull constant load message to LSC dataport") Cc: 22.0 <mesa-stable> Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-rw-r--r--src/intel/compiler/brw_fs_generator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_fs_generator.cpp b/src/intel/compiler/brw_fs_generator.cpp
index 55f302a57ce..0af40c739e5 100644
--- a/src/intel/compiler/brw_fs_generator.cpp
+++ b/src/intel/compiler/brw_fs_generator.cpp
@@ -1592,6 +1592,7 @@ fs_generator::generate_uniform_pull_constant_load_gfx7(fs_inst *inst,
assert(index.type == BRW_REGISTER_TYPE_UD);
assert(payload.file == BRW_GENERAL_REGISTER_FILE);
assert(type_sz(dst.type) == 4);
+ assert(!devinfo->has_lsc);
if (index.file == BRW_IMMEDIATE_VALUE) {
const uint32_t surf_index = index.ud;