projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e71f8a
)
drm/vmwgfx: Fix single framebuffer detection.
author
Jakob Bornecrantz
<
[email protected]
>
Fri, 28 May 2010 09:21:55 +0000
(11:21 +0200)
committer
Dave Airlie
<
[email protected]
>
Mon, 31 May 2010 23:36:59 +0000
(09:36 +1000)
V2: Fix a typo.
Signed-off-by: Jakob Bornecrantz <
[email protected]
>
Signed-off-by: Thomas Hellstrom <
[email protected]
>
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
index 90891593bf6c2ea01cc23ab52d03452cb5d99c08..a348fec221376bec8e45dc8bfafd573d69133d70 100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
@@
-130,6
+130,7
@@
static int vmw_ldu_del_active(struct vmw_private *vmw_priv,
if (list_empty(&ldu->active))
return 0;
+ /* Must init otherwise list_empty(&ldu->active) will not work. */
list_del_init(&ldu->active);
if (--(ld->num_active) == 0) {
BUG_ON(!ld->fb);
@@
-208,6
+209,8
@@
static int vmw_ldu_crtc_set_config(struct drm_mode_set *set)
/* ldu only supports one fb active at the time */
if (dev_priv->ldu_priv->fb && vfb &&
+ !(dev_priv->ldu_priv->num_active == 1 &&
+ !list_empty(&ldu->active)) &&
dev_priv->ldu_priv->fb != vfb) {
DRM_ERROR("Multiple framebuffers not supported\n");
return -EINVAL;