From: Luca Barbieri Date: Sat, 7 Aug 2010 00:49:48 +0000 (+0200) Subject: nvfx: fix format support code for compressed texture X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95acfd0c8a53738a89fe91cf7643a8563bbe2b4f;p=mesa.git nvfx: fix format support code for compressed texture A source line was put in the wrong place. --- diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c index f2525ccb38f..d354bd166a7 100644 --- a/src/gallium/drivers/nvfx/nvfx_screen.c +++ b/src/gallium/drivers/nvfx/nvfx_screen.c @@ -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: