From patchwork Mon Jun 3 00:40:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilia Mirkin X-Patchwork-Id: 10972055 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 701BE13AD for ; Mon, 3 Jun 2019 00:40:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DAC928800 for ; Mon, 3 Jun 2019 00:40:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BD332883A; Mon, 3 Jun 2019 00:40:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E21DA28800 for ; Mon, 3 Jun 2019 00:40:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4318A897C5; Mon, 3 Jun 2019 00:40:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by gabe.freedesktop.org (Postfix) with ESMTPS id 12F45897C5 for ; Mon, 3 Jun 2019 00:40:27 +0000 (UTC) Received: by mail-qt1-x831.google.com with SMTP id s15so7488963qtk.9 for ; Sun, 02 Jun 2019 17:40:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=QsCqd2yLAm3v/y2LK2Q0yUQr1xp94e7dvfP1P+lbuqo=; b=YLtu7ENPGXBJUCOVxrfHq9Na3aq4M2uCh9hKUUOXJexouakm/Z447mK6Hh/BsVpUp0 R0UUG0S8OLrqd3GxhlhUHRkyHueejf3Nbl3ePqT+HU3JFS358HcEHYcgsZUbf8huu3Df kZWqFTL/9cFk/7PA3DXh0WhxCVA9rgLlk6oSK/VcyFNeRzGzz1T5DaUYcZmipMIRFVJa 0qviKCkwHejB783IBvqwIOzWaRgLebfQmMuEMHERLSHEB8GEawBMZ8gDChNe1mZOjSvx dMqcKYBpq73cLyUl9kijBZ0RKmHOaFzGn488KUc45nhhQqDLhH1MOOapuvQw9yeXCF+n vtsQ== X-Gm-Message-State: APjAAAXMFkK/YmK7Zl3N1dDrIkTcBBaok6HGZjHAw0yN7BjCWlR8gYu1 p8egcm7iCZyPcgOCOmjC+S5wNzu30C4= X-Google-Smtp-Source: APXvYqxmf28aUujqfd45wMlNnP8CkCJJ9B5cEg6oMP7ac8PFHevjhOx5lG10KiLwpO8n0jqeueF9EA== X-Received: by 2002:ac8:48c8:: with SMTP id l8mr19936420qtr.20.1559522425901; Sun, 02 Jun 2019 17:40:25 -0700 (PDT) Received: from athos.fios-router.home (pool-173-68-20-215.nycmny.fios.verizon.net. [173.68.20.215]) by smtp.gmail.com with ESMTPSA id t8sm1432609qtc.80.2019.06.02.17.40.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 17:40:25 -0700 (PDT) From: Ilia Mirkin To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 00/10] Add C8, 30bpp and FP16 support to modetest Date: Sun, 2 Jun 2019 20:40:08 -0400 Message-Id: <20190603004017.7114-1-imirkin@alum.mit.edu> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QsCqd2yLAm3v/y2LK2Q0yUQr1xp94e7dvfP1P+lbuqo=; b=gUOYLfP3Vu6/bp5QI5fuBQfsYr7EkV1gfYtmtVU4VHUX0qYGY/pliqZunNrv7d3SCY KFncaJdhPnFNEWIzWQ5kZGsVx7RPYmIcCG536jDsZzNPr0x03d92S8ROKs4q9Wt3b8tM 12e57H24ljyG2k/qhu4V+9sCeZPwics/4H8Ciucupdymx1QpzdrmiTrxPRYCetPlsZ7i faloP/11xLkyeDHQ2j527uKoEIzNftId6TikCinEzkrQcGJHjvg69Xea9cwxyO1GVuE1 x0awKtmBgBcf+4nyfBcygDhfNi9hzuXPBfeeqGRO+PUFDBDgEZVE2MmsYu/JSF9JGRbg Hmww== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series improves the pattern generation logic to support additional formats, as well as a new "gradient" pattern (see patch comments on why I found it useful). Furthermore, these formats are piped through to modetest, including the ability to set a gamma table, which is necessary for the C8 indexed format. This was tested on nouveau, and used for bring-up of the C8, XB30, and FP16 formats on the NVIDIA hardware that supports these. Ilia Mirkin (10): util: add C8 format, support it with SMPTE pattern util: fix MAKE_RGBA macro for 10bpp modes util: add gradient pattern util: add fp16 format support util: add cairo drawing for 30bpp formats when available modetest: don't pretend that atomic mode includes a format modetest: add an add_property_optional variant that does not print errors modetest: add C8 support to generate SMPTE pattern modetest: add the ability to specify fill patterns on the commandline modetest: add FP16 format support tests/modetest/buffers.c | 13 ++ tests/modetest/modetest.c | 109 ++++++++-- tests/util/format.c | 7 + tests/util/pattern.c | 432 +++++++++++++++++++++++++++++++++++++- tests/util/pattern.h | 7 + 5 files changed, 543 insertions(+), 25 deletions(-) Acked-by: Emil Velikov Reviewed-by: Emil Velikov