Module: Mesa
Branch: main
Commit: 0397db1d8119d7875ecb54c943fb649450985c0e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0397db1d8119d7875ecb54c943fb649450985c0e

Author: Marek Olšák <[email protected]>
Date:   Sat Jul 23 13:20:44 2022 -0400

gallium/u_blitter: treat Z scaling as scaled blits

Hopefully this didn't break anything.

Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17692>

---

 src/gallium/auxiliary/util/u_blitter.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_blitter.c 
b/src/gallium/auxiliary/util/u_blitter.c
index 8db2f4d64d3..c7f5a07e821 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -2041,7 +2041,8 @@ void util_blitter_blit_generic(struct blitter_context 
*blitter,
    }
 
    bool is_scaled = dstbox->width != abs(srcbox->width) ||
-                    dstbox->height != abs(srcbox->height);
+                    dstbox->height != abs(srcbox->height) ||
+                    dstbox->depth != abs(srcbox->depth);
 
    if (src_has_stencil || !is_scaled)
       filter = PIPE_TEX_FILTER_NEAREST;

Reply via email to