From 9cb9390962ab80721ee4160251f33773696ea208 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 13 Oct 2021 13:05:59 +0000 Subject: [PATCH] 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 Reviewed-by: Caio Oliveira Part-of: --- 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);