From a67cd1994f3474dd638af76b2bf5b19490863cba Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 19 Jan 2010 01:26:35 -0500 Subject: r100/r200: add blit support for ARGB4444 --- src/mesa/drivers/dri/r200/r200_blit.c | 6 ++++++ src/mesa/drivers/dri/radeon/radeon_blit.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src') diff --git a/src/mesa/drivers/dri/r200/r200_blit.c b/src/mesa/drivers/dri/r200/r200_blit.c index b6bed85a6cf..2b3b165c5ff 100644 --- a/src/mesa/drivers/dri/r200/r200_blit.c +++ b/src/mesa/drivers/dri/r200/r200_blit.c @@ -88,6 +88,9 @@ static void inline emit_tx_setup(struct r200_context *r200, case MESA_FORMAT_RGB565: txformat |= R200_TXFORMAT_RGB565; break; + case MESA_FORMAT_ARGB4444: + txformat |= R200_TXFORMAT_ARGB4444 | R200_TXFORMAT_ALPHA_IN_MAP; + break; case MESA_FORMAT_ARGB1555: txformat |= R200_TXFORMAT_ARGB1555 | R200_TXFORMAT_ALPHA_IN_MAP; break; @@ -149,6 +152,9 @@ static inline void emit_cb_setup(struct r200_context *r200, case MESA_FORMAT_RGB565: dst_format = RADEON_COLOR_FORMAT_RGB565; break; + case MESA_FORMAT_ARGB4444: + dst_format = RADEON_COLOR_FORMAT_ARGB4444; + break; case MESA_FORMAT_ARGB1555: dst_format = RADEON_COLOR_FORMAT_ARGB1555; break; diff --git a/src/mesa/drivers/dri/radeon/radeon_blit.c b/src/mesa/drivers/dri/radeon/radeon_blit.c index 4abe7a2960d..bc46018255d 100644 --- a/src/mesa/drivers/dri/radeon/radeon_blit.c +++ b/src/mesa/drivers/dri/radeon/radeon_blit.c @@ -86,6 +86,9 @@ static void inline emit_tx_setup(struct r100_context *r100, case MESA_FORMAT_RGB565: txformat |= RADEON_TXFORMAT_RGB565; break; + case MESA_FORMAT_ARGB4444: + txformat |= RADEON_TXFORMAT_ARGB4444 | RADEON_TXFORMAT_ALPHA_IN_MAP; + break; case MESA_FORMAT_ARGB1555: txformat |= RADEON_TXFORMAT_ARGB1555 | RADEON_TXFORMAT_ALPHA_IN_MAP; break; @@ -144,6 +147,9 @@ static inline void emit_cb_setup(struct r100_context *r100, case MESA_FORMAT_RGB565: dst_format = RADEON_COLOR_FORMAT_RGB565; break; + case MESA_FORMAT_ARGB4444: + dst_format = RADEON_COLOR_FORMAT_ARGB4444; + break; case MESA_FORMAT_ARGB1555: dst_format = RADEON_COLOR_FORMAT_ARGB1555; break; -- cgit v1.2.3