diff options
| author | Dennis Schöneberg <schoenebergde@gmail.com> | 2026-11-23 16:53:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-23 09:53:12 -0600 |
| commit | 9a9ca1ec14523c470fa7e87eea1b8a59f8f9fcea (patch) | |
| tree | 3f895696a5e6d53e91070b7515bfc545c1d4b055 /runtime/src | |
| parent | c3f171d0cbaea1a5deed2e1fa2f9a69346863399 (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.h | 5 |
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 | } |