aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_screen.c
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2010-01-30 11:38:21 -0800
committerCorbin Simpson <[email protected]>2010-01-30 11:40:41 -0800
commit5a64bdaa0150c0d3883953237b7b8a910c98e5b3 (patch)
tree0cd817829db6da9c4b26ace05912dcb8478603c8 /src/gallium/drivers/r300/r300_screen.c
parent7056a74734d078c501d8318d47a364832aa8aeb6 (diff)
r300g: Add alpha render targets.
Signed-off-by: Corbin Simpson <[email protected]> Tested-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index f311284d15d..7df3ad02c8c 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -217,6 +217,8 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
case PIPE_FORMAT_A4R4G4B4_UNORM:
case PIPE_FORMAT_R5G6B5_UNORM:
case PIPE_FORMAT_A1R5G5B5_UNORM:
+ case PIPE_FORMAT_A8_UNORM:
+ case PIPE_FORMAT_L8_UNORM:
retval = usage &
(PIPE_TEXTURE_USAGE_RENDER_TARGET |
PIPE_TEXTURE_USAGE_DISPLAY_TARGET |
@@ -231,8 +233,6 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
case PIPE_FORMAT_DXT3_RGBA:
case PIPE_FORMAT_DXT5_RGBA:
case PIPE_FORMAT_YCBCR:
- case PIPE_FORMAT_L8_UNORM:
- case PIPE_FORMAT_A8_UNORM:
case PIPE_FORMAT_A8L8_UNORM:
retval = usage & PIPE_TEXTURE_USAGE_SAMPLER;
break;