diff options
author | Kenneth Graunke <[email protected]> | 2015-01-16 02:12:17 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-01-19 13:13:46 -0800 |
commit | 3f263ffbb37d77f97a86686e1d2d5eeabf4ecae6 (patch) | |
tree | f98c2402a75bfa2c26e603f8a93198a681dc4f8f /doxygen/doxy.bat | |
parent | d1533d87cc7e2c39e7ce9dc838b45a2c39c96e33 (diff) |
i965/nir: Replace fs_reg(GRF, virtual_grf_alloc(...)) with vgrf(...).
brw_fs_nir.cpp creates almost all of its registers via:
fs_reg reg = fs_reg(GRF, virtual_grf_alloc(num_components));
When we add SIMD16 support, we'll need to set reg->width = 16 and
double the VGRF size...on pretty much every VGRF it allocates.
This patch replaces that pattern with a new "vgrf" helper method:
fs_reg reg = vgrf(num_components);
The new function correctly takes reg_width into account. For now,
reg_width is always 1, so this should have no functional change.
v2: Just make vgrf() account for reg_width right away, rather than
changing the behavior in the next patch.
v3: Replace one last virtual_grf_alloc I missed. It's used in code
that only runs for dispatch_width == 8, so it doesn't matter,
but consistency is nice.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'doxygen/doxy.bat')
0 files changed, 0 insertions, 0 deletions