diff options
author | Brian Paul <[email protected]> | 2010-11-04 17:52:49 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-11-04 18:21:45 -0600 |
commit | c8f1687ce70c3a2e0de7a7d50e1619cb4cf8cc50 (patch) | |
tree | ec30aef7f38389a9f9e7b55f9f19f12c6b945046 /src/gallium/drivers/llvmpipe | |
parent | 86559ce2d84456674e617be97da238bfb7cc4daf (diff) |
llvmpipe: added some debug assertions, but disabled
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_tri.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c index 11dfe639312..bfb6bf277bd 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c @@ -815,6 +815,16 @@ static void triangle_both( struct lp_setup_context *setup, { float area = calc_area(v0, v1, v2); + if (0) { + assert(!util_is_inf_or_nan(v0[0][0])); + assert(!util_is_inf_or_nan(v0[0][1])); + assert(!util_is_inf_or_nan(v1[0][0])); + assert(!util_is_inf_or_nan(v1[0][1])); + assert(!util_is_inf_or_nan(v2[0][0])); + assert(!util_is_inf_or_nan(v2[0][1])); + assert(!util_is_inf_or_nan(area)); + } + if (area > 0.0f) retry_triangle_ccw( setup, v0, v1, v2, setup->ccw_is_frontface ); else if (area < 0.0f) |