summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv20
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2009-10-24 17:36:48 -0400
committerYounes Manton <[email protected]>2009-10-31 09:42:49 -0400
commit91232b7004d7a9fbf4f99bb9ec4e5eea8e1c6eef (patch)
tree68cb0096dd7c8953d78ee42bfb1e175661f766b1 /src/gallium/drivers/nv20
parent9831e1f76cd020e1cde2b13e03149415319a8135 (diff)
nouveau: Support X8R8G8B8 textures on nv30, nv40 and RTs on nv10-nv40.
Diffstat (limited to 'src/gallium/drivers/nv20')
-rw-r--r--src/gallium/drivers/nv20/nv20_state_emit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv20/nv20_state_emit.c b/src/gallium/drivers/nv20/nv20_state_emit.c
index 4042f46d053..0122b1c2cdb 100644
--- a/src/gallium/drivers/nv20/nv20_state_emit.c
+++ b/src/gallium/drivers/nv20/nv20_state_emit.c
@@ -135,6 +135,9 @@ static void nv20_state_emit_framebuffer(struct nv20_context* nv20)
rt_format = NV20TCL_RT_FORMAT_TYPE_LINEAR | 0x20;
switch (colour_format) {
+ case PIPE_FORMAT_X8R8G8B8_UNORM:
+ rt_format |= NV20TCL_RT_FORMAT_COLOR_X8R8G8B8;
+ break;
case PIPE_FORMAT_A8R8G8B8_UNORM:
case 0:
rt_format |= NV20TCL_RT_FORMAT_COLOR_A8R8G8B8;