diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-01-19 18:52:19 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2010-01-19 18:52:19 -0500 |
commit | 1bb6b1d9dbabafdb864ee112526b1212744ac614 (patch) | |
tree | e3ce937839148314224ea0f7e24ab9b7cae44eb3 /src/mesa | |
parent | f965345ea54a46cd9fcfd3bf24d078defd128425 (diff) |
r100/r200: fix dst pitch in blit code
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_blit.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_blit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_blit.c b/src/mesa/drivers/dri/r200/r200_blit.c index 8b9bad1c78..8d9c976916 100644 --- a/src/mesa/drivers/dri/r200/r200_blit.c +++ b/src/mesa/drivers/dri/r200/r200_blit.c @@ -162,7 +162,7 @@ static inline void emit_cb_setup(struct r200_context *r200, unsigned width, unsigned height) { - uint32_t dst_pitch = pitch * _mesa_get_format_bytes(mesa_format); + uint32_t dst_pitch = pitch; uint32_t dst_format = 0; BATCH_LOCALS(&r200->radeon); diff --git a/src/mesa/drivers/dri/radeon/radeon_blit.c b/src/mesa/drivers/dri/radeon/radeon_blit.c index ff32b7d69e..c40f21c774 100644 --- a/src/mesa/drivers/dri/radeon/radeon_blit.c +++ b/src/mesa/drivers/dri/radeon/radeon_blit.c @@ -157,7 +157,7 @@ static inline void emit_cb_setup(struct r100_context *r100, unsigned width, unsigned height) { - uint32_t dst_pitch = pitch * _mesa_get_format_bytes(mesa_format); + uint32_t dst_pitch = pitch; uint32_t dst_format = 0; BATCH_LOCALS(&r100->radeon); |