FreeBSD Bugzilla – Attachment 154848 Details for
Bug 198936
[drm] Xorg consume 100% with XFCE after latest DRM2 changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch suggestion
drm_patches.diff (text/plain), 1.33 KB, created by
Hans Petter Selasky
on 2015-03-26 21:59:15 UTC
(
hide
)
Description:
Patch suggestion
Filename:
MIME Type:
Creator:
Hans Petter Selasky
Created:
2015-03-26 21:59:15 UTC
Size:
1.33 KB
patch
obsolete
>diff --git a/sys/dev/drm2/drm_crtc.c b/sys/dev/drm2/drm_crtc.c >index 318a764..d368e83 100644 >--- a/sys/dev/drm2/drm_crtc.c >+++ b/sys/dev/drm2/drm_crtc.c >@@ -1499,15 +1499,18 @@ int drm_mode_getconnector(struct drm_device *dev, void *data, > } > } > >- if (out_resp->count_modes == 0) { >+ list_for_each_entry(mode, &connector->modes, head) >+ mode_count++; >+ >+ if (mode_count == 0) { > connector->funcs->fill_modes(connector, > dev->mode_config.max_width, > dev->mode_config.max_height); >- } > >- /* delayed so we get modes regardless of pre-fill_modes state */ >- list_for_each_entry(mode, &connector->modes, head) >- mode_count++; >+ /* delayed so we get modes regardless of pre-fill_modes state */ >+ list_for_each_entry(mode, &connector->modes, head) >+ mode_count++; >+ } > > out_resp->connector_id = connector->base.id; > out_resp->connector_type = connector->connector_type; >diff --git a/sys/dev/drm2/drm_modes.c b/sys/dev/drm2/drm_modes.c >index 4df8cb1..db06176 100644 >--- a/sys/dev/drm2/drm_modes.c >+++ b/sys/dev/drm2/drm_modes.c >@@ -928,6 +928,10 @@ static int drm_mode_compare(void *priv, struct list_head *lh_a, struct list_head > if (diff) > return diff; > diff = b->clock - a->clock; >+ if (diff) >+ return diff; >+ diff = ((b->flags & DRM_MODE_FLAG_INTERLACE) != 0) - >+ ((a->flags & DRM_MODE_FLAG_INTERLACE) != 0); > return diff; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198936
: 154848