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>
This commit is contained in:
Marek Olšák 2022-07-23 13:20:44 -04:00 committed by Marge Bot
parent 854fb27275
commit 0397db1d81

View file

@ -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;