drm/omap: remove OMAP_BO_TILED define
OMAP_BO_TILED does not make sense, as OMAP_BO_TILED_* values are not bitmasks but normal values. As we already have OMAP_BO_TILED_MASK for the mask, we can remove OMAP_BO_TILED and use OMAP_BO_TILED_MASK instead. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191010120000.1421-6-jjhiblot@ti.com
This commit is contained in:
@@ -95,7 +95,7 @@ static u32 get_linear_addr(struct drm_framebuffer *fb,
|
||||
|
||||
bool omap_framebuffer_supports_rotation(struct drm_framebuffer *fb)
|
||||
{
|
||||
return omap_gem_flags(fb->obj[0]) & OMAP_BO_TILED;
|
||||
return omap_gem_flags(fb->obj[0]) & OMAP_BO_TILED_MASK;
|
||||
}
|
||||
|
||||
/* Note: DRM rotates counter-clockwise, TILER & DSS rotates clockwise */
|
||||
@@ -154,7 +154,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
|
||||
x = state->src_x >> 16;
|
||||
y = state->src_y >> 16;
|
||||
|
||||
if (omap_gem_flags(fb->obj[0]) & OMAP_BO_TILED) {
|
||||
if (omap_gem_flags(fb->obj[0]) & OMAP_BO_TILED_MASK) {
|
||||
u32 w = state->src_w >> 16;
|
||||
u32 h = state->src_h >> 16;
|
||||
|
||||
@@ -212,7 +212,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
|
||||
plane = &omap_fb->planes[1];
|
||||
|
||||
if (info->rotation_type == OMAP_DSS_ROT_TILER) {
|
||||
WARN_ON(!(omap_gem_flags(fb->obj[1]) & OMAP_BO_TILED));
|
||||
WARN_ON(!(omap_gem_flags(fb->obj[1]) & OMAP_BO_TILED_MASK));
|
||||
omap_gem_rotated_dma_addr(fb->obj[1], orient, x/2, y/2,
|
||||
&info->p_uv_addr);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user