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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user