mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 22:40:09 +01:00
gallium/u_blit: check nr_samples before using resource_copy_region
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
e7689303a8
commit
6b3f1ae12b
1 changed files with 2 additions and 1 deletions
|
|
@ -478,10 +478,11 @@ util_blit_pixels(struct blit_state *ctx,
|
|||
|
||||
/*
|
||||
* Check for simple case: no format conversion, no flipping, no stretching,
|
||||
* no overlapping.
|
||||
* no overlapping, same number of samples.
|
||||
* Filter mode should not matter since there's no stretching.
|
||||
*/
|
||||
if (formats_compatible(src_format, dst_format) &&
|
||||
src_tex->nr_samples == dst->texture->nr_samples &&
|
||||
is_stencil == blit_stencil &&
|
||||
is_depth == blit_depth &&
|
||||
srcX0 < srcX1 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue