From patchwork Tue Jul 18 18:17:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Eduardo Gallo Filho X-Patchwork-Id: 13317593 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 6FF3BC001DE for ; Tue, 18 Jul 2023 18:19:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CCFF410E3B9; Tue, 18 Jul 2023 18:19:24 +0000 (UTC) Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by gabe.freedesktop.org (Postfix) with ESMTPS id 13F0310E3B9 for ; Tue, 18 Jul 2023 18:19:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2D6E0414D9; Tue, 18 Jul 2023 20:19:20 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hWmI46mZq8rj; Tue, 18 Jul 2023 20:19:19 +0200 (CEST) From: Carlos Eduardo Gallo Filho DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1689704358; bh=2unuaUUBzkJ1ke9rHzkXWZSFjQ+6AAdbMfmqOa2pkbE=; h=From:To:Cc:Subject:Date; b=UU5qHWPYkTIRpNNzYGeOn5g9DgnRZvtK5wEWPDFbM/NRojgcMlKWhL7AXnkEsxdJZ iDlYtLaXjuSnfowW1h8lQXRyZFWyR9lXSc/PcG0okXZVDtSToA9F6SYxiy4Dnu31Co UfdVyk1LPRdGss9Gdhbonp5qZGHcApGsgb6pUZYYlT4iAkbCrwehCVPWv3VoUtwTb4 +kFrztaJf9tvPb1ZMo5w2T8nGYdNkGN/f0uqESaAhCmRovKTB8bUK9S3UvC0s7PICZ 5hCRZPAKKR+lQTl0CXf4mI1lJE0lCjGVKvsLZ37zvKu/Zi/+LBl3uo23qXhSbm8IzS XznynG2+wkXCg== To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/4] Add documentation and KUnit tests for functions on drm_framebuffer.c Date: Tue, 18 Jul 2023 15:17:22 -0300 Message-ID: <20230718181726.3799-1-gcarlos@disroot.org> 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: andrealmeid@igalia.com, tzimmermann@suse.de, tales.aparecida@gmail.com, mripard@kernel.org, mairacanal@riseup.net, Carlos Eduardo Gallo Filho , davidgow@google.com, michal.winiarski@intel.com, arthurgrillo@riseup.net Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series adds documentation and unit tests for drm_framebuffer_check_src_coords() and drm_internal_framebuffer_create() functions on drm_framebuffer.c, including new parameters to the, until then, only existent test. Many thanks, Carlos --- v2: - Replaced strcpy to strscpy (Maxime) - Added comments (Maxime) - Ordered KUNIT_CASE_PARAM alphabetically (Maxime) - Replaced some parameter cases description with more verbose ones --- Carlos Eduardo Gallo Filho (4): drm: Add kernel-doc for drm_framebuffer_check_src_coords() drm/tests: Add test for drm_framebuffer_check_src_coords() drm/tests: Add parameters to the drm_test_framebuffer_create test drm/tests: Add test case for drm_internal_framebuffer_create() drivers/gpu/drm/drm_framebuffer.c | 16 +- drivers/gpu/drm/tests/drm_framebuffer_test.c | 178 ++++++++++++++++++- 2 files changed, 192 insertions(+), 2 deletions(-)