diff options
author | Gurchetan Singh <[email protected]> | 2019-03-18 19:06:05 -0700 |
---|---|---|
committer | Gurchetan Singh <[email protected]> | 2019-03-21 15:36:39 -0700 |
commit | 620df57dbb74f1001fcdf5b401f5bc7555f8884b (patch) | |
tree | c14c378437ebb6971799824cdc567f4a8f63f7e7 /src/intel/vulkan/anv_image.c | |
parent | 139f908d8f5fe27506a1acc4a443bd8ff0ab5329 (diff) |
anv: fix build on Nougat
AHardwareBuffer is only available on O and above.
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r-- | src/intel/vulkan/anv_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index dfa72cbfe6c..6ed77481488 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -714,7 +714,7 @@ resolve_ahw_image(struct anv_device *device, struct anv_image *image, struct anv_device_memory *mem) { -#ifdef ANDROID +#if defined(ANDROID) && ANDROID_API_LEVEL >= 26 assert(mem->ahw); AHardwareBuffer_Desc desc; AHardwareBuffer_describe(mem->ahw, &desc); |