Mesa (master): llvmpipe: Dump fs key's stencil state.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed May 12 19:50:27 UTC 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sun May  9 21:18:14 2010 +0100

llvmpipe: Dump fs key's stencil state.

---

 src/gallium/drivers/llvmpipe/lp_state_fs.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index ff193d6..4284efc 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -912,6 +912,16 @@ generate_variant(struct llvmpipe_context *lp,
          debug_printf("depth.func = %s\n", util_dump_func(key->depth.func, TRUE));
          debug_printf("depth.writemask = %u\n", key->depth.writemask);
       }
+      for (i = 0; i < 2; ++i) {
+         if(key->stencil[i].enabled) {
+            debug_printf("stencil[%u].func = %s\n", i, util_dump_func(key->stencil[i].func, TRUE));
+            debug_printf("stencil[%u].fail_op = %s\n", i, util_dump_stencil_op(key->stencil[i].fail_op, TRUE));
+            debug_printf("stencil[%u].zpass_op = %s\n", i, util_dump_stencil_op(key->stencil[i].zpass_op, TRUE));
+            debug_printf("stencil[%u].zfail_op = %s\n", i, util_dump_stencil_op(key->stencil[i].zfail_op, TRUE));
+            debug_printf("stencil[%u].valuemask = 0x%x\n", i, key->stencil[i].valuemask);
+            debug_printf("stencil[%u].writemask = 0x%x\n", i, key->stencil[i].writemask);
+         }
+      }
       if(key->alpha.enabled) {
          debug_printf("alpha.func = %s\n", util_dump_func(key->alpha.func, TRUE));
          debug_printf("alpha.ref_value = %f\n", key->alpha.ref_value);




More information about the mesa-commit mailing list