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:
f5d8491
)
drm/i915: Error out when trying to set a y-tiled as a sprite
author
Damien Lespiau
<
[email protected]
>
Mon, 29 Oct 2012 15:14:51 +0000
(15:14 +0000)
committer
Daniel Vetter
<
[email protected]
>
Sun, 11 Nov 2012 22:51:00 +0000
(23:51 +0100)
v2: Use a switch for consistency (Chris Wilson)
Signed-off-by: Damien Lespiau <
[email protected]
>
Reviewed-by: Jesse Barnes <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/i915/intel_sprite.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_sprite.c
b/drivers/gpu/drm/i915/intel_sprite.c
index e69035d40aee5f1a298023385d4c8b4bfa93eb13..f9001af4a30d2093d27d76e857ceec98bad1fad3 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_sprite.c
+++ b/
drivers/gpu/drm/i915/intel_sprite.c
@@
-450,6
+450,15
@@
intel_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
if (intel_plane->pipe != intel_crtc->pipe)
return -EINVAL;
+ /* Sprite planes can be linear or x-tiled surfaces */
+ switch (obj->tiling_mode) {
+ case I915_TILING_NONE:
+ case I915_TILING_X:
+ break;
+ default:
+ return -EINVAL;
+ }
+
/*
* Clamp the width & height into the visible area. Note we don't
* try to scale the source if part of the visible region is offscreen.