Module: Mesa
Branch: 17.1
Commit: 54bb87c25a73a9c0d4c8c65b6df586dc144db361
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=54bb87c25a73a9c0d4c8c65b6df586dc144db361

Author: Marek Olšák <[email protected]>
Date:   Wed Aug 16 00:54:45 2017 +0200

radeonsi/gfx9: add a temporary workaround for a tessellation driver bug

The workaround will do for now. The root cause is still unknown.

This fixes new piglit: 16in-1out

Cc: 17.1 17.2 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
(cherry picked from commit 166823bfd26ff7e9b88099598305967336525716)
[Andres Gomez: resolve trivial conflicts]
Signed-off-by: Andres Gomez <[email protected]>

Conflicts:
        src/gallium/drivers/radeonsi/si_state_draw.c

---

 src/gallium/drivers/radeonsi/si_state_draw.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c 
b/src/gallium/drivers/radeonsi/si_state_draw.c
index a62b1aa6f2..2a16762b7e 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -181,7 +181,11 @@ static void si_emit_derived_tess_state(struct si_context 
*sctx,
        *num_patches = MIN2(*num_patches, 40);
 
        /* SI bug workaround - limit LS-HS threadgroups to only one wave. */
-       if (sctx->b.chip_class == SI) {
+       if (sctx->b.chip_class == SI ||
+           /* TODO: fix GFX9 where a threadgroup contains more than 1 wave and
+            * LS vertices per patch > HS vertices per patch. Piglit: 16in-1out 
*/
+           (sctx->b.chip_class == GFX9 &&
+            num_tcs_input_cp > num_tcs_output_cp)) {
                unsigned one_wave = 64 / MAX2(num_tcs_input_cp, 
num_tcs_output_cp);
                *num_patches = MIN2(*num_patches, one_wave);
        }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to