d3d12: Correctly key off of polygon stipple enable cap
authorJesse Natalie <jenatali@microsoft.com>
Fri, 29 Apr 2022 20:14:34 +0000 (13:14 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 2 May 2022 15:56:05 +0000 (15:56 +0000)
commit9f37579e1b810f1ea41fa5781bba47c15d1f93f6
treefef4ad3c940b10543422510ac800cac6b982b9fc
parentce6d5094c862d2062193ec84317aa1950c0f2f75
d3d12: Correctly key off of polygon stipple enable cap

Apparently we were only keying off the presence of a real stipple pattern
being set, and completely ignoring when the app does glDisable().

Add in the actual enable bit as an additional discriminator to determine
if we should be doing polygon stippling.

Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16254>
src/gallium/drivers/d3d12/d3d12_compiler.cpp
src/gallium/drivers/d3d12/d3d12_draw.cpp