radv: remove now unused radv_nir_compiler_options::layout

Descriptors are lowered in NIR and the layout is no longer used in the
backend compilers.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15630>
This commit is contained in:
Samuel Pitoiset 2022-03-29 09:26:40 +02:00 committed by Marge Bot
parent 50467aa558
commit 00cc52b282
2 changed files with 2 additions and 2 deletions

View File

@ -2037,7 +2037,6 @@ radv_shader_compile(struct radv_device *device, struct vk_shader_module *module,
gl_shader_stage stage = shaders[shader_count - 1]->info.stage;
struct radv_nir_compiler_options options = {0};
options.layout = layout;
if (key)
options.key = *key;

View File

@ -112,7 +112,6 @@ enum radv_compiler_debug_level {
};
struct radv_nir_compiler_options {
struct radv_pipeline_layout *layout;
struct radv_pipeline_key key;
bool robust_buffer_access;
bool dump_shader;
@ -501,6 +500,8 @@ struct radv_shader_prolog {
char *disasm_string;
};
struct radv_pipeline_layout;
void radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively, bool allow_copies);
void radv_optimize_nir_algebraic(nir_shader *shader, bool opt_offsets);
bool radv_nir_lower_ycbcr_textures(nir_shader *shader, const struct radv_pipeline_layout *layout);