From: Brian Paul Date: Thu, 24 Mar 2011 17:32:33 +0000 (-0600) Subject: svga: adjust triangle rasterization offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c75d5ae63c356ac9b6d23009ccc9af6205dbb4a;p=mesa.git svga: adjust triangle rasterization offset Fixes minor sub-pixel positioning error in some apps. --- diff --git a/src/gallium/drivers/svga/svga_state_framebuffer.c b/src/gallium/drivers/svga/svga_state_framebuffer.c index cdadb20c178..8ad6ab4c29c 100644 --- a/src/gallium/drivers/svga/svga_state_framebuffer.c +++ b/src/gallium/drivers/svga/svga_state_framebuffer.c @@ -296,7 +296,7 @@ static int emit_viewport( struct svga_context *svga, break; case PIPE_PRIM_POINTS: case PIPE_PRIM_TRIANGLES: - adjust_x = -0.375; + adjust_x = -0.25; adjust_y = -0.5; break; }