Displaying 10 results from an estimated 10 matches for "drmmodefreeproperty".
2015 May 20
2
[PATCH] fix a wrong use of a logical operator in drmmode_output_dpms()
...= 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(props);
--
2.4.1
2015 May 20
2
[PATCH] fix a wrong use of a logical operator in drmmode_output_dpms()
...OP_ENUM)) {
>> + if (props && (props->flags & DRM_MODE_PROP_ENUM)) {
>> if (!strcmp(props->name, "DPMS")) {
>> mode_id = koutput->props[i];
>> drmModeFreeProperty(props);
>
>
> _______________________________________________
> Nouveau mailing list
> Nouveau at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nouveau
2018 Jan 13
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
...nst 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(int fd, drmModeConnectorPtr koutput, const char *name)
+{
+ drmModePropertyBlobPtr blob = NULL;
+ int idx = koutput_get_prop_idx(fd, koutput, DRM_MODE_PROP_BLOB, name);
+
+ if (idx...
2018 Oct 09
0
[PATCH] drmmode: update logic for dynamic connectors, paths, and tiles
...nst 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(int fd, drmModeConnectorPtr koutput, const char *name)
+{
+ drmModePropertyBlobPtr blob = NULL;
+ int idx = koutput_get_prop_idx(fd, koutput, DRM_MODE_PROP_BLOB, name);
+
+ if (idx...
2013 Jun 06
0
[PATCH 2/2] nouveau: add libbacklight and randr property support.
...t;Backlight"
+#define BACKLIGHT_DEPRECATED_NAME "BACKLIGHT"
+
+static Atom backlight_atom, backlight_deprecated_atom;
+#endif
+
static void drmmode_output_dpms(xf86OutputPtr output, int mode);
static drmmode_ptr
@@ -717,6 +733,9 @@ drmmode_output_destroy(xf86OutputPtr output)
drmModeFreeProperty(drmmode_output->props[i].mode_prop);
free(drmmode_output->props[i].atoms);
}
+#ifdef HAVE_LIBBACKLIGHT
+ backlight_destroy(drmmode_output->backlight);
+#endif
drmModeFreeConnector(drmmode_output->mode_output);
free(drmmode_output);
output->driver_private = NULL;
@@ -868,6...
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
...ichel Dänzer (20):
Post-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_...
2018 Mar 06
0
[ANNOUNCE] xf86-video-ati 18.0.0
...version bump
Bail if 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 fram...
2013 Jun 06
1
[PATCH 1/2] nouveau/mode: split out create_ranged_atom
From: Dave Airlie <airlied at redhat.com>
This is preperation for the backlight support code.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/drmmode_display.c | 54 ++++++++++++++++++++++++++++++++-------------------
1 file changed, 34 insertions(+), 20 deletions(-)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 6033a6d..ad7bc1f 100644
---
2010 Aug 05
0
[PATCH] drmmode: Add backlight support
...*/
+ if (oldmode == DPMSModeOn)
+ drmmode_output->backlight_active_level = drmmode_backlight_get(output);
+ drmmode_backlight_set(output, 0);
+ }
+}
+
+static void
drmmode_crtc_dpms(xf86CrtcPtr drmmode_crtc, int mode)
{
@@ -648,6 +819,9 @@ drmmode_output_destroy(xf86OutputPtr output)
drmModeFreeProperty(drmmode_output->props[i].mode_prop);
free(drmmode_output->props[i].atoms);
}
+ if (drmmode_output->backlight_iface)
+ drmmode_backlight_set(output,
+ drmmode_output->backlight_active_level);
drmModeFreeConnector(drmmode_output->mode_output);
free(drmm...