Mesa (master): st/dri: fix MSAA resolving of buffers with height > width
Marek Olšák
mareko at kemper.freedesktop.org
Thu Jun 13 01:56:17 UTC 2013
Module: Mesa
Branch: master
Commit: 683b065320dc6e15383be931648c6e7cbe175b40
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=683b065320dc6e15383be931648c6e7cbe175b40
Author: Marek Olšák <maraeo at gmail.com>
Date: Wed May 29 23:08:11 2013 +0200
st/dri: fix MSAA resolving of buffers with height > width
Reviewed-by: Brian Paul <brianp at vmware.com>
---
.../state_trackers/dri/common/dri_drawable.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.c b/src/gallium/state_trackers/dri/common/dri_drawable.c
index cd4a36a..f784ee6 100644
--- a/src/gallium/state_trackers/dri/common/dri_drawable.c
+++ b/src/gallium/state_trackers/dri/common/dri_drawable.c
@@ -374,12 +374,12 @@ dri_msaa_resolve(struct dri_context *ctx,
memset(&blit, 0, sizeof(blit));
blit.dst.resource = dst;
blit.dst.box.width = dst->width0;
- blit.dst.box.height = dst->width0;
+ blit.dst.box.height = dst->height0;
blit.dst.box.depth = 1;
blit.dst.format = util_format_linear(dst->format);
blit.src.resource = src;
blit.src.box.width = src->width0;
- blit.src.box.height = src->width0;
+ blit.src.box.height = src->height0;
blit.src.box.depth = 1;
blit.src.format = util_format_linear(src->format);
blit.mask = PIPE_MASK_RGBA;
More information about the mesa-commit
mailing list