From 477c67d79e068cce99aabaccb4f99253f7f2bd93 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 31 Mar 2021 09:52:29 +0200 Subject: [PATCH] panfrost: Pass a const device to panfrost_sample_positions() This function doesn't modify the dev object, we can constify this argument. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/pan_device.h | 2 +- src/panfrost/lib/pan_samples.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/lib/pan_device.h b/src/panfrost/lib/pan_device.h index 562b808b6f6..3f6ffe4586f 100644 --- a/src/panfrost/lib/pan_device.h +++ b/src/panfrost/lib/pan_device.h @@ -239,7 +239,7 @@ void panfrost_upload_sample_positions(struct panfrost_device *dev); mali_ptr -panfrost_sample_positions(struct panfrost_device *dev, +panfrost_sample_positions(const struct panfrost_device *dev, enum mali_sample_pattern pattern); void panfrost_query_sample_position( diff --git a/src/panfrost/lib/pan_samples.c b/src/panfrost/lib/pan_samples.c index 52cb0cf34b9..fc8f3bb292f 100644 --- a/src/panfrost/lib/pan_samples.c +++ b/src/panfrost/lib/pan_samples.c @@ -127,7 +127,7 @@ const struct mali_sample_positions sample_position_lut[] = { }; mali_ptr -panfrost_sample_positions(struct panfrost_device *dev, +panfrost_sample_positions(const struct panfrost_device *dev, enum mali_sample_pattern pattern) { assert(pattern < ARRAY_SIZE(sample_position_lut));