diff options
author | Marek Olšák <[email protected]> | 2016-11-29 20:41:23 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-12-01 02:16:51 +0100 |
commit | 78c4528ae7709fbe94d917d034cfd60535b5dcf3 (patch) | |
tree | 01a74f8372b28033b58628911fb3b57673a035dc | |
parent | 72e46c98896d0cb13fc7d70b7a4193a84d72a5fc (diff) |
radeonsi: apply a tessellation bug workaround for SI
Cc: 13.0 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 10073ef9d74..cba5a03bebe 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -166,6 +166,13 @@ static void si_emit_derived_tess_state(struct si_context *sctx, * specific value is taken from the proprietary driver. */ *num_patches = MIN2(*num_patches, 40); + + /* SI bug workaround - limit LS-HS threadgroups to only one wave. */ + if (sctx->b.chip_class == SI) { + unsigned one_wave = 64 / MAX2(num_tcs_input_cp, num_tcs_output_cp); + *num_patches = MIN2(*num_patches, one_wave); + } + sctx->last_num_patches = *num_patches; output_patch0_offset = input_patch_size * *num_patches; |