diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index 81badd4b3d1..8143a5f38a1 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -1103,6 +1103,9 @@ struct brw_bs_prog_data { /** Offset into the shader where the resume SBT is located */ uint32_t resume_sbt_offset; + + /** Number of resume shaders */ + uint32_t num_resume_shaders; }; struct brw_ff_gs_prog_data { diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index a7850b5db7d..8010d62b9ef 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -8041,6 +8041,7 @@ brw_compile_bs(const struct brw_compiler *compiler, prog_data->base.total_scratch = 0; prog_data->max_stack_size = 0; + prog_data->num_resume_shaders = num_resume_shaders; fs_generator g(compiler, params->log_data, mem_ctx, &prog_data->base, false, shader->info.stage);