diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2011-03-16 18:32:54 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2011-03-16 20:18:40 +0800 |
commit | c4d9c4f7f10e70574d5c32cd6c8303cd628eb0be (patch) | |
tree | 501f8c1dc2f4a59375d4f881b8d5f076b54f4ef3 | |
parent | e4706d5cc88eeea41b37241a11eb59e45f0c853b (diff) |
i965c: add MESA_FORMAT_RGBA8888_REV to brw_format_for_mesa_format
The framebuffer uses
PIXEL_FORMAT_BGRA_8888 -> MESA_FORMAT_ARGB8888
while applications use
PIXEL_FORMAT_RGBA_8888 -> MESA_FORMAT_RGBA8888_REV
PIXEL_FORMAT_RGB_565 -> MESA_FORMAT_RGB565
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 1010d9f6f9..e1f8f57a9d 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -101,6 +101,7 @@ static uint32_t brw_format_for_mesa_format[MESA_FORMAT_COUNT] = [MESA_FORMAT_SL8] = BRW_SURFACEFORMAT_L8_UNORM_SRGB, [MESA_FORMAT_DUDV8] = BRW_SURFACEFORMAT_R8G8_SNORM, [MESA_FORMAT_SIGNED_RGBA8888_REV] = BRW_SURFACEFORMAT_R8G8B8A8_SNORM, + [MESA_FORMAT_RGBA8888_REV] = BRW_SURFACEFORMAT_R8G8B8A8_UNORM, }; bool |