diff options
author | Alex Deucher <[email protected]> | 2010-01-19 01:26:35 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2010-01-19 01:26:35 -0500 |
commit | a67cd1994f3474dd638af76b2bf5b19490863cba (patch) | |
tree | 76b34f3cf3b9807962570b98c0ce6dbc3b71b702 /src/mesa | |
parent | f6d529083fe7d945d522b4ab65314e89540238c4 (diff) |
r100/r200: add blit support for ARGB4444
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_blit.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_blit.c | 6 |
2 files changed, 12 insertions, 0 deletions
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; |