upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorDennis Schöneberg <schoenebergde@gmail.com>2026-11-23 16:53:12 +0100
committerGitHub <noreply@github.com>2026-11-23 09:53:12 -0600
commit9a9ca1ec14523c470fa7e87eea1b8a59f8f9fcea (patch)
tree3f895696a5e6d53e91070b7515bfc545c1d4b055 /runtime/src
parentc3f171d0cbaea1a5deed2e1fa2f9a69346863399 (diff)
d3d12: match Windows recording-time ExecuteIndirect validation (#6830)
Squash-merged after diff review of PR #6830 - d3d12: match Windows recording-time ExecuteIndirect validation
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/command_list.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/src/command_list.h b/runtime/src/command_list.h
index 1325b789c..4b384bdc1 100644
--- a/runtime/src/command_list.h
+++ b/runtime/src/command_list.h
@@ -870,7 +870,10 @@ public:
870 } 870 }
871 871
872 bool execute_indirect(const ExecuteIndirect& indirect) { 872 bool execute_indirect(const ExecuteIndirect& indirect) {
873 if (!indirect.argument_buffer || !indirect.stride) return false; 873 if (!indirect.argument_buffer || !indirect.stride || indirect.stride % 4) return false;
874 if (indirect.argument_offset % 4) return false;
875 if (!indirect.count_buffer && indirect.count_offset) return false;
876 if (indirect.count_buffer && indirect.count_offset % 4) return false;
874 if (!indirect.max_count) return !closed_; // the PC runtime takes MaxCommandCount 0 as a no-op 877 if (!indirect.max_count) return !closed_; // the PC runtime takes MaxCommandCount 0 as a no-op
875 return append(indirect); 878 return append(indirect);
876 } 879 }