Skip to content

Commit e7337df

Browse files
committed
Change the added gralloc1 function enum num.
On A16, integer valid range of enumeration type 'gralloc1_function_descriptor_t' should be in [0, 31]. Tracked-On: OAM-133702 Signed-off-by: HeYue <yue.he@intel.com>
1 parent 0f106b5 commit e7337df

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cros_gralloc/i915_private_android_types.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ enum { HAL_PIXEL_FORMAT_NV12_Y_TILED_INTEL = 0x100,
5959
HAL_PIXEL_FORMAT_YUV420PackedSemiPlanar_Tiled_INTEL = 0x7FA00F00,
6060
};
6161

62-
enum { GRALLOC1_FUNCTION_SET_MODIFIER = 101,
63-
GRALLOC1_FUNCTION_GET_BYTE_STRIDE = 102,
64-
GRALLOC1_FUNCTION_GET_PRIME = 103,
62+
enum { GRALLOC1_FUNCTION_SET_MODIFIER = 26,
63+
GRALLOC1_FUNCTION_GET_BYTE_STRIDE = 27,
64+
GRALLOC1_FUNCTION_GET_PRIME = 28,
6565

66-
GRALLOC1_LAST_CUSTOM = 500 };
66+
GRALLOC1_LAST_CUSTOM = 28 };
6767

6868
typedef int32_t /*gralloc1_error_t*/ (*GRALLOC1_PFN_SET_MODIFIER)(
6969
gralloc1_device_t *device, gralloc1_buffer_descriptor_t descriptor, uint64_t modifier);

0 commit comments

Comments
 (0)