summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2017-01-10 17:21:18 +0000
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2017-01-10 18:14:09 +0000
commit6122b4ee9638a5c88d89fb5aa7f647dec3dd1ade (patch)
tree3cad34bb56e5b2e6cb796a402397975e6222b890 /src
parent01d80bed1f639ed98f09107206ebe36899d3c852 (diff)
anv: make get_.*_prog_data take a const pipeline
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src')
-rw-r--r--src/intel/vulkan/anv_private.h2
1 files changed, 1 insertions, 1 deletions
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 *) \