SRM
v0.10.0-1
Simple Rendering Manager
|
Representation of an open DRM device, typically a GPU. More...
Representation of an open DRM device, typically a GPU.
An SRMDevice represents a DRM device, typically a GPU, which can contain multiple connectors and a specific rendering mode (ITSELF, PRIME, DUMB or CPU).
Enumerations | |
enum | SRM_RENDER_MODE |
Rendering mode supported by an SRM device, listed from best to worst. More... | |
Functions | |
void | srmDeviceSetUserData (SRMDevice *device, void *userData) |
Sets the device user data. More... | |
void * | srmDeviceGetUserData (SRMDevice *device) |
Retrieves the device user data. More... | |
SRMCore * | srmDeviceGetCore (SRMDevice *device) |
Get the SRMCore instance to which this device belongs. More... | |
const char * | srmDeviceGetName (SRMDevice *device) |
Get the DRM device name (e.g., /dev/dri/card0 ) associated with this device. More... | |
Int32 | srmDeviceGetFD (SRMDevice *device) |
Get the file descriptor of the DRM device associated with this device. More... | |
UInt8 | srmDeviceGetClientCapStereo3D (SRMDevice *device) |
Get the client DRM driver's support for Stereo 3D capability. More... | |
UInt8 | srmDeviceGetClientCapUniversalPlanes (SRMDevice *device) |
Get the client DRM driver's support for Universal Planes capability. More... | |
UInt8 | srmDeviceGetClientCapAtomic (SRMDevice *device) |
Get the client DRM driver's support for Atomic API capability. More... | |
UInt8 | srmDeviceGetClientCapAspectRatio (SRMDevice *device) |
Get the client DRM driver's support for Aspect Ratio capability. More... | |
UInt8 | srmDeviceGetClientCapWritebackConnectors (SRMDevice *device) |
Get the client DRM driver's support for Writeback Connectors capability. More... | |
UInt8 | srmDeviceGetCapDumbBuffer (SRMDevice *device) |
Get the driver's support for Dumb Buffer capability. More... | |
UInt8 | srmDeviceGetCapPrimeImport (SRMDevice *device) |
Get the driver's support for Prime Import capability. More... | |
UInt8 | srmDeviceGetCapPrimeExport (SRMDevice *device) |
Get the driver's support for Prime Export capability. More... | |
UInt8 | srmDeviceGetCapAddFb2Modifiers (SRMDevice *device) |
Get the driver's support for Add FB2 Modifiers capability. More... | |
UInt8 | srmDeviceGetCapAsyncPageFlip (SRMDevice *device) |
Get the driver's support for Async Page Flip capability. More... | |
UInt8 | srmDeviceGetCapAtomicAsyncPageFlip (SRMDevice *device) |
Get the driver's support for Atomic Async Page Flip capability. More... | |
UInt8 | srmDeviceGetCapTimestampMonotonic (SRMDevice *device) |
Retrieve the driver's support for monotonic timestamps. More... | |
UInt8 | srmDeviceIsRenderer (SRMDevice *device) |
Check if the device can perform rendering. More... | |
SRMDevice * | srmDeviceGetRendererDevice (SRMDevice *device) |
Get the device that performs rendering for this device. More... | |
SRM_RENDER_MODE | srmDeviceGetRenderMode (SRMDevice *device) |
Get the rendering mode of the device. More... | |
SRMList * | srmDeviceGetCrtcs (SRMDevice *device) |
Get a list of CRTCs (Cathode Ray Tube Controllers) of this device. More... | |
SRMList * | srmDeviceGetEncoders (SRMDevice *device) |
Get a list of encoders of this device. More... | |
SRMList * | srmDeviceGetPlanes (SRMDevice *device) |
Get a list of planes of this device. More... | |
SRMList * | srmDeviceGetConnectors (SRMDevice *device) |
Get a list of connectors of this device. More... | |
SRMList * | srmDeviceGetDMATextureFormats (SRMDevice *device) |
Get a list of all DMA (Direct Memory Access) texture formats supported by the device. More... | |
SRMList * | srmDeviceGetDMARenderFormats (SRMDevice *device) |
Get a list of DMA (Direct Memory Access) render formats supported by the device. More... | |
SRMList * | srmDeviceGetDMAExternalFormats (SRMDevice *device) |
Get a list of DMA (Direct Memory Access) external formats supported by the device. More... | |
EGLDisplay * | srmDeviceGetEGLDisplay (SRMDevice *device) |
Get the EGLDisplay associated with the device. More... | |
EGLContext * | srmDeviceGetEGLContext (SRMDevice *device) |
Get the EGLContext associated with the device. More... | |
const SRMEGLDeviceExtensions * | srmDeviceGetEGLExtensions (SRMDevice *device) |
Returns a structure with boolean variables indicating which EGL extensions the device supports. More... | |
const SRMEGLDeviceFunctions * | srmDeviceGetEGLFunctions (SRMDevice *device) |
Returns a structure with pointers to many available EGL functions. More... | |
const SRMGLDeviceExtensions * | srmDeviceGetGLExtensions (SRMDevice *device) |
Returns a structure with boolean variables indicating which OpenGL extensions the device supports. More... | |
void | srmDeviceMakeCurrent (SRMDevice *device) |
Sets the EGL display and context for the specified device as current for the calling thread. More... | |
void | srmDeviceSyncWait (SRMDevice *device) |
Ensures that all pending rendering commands are completed before continuing. More... | |
typedef struct SRMDeviceStruct SRMDevice |
enum SRM_RENDER_MODE |
Rendering mode supported by an SRM device, listed from best to worst.
void srmDeviceSetUserData | ( | SRMDevice * | device, |
void * | userData | ||
) |
Sets the device user data.
void* srmDeviceGetUserData | ( | SRMDevice * | device | ) |
Retrieves the device user data.
const char* srmDeviceGetName | ( | SRMDevice * | device | ) |
Get the file descriptor of the DRM device associated with this device.
device | A pointer to the SRMDevice instance. |
Get the client DRM driver's support for Stereo 3D capability.
device | A pointer to the SRMDevice instance. |
Get the client DRM driver's support for Universal Planes capability.
device | A pointer to the SRMDevice instance. |
Get the client DRM driver's support for Atomic API capability.
device | A pointer to the SRMDevice instance. |
Get the client DRM driver's support for Aspect Ratio capability.
device | A pointer to the SRMDevice instance. |
Get the client DRM driver's support for Writeback Connectors capability.
device | A pointer to the SRMDevice instance. |
Get the driver's support for Dumb Buffer capability.
device | A pointer to the SRMDevice instance. |
Get the driver's support for Prime Import capability.
device | A pointer to the SRMDevice instance. |
Get the driver's support for Prime Export capability.
device | A pointer to the SRMDevice instance. |
Get the driver's support for Add FB2 Modifiers capability.
device | A pointer to the SRMDevice instance. |
Get the driver's support for Async Page Flip capability.
device | A pointer to the SRMDevice instance. |
Get the driver's support for Atomic Async Page Flip capability.
device | A pointer to the SRMDevice instance. |
Retrieve the driver's support for monotonic timestamps.
device | A pointer to the SRMDevice instance. |
Check if the device can perform rendering.
This function returns true when the device can import buffers from the allocator device, which also means it can perform rendering for other non-rendering devices.
device | A pointer to the SRMDevice instance. |
SRM_RENDER_MODE srmDeviceGetRenderMode | ( | SRMDevice * | device | ) |
Get the rendering mode of the device.
If the rendering device is equal to this device, then the rendering mode is ITSELF.
device | A pointer to the SRMDevice instance. |
Get a list of encoders of this device.
device | A pointer to the SRMDevice instance. |
Get a list of connectors of this device.
device | A pointer to the SRMDevice instance. |
Get a list of all DMA (Direct Memory Access) texture formats supported by the device.
device | A pointer to the SRMDevice instance. |
Get a list of DMA (Direct Memory Access) render formats supported by the device.
GL_TEXTURE_2D
target.device | A pointer to the SRMDevice instance. |
Get a list of DMA (Direct Memory Access) external formats supported by the device.
GL_TEXTURE_EXTERNAL_OES
target.device | A pointer to the SRMDevice instance. |
EGLDisplay* srmDeviceGetEGLDisplay | ( | SRMDevice * | device | ) |
Get the EGLDisplay
associated with the device.
device | A pointer to the SRMDevice instance. |
EGLDisplay
associated with the device. EGLContext* srmDeviceGetEGLContext | ( | SRMDevice * | device | ) |
Get the EGLContext
associated with the device.
device | A pointer to the SRMDevice instance. |
EGLContext
associated with the device. const SRMEGLDeviceExtensions* srmDeviceGetEGLExtensions | ( | SRMDevice * | device | ) |
Returns a structure with boolean variables indicating which EGL extensions the device supports.
device | A pointer to the SRMDevice instance. |
const SRMEGLDeviceFunctions* srmDeviceGetEGLFunctions | ( | SRMDevice * | device | ) |
Returns a structure with pointers to many available EGL functions.
device | A pointer to the SRMDevice instance. |
const SRMGLDeviceExtensions* srmDeviceGetGLExtensions | ( | SRMDevice * | device | ) |
Returns a structure with boolean variables indicating which OpenGL extensions the device supports.
device | A pointer to the SRMDevice instance. |
void srmDeviceMakeCurrent | ( | SRMDevice * | device | ) |
Sets the EGL display and context for the specified device as current for the calling thread.
If no existing EGL context is associated with the calling thread, a new one is created and made current.
device | Pointer to the SRMDevice whose EGL context should be made current. |
void srmDeviceSyncWait | ( | SRMDevice * | device | ) |
Ensures that all pending rendering commands are completed before continuing.