Enumerations
enum CapsetId
| Name | Value |
|---|---|
| kCapsetVirGl | 1 |
| kCapsetVirGl2 | 2 |
| kCapsetGfxstream | 3 |
| kCapsetVenus | 4 |
| kCapsetCrossDomain | 5 |
Defined at line 32 of file ../../src/graphics/lib/virtio/virtio-abi.h
enum ControlType
| Name | Value |
|---|---|
| kGetDisplayInfoCommand | 0x0100 |
| kCreate2DResourceCommand | 0x0101 |
| kDestroyResourceCommand | 0x0102 |
| kSetScanoutCommand | 0x0103 |
| kFlushResourceCommand | 0x0104 |
| kTransfer2DResourceToHostCommand | 0x0105 |
| kAttachResourceBackingCommand | 0x0106 |
| kDetachResourceBackingCommand | 0x0107 |
| kGetCapabilitySetInfoCommand | 0x0108 |
| kGetCapabilitySetCommand | 0x0109 |
| kGetExtendedDisplayIdCommand | 0x010a |
| kAssignResourceUuidCommand | 0x010b |
| kCreateBlobCommand | 0x010c |
| kSetScanoutBlobCommand | 0x010d |
| kUpdateCursorCommand | 0x0300 |
| kMoveCursorCommand | 0x0301 |
| kEmptyResponse | 0x1100 |
| kDisplayInfoResponse | 0x1101 |
| kCapabilitySetInfoResponse | 0x1102 |
| kCapabilitySetResponse | 0x1103 |
| kExtendedDisplayIdResponse | 0x1104 |
| kResourceUuidResponse | 0x1105 |
| kMapInfoResponse | 0x1106 |
| kUnspecifiedError | 0x1200 |
| kOutOfMemoryError | 0x1201 |
| kInvalidScanoutIdError | 0x1202 |
| kInvalidResourceIdError | 0x1203 |
| kInvalidContextIdError | 0x1204 |
| kInvalidParameterError | 0x1205 |
Type discriminant for driver commands and device responses.
enum virtio_gpu_ctrl_type in virtio13 5.7.6.7 "Device Operation: Request
header"
NOLINTNEXTLINE(performance-enum-size): The enum size follows a standard.
Defined at line 123 of file ../../src/graphics/lib/virtio/virtio-abi.h
enum ResourceFormat
| Name | Value |
|---|---|
| kBgra32 | 1 |
| kBgrx32 | 2 |
| kArgb32 | 3 |
| kXrgb32 | 4 |
| kR8g8b8a8 | 67 |
| kXbgr32 | 68 |
| kAbgr32 | 121 |
| kRgbx32 | 134 |
enum virtio_gpu_formats in virtio13 5.7.6.8 "Device Operation:
controlq", under the VIRTIO_GPU_CMD_RESOURCE_CREATE_2D command description
NOLINTNEXTLINE(performance-enum-size): The enum size follows a standard.
Defined at line 382 of file ../../src/graphics/lib/virtio/virtio-abi.h
enum BlobMem
| Name | Value |
|---|---|
| kGuest | 0x1 |
| kHost3D | 0x2 |
| kHost3D_Guest | 0x3 |
Values for CreateBlobResourceCommand::blob_mem.
Defined at line 413 of file ../../src/graphics/lib/virtio/virtio-abi.h
enum BlobFlags
| Name | Value |
|---|---|
| kUseMappable | 0x1 |
| kUseShareable | 0x2 |
| kUseCrossDevice | 0x4 |
Values for CreateBlobResourceCommand::blob_flags.
Defined at line 425 of file ../../src/graphics/lib/virtio/virtio-abi.h
Records
-
class AttachResourceBackingCommand -
class ControlHeader -
class Create2DResourceCommand -
class CreateBlobResourceCommand -
class CursorPosition -
class DisplayInfoResponse -
class EmptyCommand -
class EmptyResponse -
class ExtendedDisplayIdResponse -
class FlushResourceCommand -
class GetCapsetCommand -
class GetCapsetInfoCommand -
class GetCapsetInfoResponse -
class GetCapsetResponse -
class GetExtendedDisplayIdCommand -
class GpuDeviceConfig -
class GpuDeviceFeatures -
class MemoryEntry -
class Rectangle -
class ScanoutInfo -
class SetScanoutBlobCommand -
class SetScanoutCommand -
class Transfer2DResourceToHostCommand -
class UpdateCursorCommand
Functions
-
const char * ControlTypeToString (ControlType type)Descriptor for logging and debugging.
Defined at line 9 of file ../../src/graphics/lib/virtio/virtio-abi.cc