iris: Skip double-disabling TCS/TES/GS after BLORP operations
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Sep 2019 07:33:28 +0000 (00:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Sep 2019 14:56:15 +0000 (07:56 -0700)
commit706c9f2d6072b1f1eeef90e6d67bcaeda0529e16
tree7ff8dca7ec587f3cc3f430fff12cef6e3c2eb3d8
parent7f7060dc73928a49e1d6780177a0d847d9d73e12
iris: Skip double-disabling TCS/TES/GS after BLORP operations

BLORP always turns off TCS/TES/GS.  If regular drawing also has them
disabled (the overwhelmingly common case), then leaving them disabled
is just fine by us and we can skip dirtying them, as that would just
re-disable them a second time on the next draw.

If they are actually enabled, however, we do need to flag them.

Cuts 52% of the 3DSTATE_HS packets in an Aztec Ruins trace.
src/gallium/drivers/iris/iris_blorp.c