diff options
author | Xavier Chantry <[email protected]> | 2010-05-05 14:39:59 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-05-05 14:39:59 +0200 |
commit | 6ddd6403652231bacfe66f84d0ec7be38953b785 (patch) | |
tree | 53aa220bd9ec18c19affb4cf94508783ac50176f /src/gallium/drivers/nouveau/nouveau_screen.c | |
parent | 8ddf93e84ce280c742be905ce779db59df90d154 (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.c | 3 |
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; } |