svga: adjust line subpixel position for HWv8
authorBrian Paul <brianp@vmware.com>
Thu, 6 Jul 2017 02:08:54 +0000 (20:08 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Jul 2017 18:04:17 +0000 (12:04 -0600)
This fixes two regressions on HWv8:
  Piglit gl-1.0-ortho-pos
  Piglit/glean fbo
This was caused by commit c2b92dada076a "svga: clamp device line width
to at least 1 to fix HWv8 line stippling"

This also fixes two conform tests: Vertex Order and Polygon Face

No Piglit/conform changes with HWv9 or later.

VMware bug 1905053

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_state_framebuffer.c

index bb92c54ff3f3b96bd19b242af11b82f52908a190..c52b7eeebf73b564b02ec13f823cbdc9d31cbe23 100644 (file)
@@ -561,7 +561,7 @@ emit_viewport( struct svga_context *svga,
             break;
          case PIPE_PRIM_LINES:
             adjust_x = -0.5;
-            adjust_y = 0;
+            adjust_y = -0.125;
             break;
          case PIPE_PRIM_TRIANGLES:
             adjust_x = -0.5;