summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-09-30 09:04:04 +1000
committerDave Airlie <[email protected]>2010-09-30 09:04:50 +1000
commit2bc9d3f49837eb56f2602974004552e7852bfe0b (patch)
tree4a1395ca46d5f5c839a4e6df9cdc36adca10c3dc
parent534f7d5749e34003fc9a0a4c83e6cd6f86a1c2cb (diff)
r600g: add L8A8 unorm.
fixes texEnv warnings.
-rw-r--r--src/gallium/drivers/r600/r600_state_inlines.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state_inlines.h b/src/gallium/drivers/r600/r600_state_inlines.h
index 81ce1bb1900..f41b6a0d7f6 100644
--- a/src/gallium/drivers/r600/r600_state_inlines.h
+++ b/src/gallium/drivers/r600/r600_state_inlines.h
@@ -302,6 +302,9 @@ static inline uint32_t r600_translate_colorswap(enum pipe_format format)
case PIPE_FORMAT_Z16_UNORM:
return V_0280A0_SWAP_STD;
+ case PIPE_FORMAT_L8A8_UNORM:
+ return V_0280A0_SWAP_STD;
+
/* 32-bit buffers. */
case PIPE_FORMAT_A8B8G8R8_SRGB:
@@ -383,6 +386,9 @@ static INLINE uint32_t r600_translate_colorformat(enum pipe_format format)
case PIPE_FORMAT_Z16_UNORM:
return V_0280A0_COLOR_16;
+ case PIPE_FORMAT_L8A8_UNORM:
+ return V_0280A0_COLOR_8_8;
+
/* 32-bit buffers. */
case PIPE_FORMAT_A8B8G8R8_SRGB:
case PIPE_FORMAT_A8B8G8R8_UNORM: