From patchwork Fri Oct 13 13:13:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13420909 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA3FCCDB485 for ; Fri, 13 Oct 2023 13:14:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F36D10E607; Fri, 13 Oct 2023 13:14:11 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id BAA2210E605; Fri, 13 Oct 2023 13:14:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697202848; x=1728738848; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=N3mGGsdOth2TI2025hUOXWJkAR6bf5/rY24ZTrn6AYE=; b=jz1Nx7DPRxnkoUnNmmTPXzIKOAXXuzHVkD7Se49354Bp5C07i0FagNFm CSEudPO96JLttAVkPzLdE4/2fCyMFvQojDaoZNkygCIkhNGHBGHqHVvlB D2U7HZZkHIjglTNf7lV8xwe+WYLRVg7jhyvDn+TAN2WSZcyAqE9LXXPSJ FYVNBDpgN818KPkJD1Wd6LC/s+o1alXH3fUKlo9AS43hSJQk7HnAirr+2 ty5mREbfTn6U+0nROeLBKYK24VCA0n00BMUUbcwBLXgcfX+IsmsTPb7w3 1XnYpS5V+KOVNU7CD0QZji+4TjtAiGuQrnpiGNVX/ptH/8+iv79V1i/O0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10862"; a="449370183" X-IronPort-AV: E=Sophos;i="6.03,222,1694761200"; d="scan'208";a="449370183" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 06:14:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10862"; a="1086135996" X-IronPort-AV: E=Sophos;i="6.03,222,1694761200"; d="scan'208";a="1086135996" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by fmsmga005.fm.intel.com with SMTP; 13 Oct 2023 06:14:03 -0700 Received: by stinkbox (sSMTP sendmail emulation); Fri, 13 Oct 2023 16:14:02 +0300 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Subject: [PATCH 0/4] drm/i915: Fix LUT rounding Date: Fri, 13 Oct 2023 16:13:58 +0300 Message-ID: <20231013131402.24072-1-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä The current LUT rounding is generating weird results. Adjust it to follow the OpenGL int<->float conversion rules. Ville Syrjälä (4): drm: Fix color LUT rounding drm/i915: Adjust LUT rounding rules drm/i915: s/clamp()/min()/ in i965_lut_11p6_max_pack() drm/i915: Fix glk+ degamma LUT conversions drivers/gpu/drm/i915/display/intel_color.c | 70 +++++++++++----------- include/drm/drm_color_mgmt.h | 18 +++--- 2 files changed, 42 insertions(+), 46 deletions(-) Reviewed-by: Jani Nikula Acked-by: Maxime Ripard