diff options
author | Karol Herbst <kherbst@redhat.com> | 2022-11-05 13:20:33 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-04-14 07:41:54 +0000 |
commit | 7cfb8cb1a5880169c30e258c3e53593fd13ad77b (patch) | |
tree | 8b0783d89469f66a380d53bc060f9543eba8df5b /src/nouveau | |
parent | bfee3a8563d2ec9bec89704c4cbb603203d9ad84 (diff) | |
download | mesa-7cfb8cb1a5880169c30e258c3e53593fd13ad77b.tar.gz |
nv50/ir: ignore CL system values
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19712>
Diffstat (limited to 'src/nouveau')
-rw-r--r-- | src/nouveau/codegen/nv50_ir_from_nir.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/nouveau/codegen/nv50_ir_from_nir.cpp b/src/nouveau/codegen/nv50_ir_from_nir.cpp index e12e6c84f9a..4801d42f18a 100644 --- a/src/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/nouveau/codegen/nv50_ir_from_nir.cpp @@ -1029,9 +1029,15 @@ bool Converter::assignSlots() { uint8_t i; BITSET_FOREACH_SET(i, nir->info.system_values_read, SYSTEM_VALUE_MAX) { - info_out->sv[info_out->numSysVals].sn = tgsi_get_sysval_semantic(i); - info_out->sv[info_out->numSysVals].si = 0; - info_out->sv[info_out->numSysVals].input = 0; + switch (i) { + case SYSTEM_VALUE_BASE_GLOBAL_INVOCATION_ID: + continue; + default: + info_out->sv[info_out->numSysVals].sn = tgsi_get_sysval_semantic(i); + info_out->sv[info_out->numSysVals].si = 0; + info_out->sv[info_out->numSysVals].input = 0; + break; + } switch (i) { case SYSTEM_VALUE_VERTEX_ID: |