mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 15:08:24 +02:00
intel/compiler: take reg_unit size into account with ubo ranges
Fixes: 1ab4fe2dd6 ("brw: Don't shrink UBO push ranges in the backend")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12423
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32925>
This commit is contained in:
parent
c3e7384bbb
commit
1cc17e9ce9
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ brw_nir_analyze_ubo_ranges(const struct brw_compiler *compiler,
|
|||
const int max_ubos = 4;
|
||||
nr_entries = MIN2(nr_entries, max_ubos);
|
||||
|
||||
const unsigned max_push_regs = 64;
|
||||
const unsigned max_push_regs = 64 / reg_unit(compiler->devinfo);
|
||||
unsigned total_push_regs = 0;
|
||||
|
||||
for (unsigned i = 0; i < nr_entries; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue