summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-02-19 20:01:11 +0100
committerMarek Olšák <[email protected]>2010-02-19 20:02:41 +0100
commitf0c50345d13372e81805d9d176881b981a008123 (patch)
tree1d3aba4f321aa1e227cff50bb7163e262fb82898 /src/gallium
parent99ae9e8d7d57ae37629754edd5b1e3716611827f (diff)
r300g: fix rendering into the L8 and A8 texture formats
RB3D_COLORPITCH.COLORFORMAT.I8 stores the C2 component.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_state_inlines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_state_inlines.h b/src/gallium/drivers/r300/r300_state_inlines.h
index a6083925326..c990be40b9e 100644
--- a/src/gallium/drivers/r300/r300_state_inlines.h
+++ b/src/gallium/drivers/r300/r300_state_inlines.h
@@ -422,11 +422,11 @@ static INLINE uint32_t r300_translate_out_fmt(enum pipe_format format)
/* 8-bit outputs */
case PIPE_FORMAT_A8_UNORM:
return R300_US_OUT_FMT_C4_8 |
- R300_C0_SEL_A;
+ R300_C2_SEL_A;
case PIPE_FORMAT_I8_UNORM:
case PIPE_FORMAT_L8_UNORM:
return R300_US_OUT_FMT_C4_8 |
- R300_C0_SEL_R;
+ R300_C2_SEL_R;
/* R300_OUT_SIGN(x) */
default:
debug_printf("r300: Implementation error: "