From: Lionel Landwerlin Date: Tue, 10 Jan 2017 17:21:18 +0000 (+0000) Subject: anv: make get_.*_prog_data take a const pipeline X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6122b4ee9638a5c88d89fb5aa7f647dec3dd1ade;p=mesa.git anv: make get_.*_prog_data take a const pipeline Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 9e3b72e77bd..954eaf49fd7 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1465,7 +1465,7 @@ anv_pipeline_has_stage(const struct anv_pipeline *pipeline, #define ANV_DECL_GET_PROG_DATA_FUNC(prefix, stage) \ static inline const struct brw_##prefix##_prog_data * \ -get_##prefix##_prog_data(struct anv_pipeline *pipeline) \ +get_##prefix##_prog_data(const struct anv_pipeline *pipeline) \ { \ if (anv_pipeline_has_stage(pipeline, stage)) { \ return (const struct brw_##prefix##_prog_data *) \