Module: Mesa Branch: main Commit: 9cb9390962ab80721ee4160251f33773696ea208 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cb9390962ab80721ee4160251f33773696ea208
Author: Lionel Landwerlin <[email protected]> Date: Wed Oct 13 13:05:59 2021 +0000 intel/fs: store num of resume shaders in prog_data That way we can look at the SBT entries for debug purposes. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Caio Oliveira <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17908> --- src/intel/compiler/brw_compiler.h | 3 +++ src/intel/compiler/brw_fs.cpp | 1 + 2 files changed, 4 insertions(+) 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);
