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>
This commit is contained in:
parent
01d80bed1f
commit
6122b4ee96
|
@ -1465,7 +1465,7 @@ anv_pipeline_has_stage(const struct anv_pipeline *pipeline,
|
||||||
|
|
||||||
#define ANV_DECL_GET_PROG_DATA_FUNC(prefix, stage) \
|
#define ANV_DECL_GET_PROG_DATA_FUNC(prefix, stage) \
|
||||||
static inline const struct brw_##prefix##_prog_data * \
|
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)) { \
|
if (anv_pipeline_has_stage(pipeline, stage)) { \
|
||||||
return (const struct brw_##prefix##_prog_data *) \
|
return (const struct brw_##prefix##_prog_data *) \
|
||||||
|
|
Loading…
Reference in New Issue