Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp32897img; Tue, 19 Mar 2019 14:59:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIoWopC8uRO8dv2Y/iG32rzo/txj+XP+ZucRjqmOoou1YHozUxsPRuWS5uhXgKtHL71wtt X-Received: by 2002:a65:6498:: with SMTP id e24mr3897888pgv.346.1553032746067; Tue, 19 Mar 2019 14:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553032746; cv=none; d=google.com; s=arc-20160816; b=bV+yuerx8l8pggSO8H9beGusW8rcXyJg2bXKXQYWBbmcsDz3BbuY1KSNU+AdJ4vllv AS0TpY9VNlHVJ7h4fjFq7OQDMQM0QXPz/mBFEC1X0yrp2bSxzhbrikKdTV8U6Dc58ASe L2iyT5q+luAN6eFVGXrFLd4mXMuN40+FnIrKAsaq44zkHdJSQansVMWk9t/ek2Lkk+Vo nAaV1dPvuztDS62pAfQlROcQmW0pRPwNGXgRh86vr006apKEdCAhYsakedjadJs7bC/N a47UKOuOo6oPlQmKwFeZil24TEhdEAISBaYkgSeBJav6U5WfIq9cYtO5dAlUc3HuofgF fL6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GCO8p21ikLSsnYvWm7ZZssKKnx5n6ehJopPf1ESGa04=; b=fVvEHEIqn46Ip+RN6rEszPdhumop5NPXHTLOygDcusj3qYadW/xmuTAcL5CILg+6nd +H1roeiJPgVEGIW7jEa47Bw41r/utEoq98lpB5vgGpf9sGvIN/kJbINIE+87q+t8z5ZR lWbO57OChTvgO7pDRBebozt8itPWUTm9fpNVQZIj/s+qPEMAwjqAaQVlW5lE4K/niL+4 Y0oCXMIXlLGZJElmfANSLNwgL6PcMSd2jW9AhCwDlvoeXvNJPRTzcGILNxXOHK6nany0 l5r3jKTJ1sRWlmEG7l/HDDcBorO1vCZFHeU5Iqop1xT1E8UDqn4YYJVKR2g0ox7kf8yN ajvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si138439pll.286.2019.03.19.14.58.50; Tue, 19 Mar 2019 14:59:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727754AbfCSV55 (ORCPT + 99 others); Tue, 19 Mar 2019 17:57:57 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:41199 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727743AbfCSV5z (ORCPT ); Tue, 19 Mar 2019 17:57:55 -0400 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id ED9DE100002; Tue, 19 Mar 2019 21:57:51 +0000 (UTC) From: Maxime Ripard To: Daniel Vetter , David Airlie , Maarten Lankhorst , Sean Paul , Maxime Ripard , Mauro Carvalho Chehab Cc: Sakari Ailus , Hans Verkuil , Laurent Pinchart , Thomas Petazzoni , Paul Kocialkowski , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [RFC PATCH 09/20] drm/client: Convert to generic image format library Date: Tue, 19 Mar 2019 22:57:14 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a generic image format libary, let's convert the rest of the DRM core to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_client.c b/drivers/gpu/drm/drm_client.c index 9df52b7fd074..a48181e18934 100644 --- a/drivers/gpu/drm/drm_client.c +++ b/drivers/gpu/drm/drm_client.c @@ -243,7 +243,7 @@ static void drm_client_buffer_delete(struct drm_client_buffer *buffer) static struct drm_client_buffer * drm_client_buffer_create(struct drm_client_dev *client, u32 width, u32 height, u32 format) { - const struct drm_format_info *info = drm_format_info(format); + const struct image_format_info *info = image_format_drm_lookup(format); struct drm_mode_create_dumb dumb_args = { }; struct drm_device *dev = client->dev; struct drm_client_buffer *buffer; @@ -259,7 +259,7 @@ drm_client_buffer_create(struct drm_client_dev *client, u32 width, u32 height, u dumb_args.width = width; dumb_args.height = height; - dumb_args.bpp = drm_format_plane_cpp(info, 0) * 8; + dumb_args.bpp = image_format_plane_cpp(info, 0) * 8; ret = drm_mode_create_dumb(dev, &dumb_args, client->file); if (ret) goto err_delete; @@ -319,10 +319,10 @@ static int drm_client_buffer_addfb(struct drm_client_buffer *buffer, { struct drm_client_dev *client = buffer->client; struct drm_mode_fb_cmd fb_req = { }; - const struct drm_format_info *info; + const struct image_format_info *info; int ret; - info = drm_format_info(format); + info = image_format_drm_lookup(format); fb_req.bpp = info->cpp[0] * 8; fb_req.depth = info->depth; fb_req.width = width; -- git-series 0.9.1