r600: dont bswap rgba FLOAT formats
authorAndre Maasikas <amaasikas@gmail.com>
Fri, 10 Sep 2010 09:12:36 +0000 (12:12 +0300)
committerAndre Maasikas <amaasikas@gmail.com>
Fri, 10 Sep 2010 09:14:26 +0000 (12:14 +0300)
fixes at least some readback tests in piglit

src/mesa/drivers/dri/r600/r600_blit.c

index ef47ae1c05671cc3e854670244c25a8a4884a817..b98fd4b0b47ea4908d5c1934001446efc3f5f43c 100644 (file)
@@ -224,14 +224,14 @@ set_render_target(context_t *context, struct radeon_bo *bo, gl_format mesa_forma
             break;
     case MESA_FORMAT_RGBA_FLOAT32:
             format = COLOR_32_32_32_32_FLOAT;
-            comp_swap = SWAP_STD_REV;
+            comp_swap = SWAP_STD;
            SETbit(cb_color0_info, BLEND_FLOAT32_bit);
            CLEARbit(cb_color0_info, SOURCE_FORMAT_bit);
            SETfield(cb_color0_info, NUMBER_FLOAT, NUMBER_TYPE_shift, NUMBER_TYPE_mask);
             break;
     case MESA_FORMAT_RGBA_FLOAT16:
             format = COLOR_16_16_16_16_FLOAT;
-            comp_swap = SWAP_STD_REV;
+            comp_swap = SWAP_STD;
            CLEARbit(cb_color0_info, SOURCE_FORMAT_bit);
            SETfield(cb_color0_info, NUMBER_FLOAT, NUMBER_TYPE_shift, NUMBER_TYPE_mask);
             break;