From patchwork Fri Nov 22 17:56:19 2019 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: 11258219 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5CEB31593 for ; Fri, 22 Nov 2019 17:56:33 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 449652071C for ; Fri, 22 Nov 2019 17:56:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 449652071C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C65F6E44E; Fri, 22 Nov 2019 17:56:29 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4CFD66E446; Fri, 22 Nov 2019 17:56:27 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2019 09:56:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,230,1571727600"; d="scan'208";a="205534175" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga007.fm.intel.com with SMTP; 22 Nov 2019 09:56:24 -0800 Received: by stinkbox (sSMTP sendmail emulation); Fri, 22 Nov 2019 19:56:23 +0200 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Date: Fri, 22 Nov 2019 19:56:19 +0200 Message-Id: <20191122175623.13565-1-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v2 0/4] drm/rect: Bugfixes and selftests X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org, Benjamin Gaignard Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Ville Syrjälä My earlier fixes for drm_rect + div-by-zero fix + some selftests that Daniel requested. Cc: Maarten Lankhorst Cc: Benjamin Gaignard Cc: Daniel Vetter Ville Syrjälä (4): drm/rect: Avoid division by zero drm/rect: Keep the scaled clip bounded drm/rect: Keep the clipped dst rectangle in place drm/selftests: Add drm_rect selftests drivers/gpu/drm/drm_rect.c | 36 +-- drivers/gpu/drm/selftests/Makefile | 3 +- .../gpu/drm/selftests/drm_modeset_selftests.h | 4 + .../drm/selftests/test-drm_modeset_common.h | 7 + drivers/gpu/drm/selftests/test-drm_rect.c | 220 ++++++++++++++++++ include/drm/drm_rect.h | 2 + 6 files changed, 257 insertions(+), 15 deletions(-) create mode 100644 drivers/gpu/drm/selftests/test-drm_rect.c Reviewed-by: Benjamin Gaignard