mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
dri-r600: Hook up a drm_descriptor configuration function
Returns a configuration that makes the dri state-tracker-manager throttle.
This commit is contained in:
parent
d5bfcf73fd
commit
b27a67af89
1 changed files with 17 additions and 1 deletions
|
|
@ -21,4 +21,20 @@ static struct pipe_screen *create_screen(int fd)
|
|||
return screen;
|
||||
}
|
||||
|
||||
DRM_DRIVER_DESCRIPTOR("r600", "radeon", create_screen, NULL)
|
||||
static const struct drm_conf_ret throttle_ret = {
|
||||
.type = DRM_CONF_INT,
|
||||
.val.val_int = 2,
|
||||
};
|
||||
|
||||
static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
|
||||
{
|
||||
switch (conf) {
|
||||
case DRM_CONF_THROTTLE:
|
||||
return &throttle_ret;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
DRM_DRIVER_DESCRIPTOR("r600", "radeon", create_screen, drm_configuration)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue