upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/root_signature.cpp
diff options
context:
space:
mode:
authoredwin042331-hue <edwin042331@gmail.com>2026-11-22 16:03:25 -0400
committeredwin042331-hue <edwin042331@gmail.com>2026-11-22 16:04:21 -0400
commitaa780e3c7f43668c2d2e9be58234c794703f705e (patch)
tree026a32e2877b728a6b7593836f99b39f230c66da /runtime/src/root_signature.cpp
parent355e67cbc45b163f96ee7b0091174ebde5c64e45 (diff)
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
Merge branch 'main' into perf/wave64-emulate-dead-scc-exec-fold
Diffstat (limited to 'runtime/src/root_signature.cpp')
-rw-r--r--runtime/src/root_signature.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/src/root_signature.cpp b/runtime/src/root_signature.cpp
index 762dd704e..844f1b580 100644
--- a/runtime/src/root_signature.cpp
+++ b/runtime/src/root_signature.cpp
@@ -13,6 +13,10 @@ PackResult pack(const RootSignature& sig) {
13 } 13 }
14 uint64_t cost = 0; // 64-bit: a parameter of 0xFFFFFFFF constants must not wrap past the limits 14 uint64_t cost = 0; // 64-bit: a parameter of 0xFFFFFFFF constants must not wrap past the limits
15 for (const RootParameter& p : sig.params) { 15 for (const RootParameter& p : sig.params) {
16 if (p.type != ParamType::Constants && p.type != ParamType::Descriptor && p.type != ParamType::Table) {
17 out.error = "unknown root parameter type";
18 return out;
19 }
16 if (p.type == ParamType::Constants && p.num_values == 0) { 20 if (p.type == ParamType::Constants && p.num_values == 0) {
17 out.error = "root constant parameter needs at least 1 dword"; 21 out.error = "root constant parameter needs at least 1 dword";
18 return out; 22 return out;