Skip to content

Commit

Permalink
don't splat if the image op uses a depth reference
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Oct 8, 2024
1 parent 92be38d commit 3711eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naga/src/front/spv/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl<I: Iterator<Item = u32>> super::Frontend<I> {
depth_ref,
};
let image_sample_handle = ctx.expressions.append(expr, self.span_from_with_op(start));
let handle = if is_depth {
let handle = if is_depth && depth_ref.is_none() {
let splat_expr = crate::Expression::Splat {
size: crate::VectorSize::Quad,
value: image_sample_handle,
Expand Down

0 comments on commit 3711eed

Please sign in to comment.