search for: drmmodegetproperty

Displaying 9 results from an estimated 9 matches for "drmmodegetproperty".

2015 May 20
2
[PATCH] fix a wrong use of a logical operator in drmmode_output_dpms()
..., 1 deletion(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 7c1d2bb..161bccd 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -904,7 +904,7 @@ drmmode_output_dpms(xf86OutputPtr output, int mode) for (i = 0; i < koutput->count_props; i++) { props = drmModeGetProperty(drmmode->fd, koutput->props[i]); - if (props && (props->flags && DRM_MODE_PROP_ENUM)) { + if (props && (props->flags & DRM_MODE_PROP_ENUM)) { if (!strcmp(props->name, "DPMS")) { mode_id = koutput->props[i]; drmModeFreeProperty(...
2015 May 20
2
[PATCH] fix a wrong use of a logical operator in drmmode_output_dpms()
...ay.c >> index 7c1d2bb..161bccd 100644 >> --- a/src/drmmode_display.c >> +++ b/src/drmmode_display.c >> @@ -904,7 +904,7 @@ drmmode_output_dpms(xf86OutputPtr output, int mode) >> for (i = 0; i < koutput->count_props; i++) { >> props = drmModeGetProperty(drmmode->fd, >> koutput->props[i]); >> - if (props && (props->flags && DRM_MODE_PROP_ENUM)) { >> + if (props && (props->flags & DRM_MODE_PROP_ENUM)) { >> if (!strcmp(props->name, &...
2018 Oct 09
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
...e_output_mode_valid(xf86OutputPtr output, DisplayModePtr mode) return MODE_OK; } +static int +koutput_get_prop_idx(int fd, drmModeConnectorPtr koutput, + int type, const char *name) +{ + int idx = -1; + + for (int i = 0; i < koutput->count_props; i++) { + drmModePropertyPtr prop = drmModeGetProperty(fd, koutput->props[i]); + + if (!prop) + continue; + + if (drm_property_type_is(prop, type) && !strcmp(prop->name, name)) + idx = i; + + drmModeFreeProperty(prop); + + if (idx > -1) + break; + } + + return idx; +} + +static drmModePropertyBlobPtr +koutput_get_prop_blob(in...
2010 Feb 10
0
[PATCH] Revert "kms: work around some bong hits with dpms"
...+++ b/src/drmmode_display.c @@ -651,9 +651,6 @@ drmmode_output_dpms(xf86OutputPtr output, int mode) drmmode_ptr drmmode = drmmode_output->drmmode; int mode_id = -1, i; - if (!NVPTR(output->scrn)->allow_dpms) - return; - for (i = 0; i < koutput->count_props; i++) { props = drmModeGetProperty(drmmode->fd, koutput->props[i]); if (props && (props->flags && DRM_MODE_PROP_ENUM)) { diff --git a/src/nv_driver.c b/src/nv_driver.c index 3908347..7149759 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -331,10 +331,8 @@ NVEnterVT(int scrnIndex, int flags) if (r...
2018 Jan 13
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
...e_output_mode_valid(xf86OutputPtr output, DisplayModePtr mode) return MODE_OK; } +static int +koutput_get_prop_idx(int fd, drmModeConnectorPtr koutput, + int type, const char *name) +{ + int idx = -1; + + for (int i = 0; i < koutput->count_props; i++) { + drmModePropertyPtr prop = drmModeGetProperty(fd, koutput->props[i]); + + if (!prop) + continue; + + if (drm_property_type_is(prop, type) && !strcmp(prop->name, name)) + idx = i; + + drmModeFreeProperty(prop); + + if (idx > -1) + break; + } + + return idx; +} + +static drmModePropertyBlobPtr +koutput_get_prop_blob(in...
2009 Aug 12
4
TV-out modesetting DDX patches
[PATCH 1/3] kms: Don't hardcode the output properties [PATCH 2/3] kms: Implement output->get_property when RandR1.3 is available. [PATCH 3/3] kms: Add TV-out support src/drmmode_display.c | 403 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 261 insertions(+), 142 deletions(-)
2018 Mar 02
0
[ANNOUNCE] xf86-video-amdgpu 18.0.0
...ost-release version bump Fix VT switching with ShadowFB Bail if there's a problem with ShadowFB Free pAMDGPUEnt memory in AMDGPUFreeRec Free memory returned by xf86GetEntityInfo Call TimerFree for timer created in LeaveVT Always call drmModeFreeProperty after drmModeGetProperty Use correct ScrnInfoPtr in redisplay_dirty Add amdgpu_dirty_src_drawable helper Move cursor related ScreenInit calls into AMDGPUCursorInit_KMS Keep track of how many SW cursors are visible on each screen Fix linear check in amdgpu_glamor_share_pixmap_backing Alwa...
2018 Mar 06
0
[ANNOUNCE] xf86-video-ati 18.0.0
...there's a problem with ShadowFB Unreference pixmap's FB with EXA as well in radeon_set_pixmap_bo Free pRADEONEnt memory in RADEONFreeRec Free memory returned by xf86GetEntityInfo Call TimerFree for timer created in LeaveVT Always call drmModeFreeProperty after drmModeGetProperty Use correct ScrnInfoPtr in redisplay_dirty Add radeon_dirty_src_drawable helper Move cursor related ScreenInit calls into RADEONCursorInit_KMS Keep track of how many SW cursors are visible on each screen Always use screen depth/bpp for KMS framebuffers glamor: Al...
2010 Aug 05
0
[PATCH] drmmode: Add backlight support
...1, &data, FALSE, TRUE); + if (err != 0) + xf86DrvMsg(output->scrn->scrnIndex, X_ERROR, + "RRChangeOutputProperty error, %d\n", err); + } + + drmmode_output->num_props = 0; for (i = 0, j = 0; i < mode_output->count_props; i++) { drmmode_prop = drmModeGetProperty(drmmode->fd, mode_output->props[i]); @@ -795,6 +1013,24 @@ drmmode_output_set_property(xf86OutputPtr output, Atom property, drmmode_ptr drmmode = drmmode_output->drmmode; int i, ret; + if (property == drmmode->backlight_atom || + property == drmmode->backlight_deprec...