[Mesa-dev] [PATCH 1/2] llvmpipe: fill in debug vertex info for tri rasterization
sroland at vmware.com
sroland at vmware.com
Fri Jun 23 15:33:03 UTC 2017
From: Roland Scheidegger <sroland at vmware.com>
This is pretty useful for debugging rasterization issues, so turn it on
based on DEBUG (the actual existence of the fields is also conditionalized
on DEBUG, lines fill it out the same too).
---
src/gallium/drivers/llvmpipe/lp_setup_tri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index a7a5d05..324e938 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -358,7 +358,7 @@ do_triangle_ccw(struct lp_setup_context *setup,
if (!tri)
return FALSE;
-#if 0
+#ifdef DEBUG
tri->v[0][0] = v0[0][0];
tri->v[1][0] = v1[0][0];
tri->v[2][0] = v2[0][0];
--
2.7.4
More information about the mesa-dev
mailing list