Mesa (master): softpipe: minor clean-ups in sp_quad_depth_test.c

Brian Paul brianp at kemper.freedesktop.org
Wed Jul 6 21:15:23 UTC 2011


Module: Mesa
Branch: master
Commit: 88349255ce19b894e98fdf63a47c8219e601798f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=88349255ce19b894e98fdf63a47c8219e601798f

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jul  6 12:15:10 2011 -0600

softpipe: minor clean-ups in sp_quad_depth_test.c

---

 src/gallium/drivers/softpipe/sp_quad_depth_test.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_quad_depth_test.c b/src/gallium/drivers/softpipe/sp_quad_depth_test.c
index 89b2a91..3127d22 100644
--- a/src/gallium/drivers/softpipe/sp_quad_depth_test.c
+++ b/src/gallium/drivers/softpipe/sp_quad_depth_test.c
@@ -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.
  */




More information about the mesa-commit mailing list