anv: program 3DSTATE_MESH_DISTRIB with the recommended values
It improves performance of vk_meshlet_cadscene on A770. Fixes:f083df8710
("anv: update task/mesh distribution with the recommended values") Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19412> (cherry picked from commitdcaaeb56ef
)
This commit is contained in:

committed by
Dylan Baker

parent
79b70f3978
commit
a2aa3198e0
@@ -508,7 +508,7 @@
|
||||
"description": "anv: program 3DSTATE_MESH_DISTRIB with the recommended values",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f083df87108231005889b7af92f0cad7c61e1f81"
|
||||
},
|
||||
|
@@ -2292,8 +2292,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 = devinfo->num_slices > 2 ? 8 : 9; /* 2^N thread groups */
|
||||
distrib.MeshDistributionBatchSize = devinfo->num_slices > 2 ? 5 : 3; /* 2^N thread groups */
|
||||
distrib.TaskDistributionBatchSize = devinfo->num_slices > 2 ? 4 : 9; /* 2^N thread groups */
|
||||
distrib.MeshDistributionBatchSize = devinfo->num_slices > 2 ? 3 : 3; /* 2^N thread groups */
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user