From: Andre Maasikas Date: Fri, 10 Sep 2010 09:12:36 +0000 (+0300) Subject: r600: dont bswap rgba FLOAT formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67270e1fd60fbdfb9b78fd46cabf077dedf273df;p=mesa.git r600: dont bswap rgba FLOAT formats fixes at least some readback tests in piglit --- diff --git a/src/mesa/drivers/dri/r600/r600_blit.c b/src/mesa/drivers/dri/r600/r600_blit.c index ef47ae1c056..b98fd4b0b47 100644 --- a/src/mesa/drivers/dri/r600/r600_blit.c +++ b/src/mesa/drivers/dri/r600/r600_blit.c @@ -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;