From 9f362a587e6204d9007a3aac071d3d507caaa756 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 2 Oct 2011 16:42:54 +0200 Subject: [PATCH] softpipe: add missing stencil format case in convert_quad_stencil() Part of the fix for https://bugs.freedesktop.org/show_bug.cgi?id=38729 NOTE: This is a candidate for the 7.11 branch (cherry picked from commit 057a107d4433eefce0ac99810a6e182f19fa64a6) Conflicts: src/gallium/drivers/softpipe/sp_quad_depth_test.c --- src/gallium/drivers/softpipe/sp_quad_depth_test.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_quad_depth_test.c b/src/gallium/drivers/softpipe/sp_quad_depth_test.c index 89b2a91fc1f..b8cd90df847 100644 --- a/src/gallium/drivers/softpipe/sp_quad_depth_test.c +++ b/src/gallium/drivers/softpipe/sp_quad_depth_test.c @@ -205,10 +205,9 @@ convert_quad_stencil( struct depth_data *data, case PIPE_FORMAT_Z24_UNORM_S8_USCALED: case PIPE_FORMAT_X8Z24_UNORM: case PIPE_FORMAT_S8_USCALED_Z24_UNORM: - { - for (j = 0; j < QUAD_SIZE; j++) { - data->shader_stencil_refs[j] = ((unsigned)(quad->output.stencil[j])); - } + case PIPE_FORMAT_S8_USCALED: + for (j = 0; j < QUAD_SIZE; j++) { + data->shader_stencil_refs[j] = ((unsigned)(quad->output.stencil[j])); } break; default: