isl: constify isl_device_get_sample_counts()

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26632>
This commit is contained in:
Lionel Landwerlin 2023-12-11 11:17:13 +02:00 committed by Marge Bot
parent 2336058bbb
commit a1dcf943ab
2 changed files with 2 additions and 2 deletions

View file

@ -420,7 +420,7 @@ isl_device_init(struct isl_device *dev,
* supported.
*/
isl_sample_count_mask_t ATTRIBUTE_CONST
isl_device_get_sample_counts(struct isl_device *dev)
isl_device_get_sample_counts(const struct isl_device *dev)
{
if (ISL_GFX_VER(dev) >= 9) {
return ISL_SAMPLE_COUNT_1_BIT |

View file

@ -1927,7 +1927,7 @@ isl_device_init(struct isl_device *dev,
const struct intel_device_info *info);
isl_sample_count_mask_t ATTRIBUTE_CONST
isl_device_get_sample_counts(struct isl_device *dev);
isl_device_get_sample_counts(const struct isl_device *dev);
/**
* :returns: The isl_format_layout for the given isl_format