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:
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 }