mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
freedreno/a6xx: Fix thread calc for dummy kernels
If a kernel uses no regs, max_reg will be -1. Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35864>
This commit is contained in:
parent
83ae6393e5
commit
c417b83f19
1 changed files with 1 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ fd6_get_compute_state_info(struct pipe_context *pctx, void *cso, struct pipe_com
|
|||
}
|
||||
|
||||
unsigned reg_file_size_vec4 = info->a6xx.reg_size_vec4 * threadsize_base * info->wave_granularity;
|
||||
unsigned vec4_regs_per_thread = v->info.max_reg + 1;
|
||||
unsigned vec4_regs_per_thread = MAX2(v->info.max_reg + 1, 1);
|
||||
|
||||
cinfo->max_threads = MIN2(cinfo->max_threads, reg_file_size_vec4 / vec4_regs_per_thread);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue