llvmpipe: Obey rasterization rules.

Replicates softpipe.
This commit is contained in:
José Fonseca
2010-03-13 11:22:39 +00:00
parent 3160cbabcc
commit a80e33f407
5 changed files with 40 additions and 30 deletions

View File

@@ -337,7 +337,8 @@ void
lp_setup_set_triangle_state( struct lp_setup_context *setup,
unsigned cull_mode,
boolean ccw_is_frontface,
boolean scissor )
boolean scissor,
boolean gl_rasterization_rules)
{
LP_DBG(DEBUG_SETUP, "%s\n", __FUNCTION__);
@@ -345,6 +346,7 @@ lp_setup_set_triangle_state( struct lp_setup_context *setup,
setup->cullmode = cull_mode;
setup->triangle = first_triangle;
setup->scissor_test = scissor;
setup->pixel_offset = gl_rasterization_rules ? 0.5f : 0.0f;
}