From f8bbd8261d297be11f1f2eaf768c2a8ace0cb69d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 8 Feb 2014 09:51:14 -0800 Subject: svga: adjust adjustment for point coordinates Reviewed-by: Thomas Hellstrom Cc: "10.1" --- src/gallium/drivers/svga/svga_state_framebuffer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/svga') 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; -- cgit v1.2.3