summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv04
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2009-07-01 09:15:51 +1000
committerBen Skeggs <[email protected]>2009-07-01 09:26:57 +1000
commit18a1c36c2d32f8c571f98d7e6857a44bb2dc8942 (patch)
tree072d63b08749b8a0d58b8b380bf58b1e98af9996 /src/gallium/drivers/nv04
parent55e5ac17c15d9243c34633f3f4d4850394a8163d (diff)
nouveau: return some supported zeta formats
Diffstat (limited to 'src/gallium/drivers/nv04')
-rw-r--r--src/gallium/drivers/nv04/nv04_screen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv04/nv04_screen.c b/src/gallium/drivers/nv04/nv04_screen.c
index 3c710066078..190ef62178a 100644
--- a/src/gallium/drivers/nv04/nv04_screen.c
+++ b/src/gallium/drivers/nv04/nv04_screen.c
@@ -81,6 +81,13 @@ nv04_screen_is_format_supported(struct pipe_screen *screen,
switch (format) {
case PIPE_FORMAT_A8R8G8B8_UNORM:
case PIPE_FORMAT_R5G6B5_UNORM:
+ return TRUE;
+ default:
+ break;
+ }
+ } else
+ if (tex_usage & PIPE_TEXTURE_USAGE_DEPTH_STENCIL) {
+ switch (format) {
case PIPE_FORMAT_Z16_UNORM:
return TRUE;
default: