summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_screen.c
diff options
context:
space:
mode:
authorXavier Chantry <[email protected]>2010-05-05 14:39:59 +0200
committerChristoph Bumiller <[email protected]>2010-05-05 14:39:59 +0200
commit6ddd6403652231bacfe66f84d0ec7be38953b785 (patch)
tree53aa220bd9ec18c19affb4cf94508783ac50176f /src/gallium/drivers/nouveau/nouveau_screen.c
parent8ddf93e84ce280c742be905ce779db59df90d154 (diff)
nouveau: only advertise PIPE_FORMAT_DXT* if s3tc available
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_screen.c')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c
index 233a91a2ffd..a91b00b5ada 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.c
+++ b/src/gallium/drivers/nouveau/nouveau_screen.c
@@ -5,6 +5,7 @@
#include "util/u_memory.h"
#include "util/u_inlines.h"
#include "util/u_format.h"
+#include "util/u_format_s3tc.h"
#include <stdio.h>
#include <errno.h>
@@ -248,6 +249,8 @@ nouveau_screen_init(struct nouveau_screen *screen, struct nouveau_device *dev)
pscreen->fence_signalled = nouveau_screen_fence_signalled;
pscreen->fence_finish = nouveau_screen_fence_finish;
+ util_format_s3tc_init();
+
return 0;
}