Commit 71c1a00f authored by Michael Spang's avatar Michael Spang Committed by Commit Bot

ozone: drm: Fix typos in CreateNativePixmapForVulkan

This was not tested since it is only compiled in Chrome OS builds.

Bug: none
Test: compile
Change-Id: I5c8954faa1b782efe744e312f4d578fe43567ed3
Reviewed-on: https://chromium-review.googlesource.com/1232521Reviewed-by: default avatarDaniel Nicoara <dnicoara@chromium.org>
Commit-Queue: Michael Spang <spang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592422}
parent bdbae900
......@@ -185,14 +185,14 @@ scoped_refptr<gfx::NativePixmap> GbmSurfaceFactory::CreateNativePixmapForVulkan(
// TODO(spang): Fix this for formats other than gfx::BufferFormat::BGRA_8888
DCHECK_EQ(format, display::DisplaySnapshot::PrimaryFormat());
VKFormat format = VK_FORMAT_B8G8R8A8_SRGB;
VkFormat vk_format = VK_FORMAT_B8G8R8A8_SRGB;
VkDmaBufImageCreateInfo dma_buf_image_create_info = {
/* .sType = */ static_cast<VkStructureType>(
VK_STRUCTURE_TYPE_DMA_BUF_IMAGE_CREATE_INFO_INTEL),
/* .pNext = */ nullptr,
/* .fd = */ vk_image_fd.release(),
/* .format = */ format,
/* .format = */ vk_format,
/* .extent = */
{
/* .width = */ size.width(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment