radv: Rename radv_nir_compiler_options::robust_buffer_access to robust_buffer_access_llvm
This is only used by LLVM, make that clearer. Signed-off-by: Joshua Ashton <joshua@froggi.es> Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23912>
This commit is contained in:
@@ -363,7 +363,7 @@ ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm, const struct radv_nir
|
||||
ctx.abi.load_ssbo = radv_load_ssbo;
|
||||
ctx.abi.load_sampler_desc = radv_get_sampler_desc;
|
||||
ctx.abi.clamp_shadow_reference = false;
|
||||
ctx.abi.robust_buffer_access = options->robust_buffer_access;
|
||||
ctx.abi.robust_buffer_access = options->robust_buffer_access_llvm;
|
||||
ctx.abi.load_grid_size_from_user_sgpr = args->load_grid_size_from_user_sgpr;
|
||||
|
||||
bool is_ngg = is_pre_gs_stage(shaders[0]->info.stage) && info->is_ngg;
|
||||
|
||||
@@ -2041,7 +2041,8 @@ radv_fill_nir_compiler_options(struct radv_nir_compiler_options *options, struct
|
||||
if (key)
|
||||
options->key = *key;
|
||||
|
||||
options->robust_buffer_access = device->buffer_robustness >= RADV_BUFFER_ROBUSTNESS_1;
|
||||
/* robust_buffer_access_llvm here used by LLVM only, pipeline robustness is not exposed there. */
|
||||
options->robust_buffer_access_llvm = device->buffer_robustness >= RADV_BUFFER_ROBUSTNESS_1;
|
||||
options->wgp_mode = should_use_wgp;
|
||||
options->info = &device->physical_device->rad_info;
|
||||
options->dump_shader = can_dump_shader;
|
||||
|
||||
@@ -132,7 +132,7 @@ struct radv_pipeline_key {
|
||||
|
||||
struct radv_nir_compiler_options {
|
||||
struct radv_pipeline_key key;
|
||||
bool robust_buffer_access;
|
||||
bool robust_buffer_access_llvm;
|
||||
bool dump_shader;
|
||||
bool dump_preoptir;
|
||||
bool record_ir;
|
||||
|
||||
Reference in New Issue
Block a user