diff options
author | Dhinakaran Pandiyan <[email protected]> | 2019-12-21 14:05:41 +0200 |
---|---|---|
committer | Imre Deak <[email protected]> | 2019-12-23 13:51:01 +0200 |
commit | 931cd348bb8dc9374b9561846be149bfae7571b6 (patch) | |
tree | e158fa45933a76a64caed73e2fdbaf2e76b3bdc9 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 71df86f0fbf5046a68a2adaaba98feee2f6e22d1 (diff) |
drm/i915: Skip rotated offset adjustment for unsupported modifiers
During framebuffer creation, we pre-compute offsets for 90/270 plane
rotation. However, only Y and Yf modifiers support 90/270 rotation. So,
skip the calculations for other modifiers.
To keep the gem buffer size check still working for tiled planes, factor
out the logic needed for rotation setup and skip only this part for
tiled planes other than Y/Yf.
v2: Add a bounds check WARN for the rotation info array.
v3: Keep the gem buffer size check working for tiled planes.
Cc: Matt Roper <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Cc: Mika Kahola <[email protected]>
Signed-off-by: Dhinakaran Pandiyan <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Mika Kahola <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions