提交 73d77107 编写于 作者: L Laurent Pinchart 提交者: Tomi Valkeinen

drm: omapdrm: gem: Remove check for impossible condition

The GEM object can't be tiled without a usergart as that condition is
checked and considered as an error when creating the GEM object.
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 92b4b445
...@@ -218,9 +218,6 @@ static void evict(struct drm_gem_object *obj) ...@@ -218,9 +218,6 @@ static void evict(struct drm_gem_object *obj)
enum tiler_fmt fmt = gem2fmt(omap_obj->flags); enum tiler_fmt fmt = gem2fmt(omap_obj->flags);
int i; int i;
if (!priv->usergart)
return;
for (i = 0; i < NUM_USERGART_ENTRIES; i++) { for (i = 0; i < NUM_USERGART_ENTRIES; i++) {
struct omap_drm_usergart_entry *entry = struct omap_drm_usergart_entry *entry =
&priv->usergart[fmt].entry[i]; &priv->usergart[fmt].entry[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册