intel/brw: Report number of GRF registers used in brw_stage_prog_data.
This is similar to what we used to do on pre-SNB platforms, the number of GRF registers used by the shader will be used on Xe3+ to adjust the trade-off between thread-level parallelism and size of the GRF file. Plumb the value through prog_data so the driver can set up the hardware state accordingly. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32664>
This commit is contained in:
committed by
Marge Bot
parent
6513bf65c3
commit
70fecb1483
@@ -287,6 +287,7 @@ brw_compile_tcs(const struct brw_compiler *compiler,
|
||||
|
||||
assert(v.payload().num_regs % reg_unit(devinfo) == 0);
|
||||
prog_data->base.base.dispatch_grf_start_reg = v.payload().num_regs / reg_unit(devinfo);
|
||||
prog_data->base.base.grf_used = v.grf_used;
|
||||
|
||||
brw_generator g(compiler, ¶ms->base,
|
||||
&prog_data->base.base, MESA_SHADER_TESS_CTRL);
|
||||
|
||||
Reference in New Issue
Block a user