diff options
author | Marek Olšák <[email protected]> | 2012-09-13 00:36:37 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-09-30 18:57:56 +0200 |
commit | db85443922e93191b9056799ed649ab6f7d8f758 (patch) | |
tree | ab8d1ea5970803574b7e5caf5d0b7b23d701e35d /src/gallium/drivers/nv30/nv30_screen.c | |
parent | ff2d192ec50e6a8cbaa8f14bca989fe5b61a3c46 (diff) |
nv30: use util_format_is_supported
Hardware drivers *must* use it.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_screen.c')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_screen.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gallium/drivers/nv30/nv30_screen.c b/src/gallium/drivers/nv30/nv30_screen.c index c9e5c97b509..18ad3a87461 100644 --- a/src/gallium/drivers/nv30/nv30_screen.c +++ b/src/gallium/drivers/nv30/nv30_screen.c @@ -23,6 +23,7 @@ * */ +#include "util/u_format.h" #include "util/u_format_s3tc.h" #include "nouveau/nv_object.xml.h" @@ -245,16 +246,8 @@ nv30_screen_is_format_supported(struct pipe_screen *pscreen, if (!(0x00000017 & (1 << sample_count))) return FALSE; - if (!util_format_s3tc_enabled) { - switch (format) { - case PIPE_FORMAT_DXT1_RGB: - case PIPE_FORMAT_DXT1_RGBA: - case PIPE_FORMAT_DXT3_RGBA: - case PIPE_FORMAT_DXT5_RGBA: - return FALSE; - default: - break; - } + if (!util_format_is_supported(format, bindings)) { + return FALSE; } /* transfers & shared are always supported */ |