iris: Ignore line stipple information if it's disabled
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 8 Sep 2019 06:43:05 +0000 (23:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2019 17:55:20 +0000 (10:55 -0700)
commit9173459b950218cff72d7f31dea34a25955619c4
treec16676af8a21dcf275b8d2c5c04f6d82839e7461
parentfbd5d9ebb5ab75a7bec6f7f13798e0d47839ade6
iris: Ignore line stipple information if it's disabled

The line stipple pattern and factor only matter if line stippling is
actually enabled.  Otherwise, we can safely ignore it.

PBO upload may give us zero for line stipple information, while normal
drawing tends to give us an actual stipple pattern such as 0xffff.  This
was causing us to flag IRIS_DIRTY_LINE_STIPPLE way too often, leading to
useless 3DSTATE_LINE_STIPPLE commands, which are non-pipelined and thus
very expensive.

Improves performance in Manhattan 3.0 on Skylake GT4e by
0.149261% +/- 0.0380796% (n=210).  On an Icelake 8x8 with the GPU
frequency locked at 700Mhz, improves by 0.423756% +/- 0.222843% (n=3).
src/gallium/drivers/iris/iris_state.c