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 <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10033>
This commit is contained in:
Boris Brezillon 2021-03-31 09:52:29 +02:00 committed by Marge Bot
parent e23cbac70e
commit 477c67d79e
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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));