nouveau: nv30: wrong variable for format
authorPatrice Mandin <patmandin@gmail.com>
Wed, 22 Jul 2009 20:25:36 +0000 (22:25 +0200)
committerPatrice Mandin <patmandin@gmail.com>
Wed, 22 Jul 2009 20:26:08 +0000 (22:26 +0200)
src/gallium/drivers/nv30/nv30_screen.c

index c8b40784b0585d09ab654cd3200009a067a7908b..f8285e4455fe6c64e9d99d3aed2cfa652551b518 100644 (file)
@@ -95,7 +95,7 @@ nv30_screen_surface_format_supported(struct pipe_screen *pscreen,
                }
        } else
        if (tex_usage & PIPE_TEXTURE_USAGE_DEPTH_STENCIL) {
-               switch (tex_usage) {
+               switch (format) {
                case PIPE_FORMAT_Z24S8_UNORM:
                case PIPE_FORMAT_Z24X8_UNORM:
                case PIPE_FORMAT_Z16_UNORM: