aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-09-05 17:04:31 +0200
committerMarek Olšák <[email protected]>2017-09-07 13:00:06 +0200
commit17dd4856a68621ab7107975df8239fb2963a57bb (patch)
tree300a8c487751177380ae9013a29544173575b0cd /src/gallium/drivers
parenta0823df148134e00f0097a68b368169b61c37798 (diff)
radeonsi: don't always apply the PrimID instancing bug workaround on SI
It looks like commit 391673af7ad1565a5f6ac8fc2f8c9fcdd1fe9908 that should have fixed the perf regression didn't really change much if anything. Tested-by: Dieter Nützel <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 051dfea8f7c..363a4aed5d5 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -213,7 +213,7 @@ static void si_emit_derived_tess_state(struct si_context *sctx,
* doesn't work correctly on SI when there is no other
* SE to switch to.
*/
- if (has_primid_instancing_bug)
+ if (has_primid_instancing_bug && tess_uses_primid)
*num_patches = 1;
sctx->last_num_patches = *num_patches;