linux/drivers/gpu/drm
Ville Syrjälä bd2ef25d92 drm: Add drm_rotation_90_or_270()
We have intel_rotation_90_or_270() in i915 to check if the rotation is
90 or 270 degrees. Similar checks are elsewhere in drm, so let's move
the helper into a central place and use it everwhere.

v2: Drop the BIT()
    Convert all new intel_rotation_90_or_270() calls
    Deal with superfluous code shuffling

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1474907460-10717-2-git-send-email-ville.syrjala@linux.intel.com
2016-10-21 18:21:33 +02:00
..
amd drm: amdgpu: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:22:49 +05:30
arc drm: Don't swallow error codes in drm_dev_alloc() 2016-09-22 04:03:48 -07:00
arm drm/arm: mali-dp: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:23:59 +05:30
armada drm/prime: Take a ref on the drm_dev when exporting a dma_buf 2016-10-05 15:30:32 +02:00
ast
atmel-hlcdc drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
bochs bugfixes for qemu (bochs, qxl and virtio-gpu) drm drivers 2016-09-28 13:23:07 +10:00
bridge drm/bridge: Drop drm_connector_unregister and call drm_connector_cleanup directly 2016-10-10 11:19:42 +02:00
cirrus drm: cirrus: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:22:06 +05:30
etnaviv drm/etnaviv: Remove manual call to reservation_object_test_signaled_rcu before wait 2016-10-12 19:44:48 +05:30
exynos drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
fsl-dcu Merge tag 'topic/drm-misc-2016-09-25' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-09-28 10:28:23 +10:00
gma500 drm: gma500: Replace drm_fb_get_bpp_depth() with drm_format_info() 2016-10-18 15:22:38 +05:30
hisilicon drm: Don't swallow error codes in drm_dev_alloc() 2016-09-22 04:03:48 -07:00
i2c Revert "drm/i2c: tda998x: don't register the connector" 2016-09-23 03:29:50 -07:00
i810
i915 drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
imx Linux 4.8-rc8 2016-09-28 12:08:49 +10:00
mediatek drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
mga
mgag200
msm drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
nouveau drm/nouveau: Remove call to reservation_object_test_signaled_rcu before wait 2016-10-12 19:46:58 +05:30
omapdrm drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
panel
qxl bugfixes for qemu (bochs, qxl and virtio-gpu) drm drivers 2016-09-28 13:23:07 +10:00
r128
radeon drm: radeon: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:23:44 +05:30
rcar-du drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
rockchip gpu: Remove depends on RESET_CONTROLLER when not a provider 2016-10-19 09:26:15 +02:00
savage drm/savage: dereferencing an error pointer 2016-10-13 07:56:14 +02:00
shmobile
sis
sti drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
sun4i Allwinner sun4i DRM fixes for 4.9 2016-09-28 11:23:15 +10:00
tdfx
tegra gpu: Remove depends on RESET_CONTROLLER when not a provider 2016-10-19 09:26:15 +02:00
tilcdc drm: tilcdc: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:21:57 +05:30
ttm
udl drm/prime: Take a ref on the drm_dev when exporting a dma_buf 2016-10-05 15:30:32 +02:00
vc4 drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
vgem drm: Don't swallow error codes in drm_dev_alloc() 2016-09-22 04:03:48 -07:00
via
virtio drm/virtio: kconfig: Fixup white space. 2016-10-21 10:49:06 -04:00
vmwgfx drm: vmwgfx: Replace drm_fb_get_bpp_depth() with drm_format_info() 2016-10-18 15:23:53 +05:30
ati_pcigart.c
drm_agpsupport.c
drm_atomic.c drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
drm_atomic_helper.c drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
drm_auth.c
drm_blend.c drm/doc: Polish plane composition property docs 2016-09-22 00:04:02 -07:00
drm_bridge.c
drm_bufs.c
drm_cache.c
drm_color_mgmt.c drm/doc: Document color space handling 2016-09-22 00:04:03 -07:00
drm_connector.c drm: Release resources with a safer function 2016-10-10 11:20:48 +02:00
drm_context.c
drm_crtc.c drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
drm_crtc_helper.c
drm_crtc_helper_internal.h
drm_crtc_internal.h drm: Extract drm_color_mgmt.[hc] 2016-09-22 00:04:02 -07:00
drm_debugfs.c drm: Add API for capturing frame CRCs 2016-10-17 16:44:34 +02:00
drm_debugfs_crc.c drm: fix sparse warnings on undeclared symbols in crc debugfs 2016-10-19 14:10:29 +03:00
drm_dma.c
drm_dp_aux_dev.c
drm_dp_dual_mode_helper.c
drm_dp_helper.c Merge tag 'topic/drm-misc-2016-09-25' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-09-28 10:28:23 +10:00
drm_dp_mst_topology.c
drm_drv.c drm: Simplify drm_printk to reduce object size quite a bit 2016-10-04 08:23:14 +02:00
drm_edid.c drm/edid: Use block local to refer to the block 2016-10-17 14:28:06 +02:00
drm_edid_load.c
drm_encoder.c
drm_encoder_slave.c
drm_fb_cma_helper.c drm/fb_cma_helper: do not free fbdev if there is none 2016-10-20 09:05:34 +02:00
drm_fb_helper.c drm/fb-helper: reject any changes to the fbdev 2016-10-17 16:42:41 +02:00
drm_flip_work.c
drm_fops.c drm/fence: release fence reference when canceling event 2016-10-21 15:35:07 +02:00
drm_fourcc.c drm: Don't export the drm_fb_get_bpp_depth() function 2016-10-18 15:24:08 +05:30
drm_framebuffer.c drm: WARN when calling drm_format_info() for an unsupported format 2016-10-18 15:21:38 +05:30
drm_gem.c
drm_gem_cma_helper.c
drm_global.c
drm_hashtab.c
drm_info.c
drm_internal.h drm: Add API for capturing frame CRCs 2016-10-17 16:44:34 +02:00
drm_ioc32.c
drm_ioctl.c
drm_irq.c drm: avoid uninitialized timestamp use in wait_vblank 2016-10-18 09:45:17 +02:00
drm_kms_helper_common.c
drm_legacy.h
drm_lock.c
drm_memory.c
drm_mipi_dsi.c
drm_mm.c
drm_mode_object.c
drm_modes.c drm: Add and handle new aspect ratios in DRM layer 2016-10-17 14:23:58 +02:00
drm_modeset_helper.c drm: Don't export the drm_fb_get_bpp_depth() function 2016-10-18 15:24:08 +05:30
drm_modeset_lock.c
drm_of.c
drm_panel.c
drm_pci.c drm: Don't swallow error codes in drm_dev_alloc() 2016-09-22 04:03:48 -07:00
drm_plane.c drm: Undo damage to page_flip_ioctl 2016-10-04 12:53:12 +10:00
drm_plane_helper.c
drm_platform.c drm: Don't swallow error codes in drm_dev_alloc() 2016-09-22 04:03:48 -07:00
drm_prime.c drm: Fix up kerneldoc for new drm_gem_dmabuf_export() 2016-10-10 11:19:42 +02:00
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_simple_kms_helper.c drm: simple_kms_helper: Add prepare_fb and cleanup_fb hooks 2016-10-05 15:18:02 +02:00
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vm.c
drm_vma_manager.c
Kconfig
Makefile drm: Add API for capturing frame CRCs 2016-10-17 16:44:34 +02:00