Implement virtio-gpu 3D
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- c
- 领域
- backend, embedded-iot
调研方向
Start with the existing 2D implementation in virtio-gpu-sw.c and the backing memory and reset entry points in virtio-gpu-sw.c and virtio-gpu.c cited in the issue. Then trace how the VirtIO GPU backend, renderer, and display handle resources and completion. Done means guest Linux applications such as glxgears and glmark2 use VirGL successfully, with resource lifetimes and shutdown covered by smoke tests and usage instructions.
由索引模型根据 Issue 内容生成。
描述
Implement virtio-gpu 3D
We previously implemented vgpu 2d. To make better use of virtio-gpu, the next step should be to implement vgpu 3d.
With VirGL and virglrenderer, we want OpenGL applications in guest Linux to submit 3D commands to the host GPU for execution, then display the resulting images in semu's window. This requires connecting the guest's 3D acceleration and image presentation paths so that applications such as glxgears and glmark2 can actually use VirGL.
The main work includes:
- Integrate the VirGL backend and support 3D commands, including capability negotiation, creation and destruction of
contextandresourceobjects, command submission, and data transfer between the guest and the renderer. The capabilities exposed to the guest also need to match what the backend actually supports. - Handle asynchronous completion, including
fence, renderer polling, query results, and guest completion notifications, so that commands that must wait are answered only after the corresponding work is complete. - Manage the lifetimes of backing memory and resources, covering attachment, detachment, unreferencing, reset, and shutdown. When the guest requests that a resource be released, check whether the renderer and display are still using the associated memory before completing the handoff.
- For the existing backing memory access and reset entry points, see virtio-gpu-sw.c:1048-1051 and virtio-gpu.c:827-850.
- Integrate GPU image presentation so that completed frames can be passed to the display, avoiding CPU readback and re-uploading during normal presentation. This also requires synchronization between rendering and display, as well as retaining resources while frames are in use.
- Prepare rebuildable graphics guest images and usage instructions. Start with smoke tests using applications such as
glxgearsandglmark2to confirm that they actually use the VirGL path, and check behavior during continuous rendering, application exit, and guest shutdown.
- 主要语言
- C
- 星标
- 316
- 派生
- 76
- 平均合并
- 7 小时 1 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sysprog21/semu 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 42/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
Implement VirtIO PCI transport layer可能重新可做 @shengwen-tw 于 527 天前认领,目前没有进行中的 PR。 未关闭
相似的 Issue
-
issue: bug report
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
-
AI/LLM documentation Professional Contributors Only
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 2 天内回复
-
severity: low
难度 2/5 1-3 小时 新手友好度 82/100
luainkernel/lunatik#2752 ·
维护者通常 1 天内回复
-
feature:config kind:docs os:windows toolchain:cmake triaged
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
BasedHardware/omi#26486 ·
维护者通常 1 天内回复