Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2402353imu; Thu, 17 Jan 2019 13:34:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN76QdJeiEuim63SantaGCNxXm1qvfQlEccyiY32fKSUM4T7Q7jxal8LJXx2ftfHhCrOZCI3 X-Received: by 2002:a62:6f88:: with SMTP id k130mr16511173pfc.234.1547760865924; Thu, 17 Jan 2019 13:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547760865; cv=none; d=google.com; s=arc-20160816; b=gfg/W1pOk03FHH7IunN2IzFDbbUjMSmcqVCg2CGVYxhrQQmdydlNGBa5ZE18AwjjH3 Z5dCaP9N6sw9JmfaKBsEhVPIXLMnL1EHIGyuGFnQrq99kA3/Y/pNLF7SemKj7FadhQvX CyvOkx9SE1dqe9kb+Q2hGZAFd/Qlamx6C4MTK2BD2BiQ6kj2WPkbmpDgXUE/8AyVHFA6 /MzMDaJKXMtbVIvD/ngjxyuHLC788nT0JuR3Mw/2BnkzU4V76fqqMEgHu5mjgULumWsn 5CGf/14h20o9n2EO5VKw3tzYlwCUKB7NR272MQDktrpU7LGQUp6fpvq0o5Ib3Xzr2T4O yFAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LiRkNiXdFBesOrtN90i/vcGO3VGxOu3MBeNCvBUdYGg=; b=Y0HVtWlOm7NSOxm+eCC9VOJsT2tv4EHzUNOi7IBH/hc/a+u5nQlRkydpnab2KG+3BV 4JVReDi5aakqIW6uvkvfIyIdkcY6HPB8GeJjVTxQj37bd/39FMIHi/+jt1xZFJ8xL2Qu CjssfSutuv9FdLWAInqqAyPauIP9gAQ2Sl24VhnVGNA/TZKeOBnlhKnzGt0FPjhiPRsX 5lVHt6rmBKYLQnP9vwbxyv3++qTvwLensDuk1N6sC+rtX84jArhTBfuckcxxVJzmLzWN O3BaTEvS3RThT1NOr1o8NVhld7W7YRf19O9s/emkcpjAOIKPmoj7KSQA+sz82W8xwAJM Lp7w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si2695503pgk.169.2019.01.17.13.34.06; Thu, 17 Jan 2019 13:34:25 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728906AbfAQTr3 (ORCPT + 99 others); Thu, 17 Jan 2019 14:47:29 -0500 Received: from mga14.intel.com ([192.55.52.115]:64907 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728776AbfAQTr2 (ORCPT ); Thu, 17 Jan 2019 14:47:28 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2019 11:47:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,489,1539673200"; d="scan'208";a="135546499" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga002.fm.intel.com with SMTP; 17 Jan 2019 11:47:23 -0800 Received: by stinkbox (sSMTP sendmail emulation); Thu, 17 Jan 2019 21:47:22 +0200 Date: Thu, 17 Jan 2019 21:47:22 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Christoph Manszewski Cc: dri-devel@lists.freedesktop.org, Maxime Ripard , linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz , Seung-Woo Kim , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , David Airlie , Kyungmin Park , Kukjin Kim , Sean Paul , linux-arm-kernel@lists.infradead.org, Marek Szyprowski Subject: Re: [PATCH 1/6] include/drm: color_mgmt: Add enum labels Message-ID: <20190117194722.GJ20097@intel.com> References: <1544789421-5265-1-git-send-email-c.manszewski@samsung.com> <1544789421-5265-2-git-send-email-c.manszewski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1544789421-5265-2-git-send-email-c.manszewski@samsung.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 01:10:16PM +0100, Christoph Manszewski wrote: > Range setting makes sense for YCbCr and RGB buffers. Current > drm_color_range enum labels suggest use with YCbCr buffers. > Create enum labels without colorspace specification. > > Signed-off-by: Christoph Manszewski > --- > include/drm/drm_color_mgmt.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/drm/drm_color_mgmt.h b/include/drm/drm_color_mgmt.h > index 90ef9996d9a4..52f6d5221a0d 100644 > --- a/include/drm/drm_color_mgmt.h > +++ b/include/drm/drm_color_mgmt.h > @@ -62,6 +62,8 @@ enum drm_color_range { > DRM_COLOR_YCBCR_LIMITED_RANGE, > DRM_COLOR_YCBCR_FULL_RANGE, > DRM_COLOR_RANGE_MAX, > + DRM_COLOR_LIMITED_RANGE = DRM_COLOR_YCBCR_LIMITED_RANGE, > + DRM_COLOR_FULL_RANGE = DRM_COLOR_YCBCR_FULL_RANGE, These enum values don't mean anything really. The strings are what matter for the uapi. The default for YCbCr needs to be limited range, the default for RGB needs to be full range. So I think this would really require a separate prop for each. But is there an actual usecase for this stuff? > }; > > int drm_plane_create_color_properties(struct drm_plane *plane, > -- > 2.7.4 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Ville Syrj?l? Intel