Keep the diagnostic skip outside indirect argument validation

This commit is contained in:
FIocker committed 2026-11-24 01:22:49 +01:00
1 parent 0eca412a46
commit 38ae55dc13
1 file changed
+6 -6
+6 -6
View File
@@ -937,6 +937,12 @@ impl State {
arguments: u64,
count: Option<u64>,
) -> bool {
// Skip before the argument clamp can mutate the indirect buffer.
#[cfg(feature = "diagnostics")]
if crate::pipeline::is_skipped(self.pipeline as This) {
crate::pipeline::note_drop(self.pipeline as This);
return false;
}
const DRAW: u32 = 0;
const INDEXED: u32 = 1;
const DISPATCH: u32 = 2;
@@ -945,12 +951,6 @@ impl State {
let why = |what: &str| crate::pipeline::note_why(format!("indirect kind {kind}: {what}"));
#[cfg(not(feature = "diagnostics"))]
let why = |_: &str| {};
// Skip before the argument clamp can mutate the indirect buffer.
#[cfg(feature = "diagnostics")]
if crate::pipeline::is_skipped(self.pipeline as This) {
crate::pipeline::note_drop(self.pipeline as This);
return false;
}
let len = u64::from(stride) * u64::from(max.max(1));
let Some(args) = crate::shadow::find(arguments, len) else {
why("arguments outside title buffers");