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:
2d705c0
)
drm/vmwgfx: Make check_modeset() use the new atomic iterator macros.
author
Maarten Lankhorst
<
[email protected]
>
Wed, 12 Jul 2017 08:13:33 +0000
(10:13 +0200)
committer
Maarten Lankhorst
<
[email protected]
>
Thu, 13 Jul 2017 07:50:39 +0000
(09:50 +0200)
I don't think the checking of resources in this function is very
atomic-like, but it should definitely not use a macro that's about
to be removed.
Signed-off-by: Maarten Lankhorst <
[email protected]
>
Cc: VMware Graphics <
[email protected]
>
Cc: Sinclair Yeh <
[email protected]
>
Cc: Thomas Hellstrom <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Sinclair Yeh <
[email protected]
>
Reviewed-by: Daniel Vetter <
[email protected]
>
[mlankhorst: Make function static (danvet)]
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index 1cd67b10a0d942d2996afc32dced74540f31b8dc..620180df13039d75322039a7c45a7df2ec013d51 100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@
-1527,7
+1527,7
@@
err_out:
* RETURNS
* Zero for success or -errno
*/
-int
+
static
int
vmw_kms_atomic_check_modeset(struct drm_device *dev,
struct drm_atomic_state *state)
{
@@
-1536,8
+1536,7
@@
vmw_kms_atomic_check_modeset(struct drm_device *dev,
struct vmw_private *dev_priv = vmw_priv(dev);
int i;
-
- for_each_crtc_in_state(state, crtc, crtc_state, i) {
+ for_each_new_crtc_in_state(state, crtc, crtc_state, i) {
unsigned long requested_bb_mem = 0;
if (dev_priv->active_display_unit == vmw_du_screen_target) {