r100/r200: fix dst pitch in blit code
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 19 Jan 2010 23:52:19 +0000 (18:52 -0500)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 19 Jan 2010 23:52:19 +0000 (18:52 -0500)
src/mesa/drivers/dri/r200/r200_blit.c
src/mesa/drivers/dri/radeon/radeon_blit.c

index 8b9bad1c7853a44a164d75a7650de92646ab7ea3..8d9c976916866f3e6a1ac48cb7bf893e793b4035 100644 (file)
@@ -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);
 
index ff32b7d69e68b4527482f638d7db7c48875a5814..c40f21c7744164990dc3fc45f8019db4bd6afa64 100644 (file)
@@ -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);