gfxstream: correct Android API level check
The header says:
enum ADataSpace AHardwareBuffer_getDataSpace(const AHardwareBuffer* _Nonnull buffer)
__INTRODUCED_IN(__ANDROID_API_V__);
which is API level 35.
Reviewed-by: Jason Macnak <jmacnak@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36338>
This commit is contained in:
committed by
Marge Bot
parent
c25b14fa23
commit
8d899622b6
@@ -179,7 +179,7 @@ int MinigbmGralloc::getId(const AHardwareBuffer* ahb, uint64_t* id) {
|
||||
}
|
||||
|
||||
int32_t MinigbmGralloc::getDataspace(const AHardwareBuffer* ahb) {
|
||||
#if ANDROID_API_LEVEL >= 34
|
||||
#if ANDROID_API_LEVEL >= 35
|
||||
return AHardwareBuffer_getDataSpace(ahb);
|
||||
#else
|
||||
(void)ahb;
|
||||
|
||||
Reference in New Issue
Block a user