[Mesa-dev] [PATCH 04/19] gallium/u_blit: set dst format from pipe_resource, not pipe_surface

Marek Olšák maraeo at gmail.com
Thu Aug 9 09:07:16 PDT 2012


We use it to decide whether we can use resource_copy_region.

NOTE: This is a candidate for the 8.0 branch.
---
 src/gallium/auxiliary/util/u_blit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index 3887e65..7ec4aa3 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -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);
-- 
1.7.9.5



More information about the mesa-dev mailing list