diff --git a/src/intel/compiler/brw/brw_generator.cpp b/src/intel/compiler/brw/brw_generator.cpp index eda3bef3486..c2fef8a9d3c 100644 --- a/src/intel/compiler/brw/brw_generator.cpp +++ b/src/intel/compiler/brw/brw_generator.cpp @@ -1454,7 +1454,7 @@ brw_generator::generate_code(const brw_shader &s, stats->max_live_registers = shader_stats.max_register_pressure; stats->non_ssa_regs_after_nir = shader_stats.non_ssa_registers_after_nir; stats->source_hash = prog_data->source_hash; - stats->grf_registers = devinfo->ver >= 30 ? prog_data->grf_used : 0; + stats->grf_registers = devinfo->ver >= 30 ? s.grf_used : 0; /* Report the max dispatch width only on the smallest SIMD variant. *