aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-03-29 16:35:13 +0200
committerMarek Olšák <[email protected]>2011-04-15 05:08:00 +0200
commitfaba01d171a85399332e2ece8f66ba40495eda90 (patch)
tree42a3432864f8af18a8eaaa9526da2302bf22cfd7 /src/gallium/drivers
parent8e28d842d192e69ba8cae4f9754766a26ae8c739 (diff)
r300g: enable A/L/LA/I float render targets
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 47d1c3ef75e..87e32a21fc1 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -420,13 +420,13 @@ static uint32_t r300_translate_colorformat(enum pipe_format format)
/* These formats work fine with UV88 if US_OUT_FMT is set correctly. */
case PIPE_FORMAT_A16_UNORM:
case PIPE_FORMAT_A16_SNORM:
- /*case PIPE_FORMAT_A16_FLOAT:*/
+ case PIPE_FORMAT_A16_FLOAT:
case PIPE_FORMAT_L16_UNORM:
case PIPE_FORMAT_L16_SNORM:
- /*case PIPE_FORMAT_L16_FLOAT:*/
+ case PIPE_FORMAT_L16_FLOAT:
case PIPE_FORMAT_I16_UNORM:
case PIPE_FORMAT_I16_SNORM:
- /*case PIPE_FORMAT_I16_FLOAT:*/
+ case PIPE_FORMAT_I16_FLOAT:
case PIPE_FORMAT_R16_UNORM:
case PIPE_FORMAT_R16_SNORM:
case PIPE_FORMAT_R16_FLOAT:
@@ -467,10 +467,10 @@ static uint32_t r300_translate_colorformat(enum pipe_format format)
case PIPE_FORMAT_R16G16_FLOAT:
case PIPE_FORMAT_L16A16_UNORM:
case PIPE_FORMAT_L16A16_SNORM:
- /*case PIPE_FORMAT_L16A16_FLOAT:
+ case PIPE_FORMAT_L16A16_FLOAT:
case PIPE_FORMAT_A32_FLOAT:
case PIPE_FORMAT_L32_FLOAT:
- case PIPE_FORMAT_I32_FLOAT:*/
+ case PIPE_FORMAT_I32_FLOAT:
case PIPE_FORMAT_R32_FLOAT:
return R300_COLOR_FORMAT_ARGB8888;
@@ -486,7 +486,7 @@ static uint32_t r300_translate_colorformat(enum pipe_format format)
/* These formats work fine with ARGB16161616 if US_OUT_FMT is set
* correctly. */
case PIPE_FORMAT_R32G32_FLOAT:
- /*case PIPE_FORMAT_L32A32_FLOAT:*/
+ case PIPE_FORMAT_L32A32_FLOAT:
return R300_COLOR_FORMAT_ARGB16161616;
/* 128-bit buffers. */
@@ -669,8 +669,8 @@ static uint32_t r300_translate_out_fmt(enum pipe_format format)
/*case PIPE_FORMAT_X8R8G8B8_SNORM:*/
case PIPE_FORMAT_A16_UNORM:
case PIPE_FORMAT_A16_SNORM:
- /*case PIPE_FORMAT_A16_FLOAT:
- case PIPE_FORMAT_A32_FLOAT:*/
+ case PIPE_FORMAT_A16_FLOAT:
+ case PIPE_FORMAT_A32_FLOAT:
return modifier |
R300_C0_SEL_A | R300_C1_SEL_R |
R300_C2_SEL_G | R300_C3_SEL_B;
@@ -704,12 +704,12 @@ static uint32_t r300_translate_out_fmt(enum pipe_format format)
case PIPE_FORMAT_R32G32B32A32_FLOAT:
case PIPE_FORMAT_L16_UNORM:
case PIPE_FORMAT_L16_SNORM:
- /*case PIPE_FORMAT_L16_FLOAT:
- case PIPE_FORMAT_L32_FLOAT:*/
+ case PIPE_FORMAT_L16_FLOAT:
+ case PIPE_FORMAT_L32_FLOAT:
case PIPE_FORMAT_I16_UNORM:
case PIPE_FORMAT_I16_SNORM:
- /*case PIPE_FORMAT_I16_FLOAT:
- case PIPE_FORMAT_I32_FLOAT:*/
+ case PIPE_FORMAT_I16_FLOAT:
+ case PIPE_FORMAT_I32_FLOAT:
return modifier |
R300_C0_SEL_R | R300_C1_SEL_G |
R300_C2_SEL_B | R300_C3_SEL_A;
@@ -717,8 +717,8 @@ static uint32_t r300_translate_out_fmt(enum pipe_format format)
/* LA outputs. */
case PIPE_FORMAT_L16A16_UNORM:
case PIPE_FORMAT_L16A16_SNORM:
- /*case PIPE_FORMAT_L16A16_FLOAT:
- case PIPE_FORMAT_L32A32_FLOAT:*/
+ case PIPE_FORMAT_L16A16_FLOAT:
+ case PIPE_FORMAT_L32A32_FLOAT:
return modifier |
R300_C0_SEL_R | R300_C1_SEL_A;