ACRN:DM: Add Texture based on DMAbuf to support dmabuf_sharing rendering

Now the Opengl rendering is used implicitly in SDL backend. But sometimes
it needs to create the texture explicitly based on DMABuf so that it can
render the framebuffer submitted from virtio-gpu.

Tracked-On: #7210

Acked-by: Wang Yu <yu1.wang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
Zhao Yakui
2022-04-01 10:56:47 +08:00
committed by acrnsi-robot
parent 3645a9557d
commit f9aa6f754a
3 changed files with 143 additions and 24 deletions

View File

@@ -64,6 +64,10 @@ struct surface {
uint32_t bpp;
uint32_t stride;
void *pixel;
struct {
int dmabuf_fd;
uint32_t surf_fourcc;
} dma_info;
};
struct cursor {