[Mesa-stable] [PATCH 10/19] svga: adjust adjustment for point coordinates

Brian Paul brianp at vmware.com
Fri Feb 14 02:21:02 CET 2014


Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/svga/svga_state_framebuffer.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_state_framebuffer.c b/src/gallium/drivers/svga/svga_state_framebuffer.c
index 1497116..1c174da 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;
-- 
1.7.10.4



More information about the mesa-stable mailing list