Mesa DRI graphics driver enumeration

Mesa DRI graphics driver enumeration — Get information about DRI drivers

Functions

Properties

gboolean is-extra Read / Write / Construct Only
gchar * library-path Read / Write / Construct Only
gchar * resolved-library-path Read

Object Hierarchy

    GObject
    ╰── SrtDriDriver

Includes

#include <steam-runtime-tools/steam-runtime-tools.h>

Description

SrtDriDriver is an opaque object representing the metadata describing a Mesa DRI driver. This is a reference-counted object: use g_object_ref() and g_object_unref() to manage its lifecycle.

Functions

srt_dri_driver_get_library_path ()

const gchar *
srt_dri_driver_get_library_path (SrtDriDriver *self);

Return the library path for this DRI driver.

Parameters

self

The DRI driver

 

Returns

“library-path”.

[type filename][transfer none]


srt_dri_driver_is_extra ()

gboolean
srt_dri_driver_is_extra (SrtDriDriver *self);

Return a gboolean that indicates if the DRI is in an unusual position.

Parameters

self

The DRI driver

 

Returns

TRUE if the DRI driver is in an unusual position.


srt_dri_driver_resolve_library_path ()

gchar *
srt_dri_driver_resolve_library_path (SrtDriDriver *self);

Return the absolute path for this DRI driver. If srt_dri_driver_get_library_path() is already an absolute path, a copy of the same value will be returned.

Parameters

self

The DRI driver

 

Returns

A copy of “resolved-library-path”. Free with g_free().

[type filename][transfer full]

Types and Values

Property Details

The “is-extra” property

  “is-extra”                 gboolean

TRUE if the driver is located in an unusual path.

Flags: Read / Write / Construct Only

Default value: FALSE


The “library-path” property

  “library-path”             gchar *

Path to the DRI driver. It may be absolute (e.g. /usr/lib/dri/i965_dri.so) or relative (e.g. custom/dri/i965_dri.so). If absolute, it is set as though the sysroot, if any, was the root.

Flags: Read / Write / Construct Only

Default value: NULL


The “resolved-library-path” property

  “resolved-library-path”    gchar *

Absolute path to the DRI driver library. This is similar to 'library-path', but is guaranteed to be an absolute path (e.g. /usr/lib/dri/i965_dri.so) as though the sysroot, if any, was the root.

Flags: Read

Default value: NULL