radv: constify radv_shader_info for radv_lower_{io_to_mem,ngg}()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13134>
This commit is contained in:
parent
b52aaea630
commit
38c34bf132
|
@ -840,7 +840,7 @@ radv_lower_io(struct radv_device *device, nir_shader *nir)
|
|||
|
||||
bool
|
||||
radv_lower_io_to_mem(struct radv_device *device, struct nir_shader *nir,
|
||||
struct radv_shader_info *info, const struct radv_pipeline_key *pl_key)
|
||||
const struct radv_shader_info *info, const struct radv_pipeline_key *pl_key)
|
||||
{
|
||||
if (nir->info.stage == MESA_SHADER_VERTEX) {
|
||||
if (info->vs.as_ls) {
|
||||
|
@ -943,7 +943,7 @@ radv_consider_culling(struct radv_device *device, struct nir_shader *nir,
|
|||
}
|
||||
|
||||
void radv_lower_ngg(struct radv_device *device, struct nir_shader *nir,
|
||||
struct radv_shader_info *info,
|
||||
const struct radv_shader_info *info,
|
||||
const struct radv_pipeline_key *pl_key)
|
||||
{
|
||||
/* TODO: support the LLVM backend with the NIR lowering */
|
||||
|
|
|
@ -526,10 +526,10 @@ get_tcs_num_patches(unsigned tcs_num_input_vertices, unsigned tcs_num_output_ver
|
|||
void radv_lower_io(struct radv_device *device, nir_shader *nir);
|
||||
|
||||
bool radv_lower_io_to_mem(struct radv_device *device, struct nir_shader *nir,
|
||||
struct radv_shader_info *info, const struct radv_pipeline_key *pl_key);
|
||||
const struct radv_shader_info *info, const struct radv_pipeline_key *pl_key);
|
||||
|
||||
void radv_lower_ngg(struct radv_device *device, struct nir_shader *nir,
|
||||
struct radv_shader_info *info,
|
||||
const struct radv_shader_info *info,
|
||||
const struct radv_pipeline_key *pl_key);
|
||||
|
||||
bool radv_consider_culling(struct radv_device *device, struct nir_shader *nir,
|
||||
|
|
Loading…
Reference in New Issue