diff options
author | Marek Olšák <marek.olsak@amd.com> | 2022-07-23 13:20:44 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-08-09 19:19:09 +0000 |
commit | 0397db1d8119d7875ecb54c943fb649450985c0e (patch) | |
tree | bd47626e059602d55b382951c8c197195b437084 /src | |
parent | 854fb27275c7744ea022ef9a2eb6320b59388834 (diff) | |
download | mesa-0397db1d8119d7875ecb54c943fb649450985c0e.tar.gz mesa-0397db1d8119d7875ecb54c943fb649450985c0e.tar.bz2 mesa-0397db1d8119d7875ecb54c943fb649450985c0e.zip |
gallium/u_blitter: treat Z scaling as scaled blits
Hopefully this didn't break anything.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17692>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |