softpipe: setup pixel_offset for all primitive types
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 30 Apr 2019 11:41:39 +0000 (13:41 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 1 May 2019 13:53:02 +0000 (13:53 +0000)
commitf753ac355e5bbd1129755224c54a73339da97cb1
tree4b7d465344d6df1620cbb2df6913323a62682528
parent0c6702cfa581d8126cac73c0a1d9980b3b6b94db
softpipe: setup pixel_offset for all primitive types

If we don't update this for all primitive-types, we end up rendering
slightly offset points and lines up until the point where the first
triangle gets drawn. This is obviously not correct, and violates
OpenGL's repeatability rule.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: ca9c413647b ("softpipe: Respect gl_rasterization_rules in
       primitive setup.")
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/softpipe/sp_setup.c