mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
clc: relax spec constant validation
Multiple values can have multiple spec constants assigned and vtn handles
this just fine. So just drop that assert as we need it to run SyCL
kernels.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9037
Fixes: a699844ffb ("microsoft/clc: Parse SPIR-V specialization consts into metadata")
Signed-off-by: Karol Herbst <git@karolherbst.de>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23512>
This commit is contained in:
parent
1bbc997bef
commit
90b8666ff2
1 changed files with 0 additions and 1 deletions
|
|
@ -338,7 +338,6 @@ public:
|
|||
uint32_t spec_id = ins->words[ins->operands[2].offset];
|
||||
for (auto &c : specConstants) {
|
||||
if (c.second.id == spec_id) {
|
||||
assert(c.first == id);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue