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:
parent
aac8ddae2f
commit
39f8c61f32
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue