intel/brw: Add functions to allocate VGRF space

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33334>
This commit is contained in:
Caio Oliveira
2025-01-31 12:50:20 -08:00
parent 5c717e68ce
commit f82bcd56fc
13 changed files with 73 additions and 61 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ brw_opt_split_virtual_grfs(fs_visitor &s)
has_splits = true;
vgrf_has_split[i] = true;
assert(offset <= MAX_VGRF_SIZE(s.devinfo));
unsigned grf = s.alloc.allocate(offset);
unsigned grf = brw_allocate_vgrf_units(s, offset).nr;
for (unsigned k = reg - offset; k < reg; k++)
new_virtual_grf[k] = grf;
offset = 0;