summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_image.c
diff options
context:
space:
mode:
authorGurchetan Singh <[email protected]>2019-03-18 19:06:05 -0700
committerGurchetan Singh <[email protected]>2019-03-21 15:36:39 -0700
commit620df57dbb74f1001fcdf5b401f5bc7555f8884b (patch)
treec14c378437ebb6971799824cdc567f4a8f63f7e7 /src/intel/vulkan/anv_image.c
parent139f908d8f5fe27506a1acc4a443bd8ff0ab5329 (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.c2
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);