nvfx: fix format support code for compressed texture
authorLuca Barbieri <luca@luca-barbieri.com>
Sat, 7 Aug 2010 00:49:48 +0000 (02:49 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sat, 21 Aug 2010 18:42:13 +0000 (20:42 +0200)
A source line was put in the wrong place.

src/gallium/drivers/nvfx/nvfx_screen.c

index f2525ccb38fbce2abed6f7f91241360f7ed970c1..d354bd166a7c8e08a1b278d3d4b3d627641e40f2 100644 (file)
@@ -198,7 +198,6 @@ nvfx_screen_surface_format_supported(struct pipe_screen *pscreen,
                        break;
                }
        } else {
-               switch (format) {
                if (tex_usage & PIPE_BIND_SAMPLER_VIEW) {
                        switch (format) {
                        case PIPE_FORMAT_DXT1_RGB:
@@ -210,6 +209,7 @@ nvfx_screen_surface_format_supported(struct pipe_screen *pscreen,
                                break;
                        }
                }
+               switch (format) {
                case PIPE_FORMAT_B8G8R8A8_UNORM:
                case PIPE_FORMAT_B8G8R8X8_UNORM:
                case PIPE_FORMAT_B5G5R5A1_UNORM: