summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blit.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-09-24 07:34:12 -0600
committerBrian Paul <[email protected]>2014-09-24 15:35:11 -0600
commit9f47220450d3083b7625db1818232cf5c68ae7cd (patch)
tree19b5504435f1b49d5c1dac7181de395fe667dfae /src/gallium/auxiliary/util/u_blit.c
parentb6947e02dedc2ea49c230c17c5c06bbed1c0c063 (diff)
util: use linear formats in util_blit_pixels()
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blit.c')
-rw-r--r--src/gallium/auxiliary/util/u_blit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index 502ee7ae5b9..2573bedf512 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -444,7 +444,7 @@ util_blit_pixels(struct blit_state *ctx,
assert(info.dst.box.width >= 0);
assert(info.dst.box.height >= 0);
info.dst.box.depth = 1;
- info.dst.format = dst->texture->format;
+ info.dst.format = dst_format;
info.src.resource = src_tex;
info.src.level = src_level;
info.src.box.x = srcX0;
@@ -453,7 +453,7 @@ util_blit_pixels(struct blit_state *ctx,
info.src.box.width = srcX1 - srcX0;
info.src.box.height = srcY1 - srcY0;
info.src.box.depth = 1;
- info.src.format = src_tex->format;
+ info.src.format = src_format;
info.mask = writemask;
info.filter = filter;
info.scissor_enable = 0;