intel/vec4: Update nr_params in pack_uniform_registers
This is where we re-arrange and re-pack the params. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10571>
This commit is contained in:

committed by
Marge Bot

parent
3d1ac996d0
commit
c35501ffe8
@@ -775,6 +775,7 @@ vec4_visitor::pack_uniform_registers()
|
|||||||
|
|
||||||
ralloc_free(param);
|
ralloc_free(param);
|
||||||
this->uniforms = new_uniform_count;
|
this->uniforms = new_uniform_count;
|
||||||
|
stage_prog_data->nr_params = new_uniform_count * 4;
|
||||||
|
|
||||||
/* Now, update the instructions for our repacked uniforms. */
|
/* Now, update the instructions for our repacked uniforms. */
|
||||||
foreach_block_and_inst(block, vec4_instruction, inst, cfg) {
|
foreach_block_and_inst(block, vec4_instruction, inst, cfg) {
|
||||||
@@ -1834,8 +1835,6 @@ vec4_visitor::setup_uniforms(int reg)
|
|||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
reg += stage_prog_data->ubo_ranges[i].length;
|
reg += stage_prog_data->ubo_ranges[i].length;
|
||||||
|
|
||||||
stage_prog_data->nr_params = this->uniforms * 4;
|
|
||||||
|
|
||||||
prog_data->base.curb_read_length =
|
prog_data->base.curb_read_length =
|
||||||
reg - prog_data->base.dispatch_grf_start_reg;
|
reg - prog_data->base.dispatch_grf_start_reg;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user