From 81a8e2e313d8830d8b4589eef2509a610921a158 Mon Sep 17 00:00:00 2001 From: jaschinski97-ops <232683647+jaschinski97-ops@users.noreply.github.com> Date: Tue, 24 Nov 2026 21:58:36 +0100 Subject: [PATCH] Skip first-half use tracking when no interpolation is present --- crates/victory-shader/src/io.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/victory-shader/src/io.rs b/crates/victory-shader/src/io.rs index 7773ca7..3899cc9 100644 --- a/crates/victory-shader/src/io.rs +++ b/crates/victory-shader/src/io.rs @@ -463,6 +463,9 @@ pub fn raise(p: &Program, native: &NativeProgram) -> Result { } } } + if first_halves.is_empty() { + return Ok(io); + } // A loaded i/j pair normally becomes one host interpolation: its first // half need not be evaluated. A first half also read as data (or used // without a second half) must keep P0 + i * P10. Follow phi uses too,