anv: make get_.*_prog_data take a const pipeline
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 10 Jan 2017 17:21:18 +0000 (17:21 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 10 Jan 2017 18:14:09 +0000 (18:14 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_private.h

index 9e3b72e77bdc3f5b60ed4cce3d1b90f22f100e55..954eaf49fd76496457adc0cfcee707776301eadb 100644 (file)
@@ -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 *)               \