From: Brian Paul Date: Sat, 8 Feb 2014 17:51:14 +0000 (-0800) Subject: svga: adjust adjustment for point coordinates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8bbd8261d297be11f1f2eaf768c2a8ace0cb69d;p=mesa.git svga: adjust adjustment for point coordinates Reviewed-by: Thomas Hellstrom Cc: "10.1" --- diff --git a/src/gallium/drivers/svga/svga_state_framebuffer.c b/src/gallium/drivers/svga/svga_state_framebuffer.c index 1497116d556..1c174da3130 100644 --- a/src/gallium/drivers/svga/svga_state_framebuffer.c +++ b/src/gallium/drivers/svga/svga_state_framebuffer.c @@ -322,11 +322,14 @@ emit_viewport( struct svga_context *svga, float adjust_y = 0.0; switch (svga->curr.reduced_prim) { + case PIPE_PRIM_POINTS: + adjust_x = -0.375; + adjust_y = -0.75; + break; case PIPE_PRIM_LINES: adjust_x = -0.5; adjust_y = 0; break; - case PIPE_PRIM_POINTS: case PIPE_PRIM_TRIANGLES: adjust_x = -0.5; adjust_y = -0.5;