Mesa (master): anv: make get_.*_prog_data take a const pipeline
Lionel Landwerlin
llandwerlin at kemper.freedesktop.org
Tue Jan 10 18:17:42 UTC 2017
Module: Mesa
Branch: master
Commit: 6122b4ee9638a5c88d89fb5aa7f647dec3dd1ade
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6122b4ee9638a5c88d89fb5aa7f647dec3dd1ade
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Tue Jan 10 17:21:18 2017 +0000
anv: make get_.*_prog_data take a const pipeline
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/intel/vulkan/anv_private.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 9e3b72e..954eaf4 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 *) \
More information about the mesa-commit
mailing list