From c35501ffe8f8cc6d7f9e68294e3774e2476516a5 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 4 May 2021 09:38:55 -0500 Subject: [PATCH] intel/vec4: Update nr_params in pack_uniform_registers This is where we re-arrange and re-pack the params. Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_vec4.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp index 8cf74f526fa..b1178f23168 100644 --- a/src/intel/compiler/brw_vec4.cpp +++ b/src/intel/compiler/brw_vec4.cpp @@ -775,6 +775,7 @@ vec4_visitor::pack_uniform_registers() ralloc_free(param); this->uniforms = new_uniform_count; + stage_prog_data->nr_params = new_uniform_count * 4; /* Now, update the instructions for our repacked uniforms. */ 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++) reg += stage_prog_data->ubo_ranges[i].length; - stage_prog_data->nr_params = this->uniforms * 4; - prog_data->base.curb_read_length = reg - prog_data->base.dispatch_grf_start_reg;