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:
b53af8b
)
drm/i915: Check for id==PLANE_CURSOR instead of type==DRM_PLANE_TYPE_CURSOR
author
Ville Syrjälä
<
[email protected]
>
Fri, 3 Mar 2017 15:19:26 +0000
(17:19 +0200)
committer
Ville Syrjälä
<
[email protected]
>
Wed, 5 Apr 2017 10:22:37 +0000
(13:22 +0300)
The VLV/CHV watermark calculation is really interested in the hardware
plane type rather than the plane type (which is more of a software
concept). Let's check plane->id rather plane->type.
No functional changes.
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Chris Wilson <
[email protected]
>
drivers/gpu/drm/i915/intel_pm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_pm.c
b/drivers/gpu/drm/i915/intel_pm.c
index 570bd603f401d513ac3f08c67fc78d6d1523b762..2807054e49a5d6d2fec58f57bd7b08aba395093c 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_pm.c
+++ b/
drivers/gpu/drm/i915/intel_pm.c
@@
-1039,7
+1039,7
@@
static uint16_t vlv_compute_wm_level(const struct intel_crtc_state *crtc_state,
if (WARN_ON(htotal == 0))
htotal = 1;
- if (plane->
base.type == DRM_PLANE_TYP
E_CURSOR) {
+ if (plane->
id == PLAN
E_CURSOR) {
/*
* FIXME the formula gives values that are
* too big for the cursor FIFO, and hence we