iris,anv: correct the max thread number for DG2+

Correct the max thread number for DG2+ platforms according
to below bspec.

Ref: Bspec: 47202

Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17506>
This commit is contained in:
Chuansheng Liu 2022-06-24 10:19:03 +08:00 committed by Marge Bot
parent aac8ddae2f
commit 39f8c61f32
3 changed files with 3 additions and 3 deletions

View File

@ -7124,7 +7124,7 @@ iris_upload_compute_walker(struct iris_context *ice,
if (stage_dirty & IRIS_STAGE_DIRTY_CS) {
iris_emit_cmd(batch, GENX(CFE_STATE), cfe) {
cfe.MaximumNumberofThreads =
devinfo->max_cs_threads * devinfo->subslice_total - 1;
devinfo->max_cs_threads * devinfo->subslice_total;
uint32_t scratch_addr = pin_scratch_space(ice, batch, prog_data,
MESA_SHADER_COMPUTE);
cfe.ScratchSpaceBuffer = scratch_addr >> 4;

View File

@ -2157,7 +2157,7 @@ blorp_exec_compute(struct blorp_batch *batch, const struct blorp_params *params)
blorp_emit(batch, GENX(CFE_STATE), cfe) {
cfe.MaximumNumberofThreads =
devinfo->max_cs_threads * devinfo->subslice_total - 1;
devinfo->max_cs_threads * devinfo->subslice_total;
}
assert(cs_prog_data->push.per_thread.regs == 0);

View File

@ -2843,7 +2843,7 @@ emit_compute_state(struct anv_compute_pipeline *pipeline,
anv_batch_emit(&pipeline->base.batch, GENX(CFE_STATE), cfe) {
cfe.MaximumNumberofThreads =
devinfo->max_cs_threads * devinfo->subslice_total - 1;
devinfo->max_cs_threads * devinfo->subslice_total;
cfe.ScratchSpaceBuffer =
get_scratch_surf(&pipeline->base, MESA_SHADER_COMPUTE, cs_bin);
}