summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-06-03 16:44:00 +0200
committerMarek Olšák <[email protected]>2016-06-06 22:50:55 +0200
commit2802310c256d599d80397a590fd32386bad03fe6 (patch)
treeef27e33617ed15cbbb009750be00c414689809a6
parent014c8ec770ff13ad6b235a6ca1c0d034f00125bd (diff)
radeonsi: simplify PRIMGROUP_SIZE computation for tessellation
Ported from Vulkan. v2: keep the comment Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index c7590cb1458..aed509de9bb 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -257,16 +257,8 @@ static unsigned si_get_ia_multi_vgt_param(struct si_context *sctx,
primgroup_size = 64; /* recommended with a GS */
if (sctx->tes_shader.cso) {
- unsigned num_cp_out =
- sctx->tcs_shader.cso ?
- sctx->tcs_shader.cso->info.properties[TGSI_PROPERTY_TCS_VERTICES_OUT] :
- info->vertices_per_patch;
- unsigned max_size = 256 / MAX2(info->vertices_per_patch, num_cp_out);
-
- primgroup_size = MIN2(primgroup_size, max_size);
-
/* primgroup_size must be set to a multiple of NUM_PATCHES */
- primgroup_size = (primgroup_size / num_patches) * num_patches;
+ primgroup_size = num_patches;
/* SWITCH_ON_EOI must be set if PrimID is used. */
if ((sctx->tcs_shader.cso && sctx->tcs_shader.cso->info.uses_primid) ||