radeonsi: disable the patch ID workaround on SI when the patch ID isn't used (v2)
authorMarek Olšák <marek.olsak@amd.com>
Tue, 6 Jun 2017 13:23:42 +0000 (15:23 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 8 Jun 2017 21:29:07 +0000 (23:29 +0200)
commit391673af7ad1565a5f6ac8fc2f8c9fcdd1fe9908
tree968f54761e23772b15aeebb14094a5a626a57d46
parent4b8d0c2b1d25c2cf1b3ce57c9c1d997bff1b9408
radeonsi: disable the patch ID workaround on SI when the patch ID isn't used (v2)

The workaround causes a massive performance decrease on 1-SE parts.
(Cape Verde, Hainan, Oland)

The performance regression is already part of 17.0 and 17.1.

v2: check tess_uses_prim_id

Cc: 17.0 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state_draw.c