radeonsi: Always leave poly_offset in a valid state
authorZachary Michaels <zmichaels@oblong.com>
Thu, 19 Jan 2017 09:50:16 +0000 (10:50 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 19 Jan 2017 09:50:16 +0000 (10:50 +0100)
commitd7d32b3bfe86bd89d94d59393907bce1cb9dab7c
tree495c108b2f86c9f308a049c6a91c0ff8b728e8f0
parenta7c635ec6589f600f0d52d0097774ea0b938de9f
radeonsi: Always leave poly_offset in a valid state

This commit makes si_update_poly_offset set poly_offset to NULL if
uses_poly_offset is false. This way poly_offset either points into the
currently queued rasterizer, or it is NULL.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99451
Cc: "13.0 17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state.c