summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-02-08 09:51:14 -0800
committerBrian Paul <[email protected]>2014-02-14 08:21:44 -0700
commitf8bbd8261d297be11f1f2eaf768c2a8ace0cb69d (patch)
tree99c88e2d93de60689de418c62b511cf3f02c3b1f /src/gallium/drivers
parentd0c22a6d53a9cce2d40006f3d4d7dd7e2f63aca9 (diff)
svga: adjust adjustment for point coordinates
Reviewed-by: Thomas Hellstrom <[email protected]> Cc: "10.1" <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_state_framebuffer.c5
1 files changed, 4 insertions, 1 deletions
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;