From 03166ef8a98a60ca9563b66da6148bbed7bbb51e Mon Sep 17 00:00:00 2001 From: HeYue Date: Tue, 29 Jul 2025 14:59:45 +0800 Subject: [PATCH] Change getPrime, getByteStride, Modifier function enum On A16, integer valid range of enumeration type 'gralloc1_function_descriptor_t' should be in [0, 31]. Signed-off-by: HeYue --- cros_gralloc/i915_private_android_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cros_gralloc/i915_private_android_types.h b/cros_gralloc/i915_private_android_types.h index 7ef8df27..46674025 100644 --- a/cros_gralloc/i915_private_android_types.h +++ b/cros_gralloc/i915_private_android_types.h @@ -59,11 +59,11 @@ enum { HAL_PIXEL_FORMAT_NV12_Y_TILED_INTEL = 0x100, HAL_PIXEL_FORMAT_YUV420PackedSemiPlanar_Tiled_INTEL = 0x7FA00F00, }; -enum { GRALLOC1_FUNCTION_SET_MODIFIER = 101, - GRALLOC1_FUNCTION_GET_BYTE_STRIDE = 102, - GRALLOC1_FUNCTION_GET_PRIME = 103, +enum { GRALLOC1_FUNCTION_SET_MODIFIER = 26, + GRALLOC1_FUNCTION_GET_BYTE_STRIDE = 27, + GRALLOC1_FUNCTION_GET_PRIME = 28, - GRALLOC1_LAST_CUSTOM = 500 }; + GRALLOC1_LAST_CUSTOM = 28 }; typedef int32_t /*gralloc1_error_t*/ (*GRALLOC1_PFN_SET_MODIFIER)( gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, uint64_t modifier);