svga: adjust adjustment for point coordinates
authorBrian Paul <brianp@vmware.com>
Sat, 8 Feb 2014 17:51:14 +0000 (09:51 -0800)
committerBrian Paul <brianp@vmware.com>
Fri, 14 Feb 2014 15:21:44 +0000 (08:21 -0700)
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/svga/svga_state_framebuffer.c

index 1497116d556942516ab9298376754763dd3b2400..1c174da31300dd496d6ca1d51f6f8e82551803fa 100644 (file)
@@ -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;