summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm
diff options
context:
space:
mode:
authorCooper Yuan <[email protected]>2009-10-29 20:20:59 +0800
committerCooper Yuan <[email protected]>2009-10-29 20:20:59 +0800
commitda1fb3be8293df9f89aaec726f32d73e03d57fb6 (patch)
treeb63de92542f4fe682e0eb9f07f5d44c08c6d2ca4 /src/gallium/winsys/drm
parent59b29516af2d4d8f83723559921a3709eb77a7d2 (diff)
r300g: Fix bytes_per_line calculation error while displaying surface
Diffstat (limited to 'src/gallium/winsys/drm')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c
index 0a7b5ecb094..81cd9dc4fb1 100644
--- a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c
+++ b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c
@@ -218,7 +218,7 @@ static void radeon_display_surface(struct pipe_winsys *pws,
ximage->data = data;
ximage->width = psurf->width;
ximage->height = psurf->height;
- ximage->bytes_per_line = r300tex->stride_override;
+ ximage->bytes_per_line = psurf->width * (ximage->bits_per_pixel >> 3);
XPutImage(rvl_ctx->display, rvl_ctx->drawable,
XDefaultGC(rvl_ctx->display, rvl_ctx->screen),