softpipe: minor clean-ups in sp_quad_depth_test.c
authorBrian Paul <brianp@vmware.com>
Wed, 6 Jul 2011 18:15:10 +0000 (12:15 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Jul 2011 21:14:27 +0000 (15:14 -0600)
src/gallium/drivers/softpipe/sp_quad_depth_test.c

index 89b2a91fc1fca9a056b2231bb5ed996c94a317c7..3127d22d8f4d1fa87c3ea0472b3d1f3304e481b2 100644 (file)
@@ -189,7 +189,8 @@ convert_quad_depth( struct depth_data *data,
 
 
 /**
- * Compute the depth_data::shader_stencil_refs[] values from the float fragment stencil values.
+ * Compute the depth_data::shader_stencil_refs[] values from the float
+ * fragment stencil values.
  */
 static void
 convert_quad_stencil( struct depth_data *data, 
@@ -205,10 +206,8 @@ 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]));
-         }
+      for (j = 0; j < QUAD_SIZE; j++) {
+         data->shader_stencil_refs[j] = ((unsigned)(quad->output.stencil[j]));
       }
       break;
    default:
@@ -216,6 +215,7 @@ convert_quad_stencil( struct depth_data *data,
    }
 }
 
+
 /**
  * Write data->bzzzz[] values and data->stencilVals into the Z/stencil buffer.
  */