summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_texture.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-06-26 20:37:06 -0700
committerCorbin Simpson <[email protected]>2009-06-26 21:25:41 -0700
commitaac6648cd8b27cb6653ac4a9722a49868b221447 (patch)
tree86b3235b21d8259b7ed04bbd286f618c43856645 /src/gallium/drivers/r300/r300_texture.c
parent7a3224c334a9a159f16e37672e4d8d833bc9bb52 (diff)
r300g: Use real texture formats.
What bugs me is that the YUV444 format somehow worked properly. :3
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 5ea9f56247b..e006ecf3abe 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -38,7 +38,7 @@ static void r300_setup_texture_state(struct r300_texture* tex,
R300_TX_HEIGHT((height - 1) & 0x7ff) | R300_TX_PITCH_EN;
/* XXX */
- state->format1 = R300_TX_FORMAT_A8R8G8B8;
+ state->format1 = r300_translate_texformat(tex->tex.format);
state->format2 = pitch - 1;