gfxstream: For vulkanOnly, propogate the linear bind attribute to the ColorBuffer image creation
From virtio-gpu resource creation.
BUG=343234676
TEST=gfxstream guest Linux
Change-Id: I60da16cf47f80c63a43aab51c2f1c522773472e6
diff --git a/host/RendererImpl.cpp b/host/RendererImpl.cpp
index 95a96b8..a8fe16c 100644
--- a/host/RendererImpl.cpp
+++ b/host/RendererImpl.cpp
@@ -557,9 +557,10 @@
FrameBuffer::getFB()->createBufferWithHandle(size, handle);
},
.create_color_buffer_with_handle =
- [](uint32_t width, uint32_t height, uint32_t format, uint32_t fwkFormat, uint32_t handle) {
- FrameBuffer::getFB()->createColorBufferWithHandle(width, height, (GLenum)format,
- (FrameworkFormat)fwkFormat, handle);
+ [](uint32_t width, uint32_t height, uint32_t format, uint32_t fwkFormat, uint32_t handle,
+ bool linear) {
+ FrameBuffer::getFB()->createColorBufferWithHandle(
+ width, height, (GLenum)format, (FrameworkFormat)fwkFormat, handle, linear);
},
.open_color_buffer = [](uint32_t handle) { FrameBuffer::getFB()->openColorBuffer(handle); },
.close_buffer = [](uint32_t handle) { FrameBuffer::getFB()->closeBuffer(handle); },