llvmpipe: fill in debug vertex info for tri rasterization
authorRoland Scheidegger <sroland@vmware.com>
Fri, 23 Jun 2017 02:57:57 +0000 (04:57 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 23 Jun 2017 17:39:29 +0000 (19:39 +0200)
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).

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_setup_tri.c

index a7a5d05c328a0ebc6a8021bf320c663268291207..324e93841f738e26c52c4eab4ab8dfd01776d530 100644 (file)
@@ -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];