virtio-gpu: add 3d command overview
PATCH 1/1 virtio-gpu: add 3d command overview
Add 3d commands to the command enumeration.
Add a section with a very short overview.
--- virtio-gpu.tex | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
virtio-gpu.tex +35 -0
@@ -213,6 +213,16 @@ \subsubsection{Device Operation: Request header}\label{sec:Device Types / GPU De VIRTIO_GPU_CMD_GET_EDID, VIRTIO_GPU_CMD_RESOURCE_CREATE_2D_SHARED, + /* 3d commands (OpenGL) */ + VIRTIO_GPU_CMD_CTX_CREATE = 0x0200, + VIRTIO_GPU_CMD_CTX_DESTROY, + VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE, + VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE, + VIRTIO_GPU_CMD_RESOURCE_CREATE_3D, + VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D, + VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D, + VIRTIO_GPU_CMD_SUBMIT_3D, + /* cursor commands */ VIRTIO_GPU_CMD_UPDATE_CURSOR = 0x0300, VIRTIO_GPU_CMD_MOVE_CURSOR,
@@ -488,6 +498,31 @@ \subsubsection{Device Operation: controlq}\label{sec:Device Types / GPU Device / \end{description} +\subsubsection{Device Operation: controlq (3d)}\label{sec:Device Types / GPU Device / Device Operation / Device Operation: controlq (3d)} + +These commands are supported by the device if the VIRTIO_GPU_F_VIRGL +feature flag is set. + +\begin{description} + +\item[VIRTIO_GPU_CMD_CTX_CREATE] +\item[VIRTIO_GPU_CMD_CTX_DESTROY] +\item[VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE] +\item[VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE] + Manage OpenGL contexts. + +\item[VIRTIO_GPU_CMD_RESOURCE_CREATE_3D] + Create OpenGL resources. + +\item[VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D] +\item[VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D] + Transfer data from and to OpenGL resources. + +\item[VIRTIO_GPU_CMD_SUBMIT_3D] + Submit rendering commands (mesa gallium command stream). + +\end{description} + \subsubsection{Device Operation: cursorq}\label{sec:Device Types / GPU Device / Device Operation / Device Operation: cursorq} Both cursorq commands use the same command struct.
Signature · 6 lines
2.18.1 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Quoted 4 lines · Gerd Hoffmann
Add 3d commands to the command enumeration.
Add a section with a very short overview.Signed-off-by Gerd Hoffmann <[email protected]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Quoted 4 lines · Gerd Hoffmann
Add 3d commands to the command enumeration.
Add a section with a very short overview.Signed-off-by Gerd Hoffmann <[email protected]>
Pls don't forget to create github issues and request voting when you are ready.
Quoted 64 lines
--- virtio-gpu.tex | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)virtio-gpu.tex +35
-0@@ -213,6 +213,16 @@ \subsubsection{Device Operation: Request header}\label{sec:Device Types / GPU De VIRTIO_GPU_CMD_GET_EDID, VIRTIO_GPU_CMD_RESOURCE_CREATE_2D_SHARED, + /* 3d commands (OpenGL) */ + VIRTIO_GPU_CMD_CTX_CREATE = 0x0200, + VIRTIO_GPU_CMD_CTX_DESTROY, + VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE, + VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE, + VIRTIO_GPU_CMD_RESOURCE_CREATE_3D, + VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D, + VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D, + VIRTIO_GPU_CMD_SUBMIT_3D, + /* cursor commands */ VIRTIO_GPU_CMD_UPDATE_CURSOR = 0x0300, VIRTIO_GPU_CMD_MOVE_CURSOR,@@ -488,6 +498,31 @@ \subsubsection{Device Operation: controlq}\label{sec:Device Types / GPU Device / \end{description} +\subsubsection{Device Operation: controlq (3d)}\label{sec:Device Types / GPU Device / Device Operation / Device Operation: controlq (3d)} + +These commands are supported by the device if the VIRTIO_GPU_F_VIRGL +feature flag is set. + +\begin{description} + +\item[VIRTIO_GPU_CMD_CTX_CREATE] +\item[VIRTIO_GPU_CMD_CTX_DESTROY] +\item[VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE] +\item[VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE] + Manage OpenGL contexts. + +\item[VIRTIO_GPU_CMD_RESOURCE_CREATE_3D] + Create OpenGL resources. + +\item[VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D] +\item[VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D] + Transfer data from and to OpenGL resources. + +\item[VIRTIO_GPU_CMD_SUBMIT_3D] + Submit rendering commands (mesa gallium command stream). + +\end{description} + \subsubsection{Device Operation: cursorq}\label{sec:Device Types / GPU Device / Device Operation / Device Operation: cursorq} Both cursorq commands use the same command struct.Signature · 6 lines
2.18.1 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
Quoted 8 lines · Michael S. Tsirkin
Quoted 4 lines · Gerd Hoffmann
Add 3d commands to the command enumeration.
Add a section with a very short overview.Signed-off-by Gerd Hoffmann <[email protected]>Pls don't forget to create github issues and request voting when you are ready.
Sure, just wanted people give some time to comment before opening an issue.
https://github.com/oasis-tcs/virtio-spec/issues/65
cheers,
Gerd
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]