Loading vulkan/libvulkan/swapchain.cpp +3 −6 Original line number Diff line number Diff line Loading @@ -1092,12 +1092,9 @@ VkResult CreateSwapchainKHR(VkDevice device, image_native_buffer.stride = img.buffer->stride; image_native_buffer.format = img.buffer->format; image_native_buffer.usage = img.buffer->usage; // TODO: Adjust once ANativeWindowBuffer supports gralloc1-style usage. // For now, this is the same translation Gralloc1On0Adapter does. image_native_buffer.usage2.consumer = static_cast<uint64_t>(img.buffer->usage); image_native_buffer.usage2.producer = static_cast<uint64_t>(img.buffer->usage); android_convertGralloc0To1Usage(img.buffer->usage, &image_native_buffer.usage2.producer, &image_native_buffer.usage2.consumer); result = dispatch.CreateImage(device, &image_create, nullptr, &img.image); Loading Loading
vulkan/libvulkan/swapchain.cpp +3 −6 Original line number Diff line number Diff line Loading @@ -1092,12 +1092,9 @@ VkResult CreateSwapchainKHR(VkDevice device, image_native_buffer.stride = img.buffer->stride; image_native_buffer.format = img.buffer->format; image_native_buffer.usage = img.buffer->usage; // TODO: Adjust once ANativeWindowBuffer supports gralloc1-style usage. // For now, this is the same translation Gralloc1On0Adapter does. image_native_buffer.usage2.consumer = static_cast<uint64_t>(img.buffer->usage); image_native_buffer.usage2.producer = static_cast<uint64_t>(img.buffer->usage); android_convertGralloc0To1Usage(img.buffer->usage, &image_native_buffer.usage2.producer, &image_native_buffer.usage2.consumer); result = dispatch.CreateImage(device, &image_create, nullptr, &img.image); Loading