From patchwork Wed Mar 22 14:06:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Grillo X-Patchwork-Id: 13184127 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 C0FA5C761A6 for ; Wed, 22 Mar 2023 14:08:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B36CF10E382; Wed, 22 Mar 2023 14:08:05 +0000 (UTC) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by gabe.freedesktop.org (Postfix) with ESMTPS id 050C510E372 for ; Wed, 22 Mar 2023 14:08:03 +0000 (UTC) Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4PhVg61jVJz9tDb; Wed, 22 Mar 2023 14:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1679494082; bh=XcOXV7AvHWyCvnP8NS3gbTa/EDg//6oEOET6I033cKw=; h=From:To:Cc:Subject:Date:From; b=N1EapehU6I7pvPgj+oIDS9AHUS/2aC0l2z8d6tFnYwuZL6u2UpqeJ5MDFUQINQYtQ OopAzVUZCMCad6Ug3eXnAkHrAQzQzw4gHTCW7P1/rpNz5s5X7jYUGJG0u2OhAwZYCz Es/n2rcbHAZChzUcSaMA89t3vsTXW/wxgit7kuJ0= X-Riseup-User-ID: AC32C7D0D6EB4B237CD69BBCEE6D00DC5D969D44289D47F07D7773994204B871 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4PhVg06CBhz1y7V; Wed, 22 Mar 2023 14:07:56 +0000 (UTC) From: Arthur Grillo To: dri-devel@lists.freedesktop.org Subject: [PATCH 0/5] Create tests for the drm_rect functions Date: Wed, 22 Mar 2023 11:06:56 -0300 Message-Id: <20230322140701.69852-1-arthurgrillo@riseup.net> 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: carlos.craveiro@usp.br, tales.aparecida@gmail.com, dlatypov@google.com, javierm@redhat.com, mairacanal@riseup.net, maxime@cerno.tech, andrealmeid@riseup.net, airled@gmail.com, Arthur Grillo , matheus.vieira.g@usp.br Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patchset seeks to add unit tests for the rest of the functions on the drm_rect.c. The test coverage report generated by the gcov[1] tool states that this set reaches 100% of coverage on the drm_rect.c file. This would be very good for future development on the file. Thanks for reviewing! Best regards, ~Arthur Grillo --- [1]: https://gcc.gnu.org/onlinedocs/gcc/Gcov.html#Gcov --- Arthur Grillo (5): drm/tests: Test drm_rect_intersect() drm/tests: Test drm_rect_calc_hscale() drm/tests: Test drm_rect_calc_vscale() drm/tests: Test drm_rect_rotate() drm/test: Test drm_rect_rotate_inv() drivers/gpu/drm/tests/drm_rect_test.c | 231 ++++++++++++++++++++++++++ 1 file changed, 231 insertions(+)