mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
anv: update task/mesh distribution with the recommended values
Fixes:ef04caea9b("anv: Implement Mesh Shading pipeline") Acked-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16493> (cherry picked from commitf083df8710)
This commit is contained in:
parent
aa9b7d349c
commit
d7ef4f99da
2 changed files with 6 additions and 6 deletions
|
|
@ -211,7 +211,7 @@
|
|||
"description": "anv: update task/mesh distribution with the recommended values",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "ef04caea9b8b98187340fd0ec6550aed06424b60"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2579,10 +2579,10 @@ emit_task_state(struct anv_graphics_pipeline *pipeline)
|
|||
/* Recommended values from "Task and Mesh Distribution Programming". */
|
||||
anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_TASK_REDISTRIB), redistrib) {
|
||||
redistrib.LocalBOTAccumulatorThreshold = MULTIPLIER_1;
|
||||
redistrib.SmallTaskThreshold = MULTIPLIER_2;
|
||||
redistrib.TargetMeshBatchSize = MULTIPLIER_4;
|
||||
redistrib.SmallTaskThreshold = 1; /* 2^N */
|
||||
redistrib.TargetMeshBatchSize = devinfo->num_slices > 2 ? 3 : 5; /* 2^N */
|
||||
redistrib.TaskRedistributionLevel = TASKREDISTRIB_BOM;
|
||||
redistrib.TaskRedistributionMode = TASKREDISTRIB_RR_FREE;
|
||||
redistrib.TaskRedistributionMode = TASKREDISTRIB_RR_STRICT;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2653,8 +2653,8 @@ emit_mesh_state(struct anv_graphics_pipeline *pipeline)
|
|||
/* Recommended values from "Task and Mesh Distribution Programming". */
|
||||
anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_MESH_DISTRIB), distrib) {
|
||||
distrib.DistributionMode = MESH_RR_FREE;
|
||||
distrib.TaskDistributionBatchSize = 2; /* 2^2 thread groups */
|
||||
distrib.MeshDistributionBatchSize = 3; /* 2^3 thread groups */
|
||||
distrib.TaskDistributionBatchSize = devinfo->num_slices > 2 ? 8 : 9; /* 2^N thread groups */
|
||||
distrib.MeshDistributionBatchSize = devinfo->num_slices > 2 ? 5 : 3; /* 2^N thread groups */
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue