mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
gallium/u_blit: set dst format from pipe_resource, not pipe_surface
We use it to decide whether we can use resource_copy_region. NOTE: This is a candidate for the 8.0 branch.
This commit is contained in:
parent
1a17c42344
commit
b7c4ee21c5
1 changed files with 1 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ util_blit_pixels(struct blit_state *ctx,
|
|||
dstX0, dstY0, dstX1, dstY1);
|
||||
|
||||
src_format = util_format_linear(src_tex->format);
|
||||
dst_format = util_format_linear(dst->format);
|
||||
dst_format = util_format_linear(dst->texture->format);
|
||||
|
||||
/* See whether we will blit depth or stencil. */
|
||||
is_depth = util_format_has_depth(src_desc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue