From patchwork Mon Jun 3 00:54:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilia Mirkin X-Patchwork-Id: 10972077 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 3B70F912 for ; Mon, 3 Jun 2019 00:54:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F21C28884 for ; Mon, 3 Jun 2019 00:54:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1308B2888B; Mon, 3 Jun 2019 00:54:33 +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 9FB1F28884 for ; Mon, 3 Jun 2019 00:54:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6289D898A7; Mon, 3 Jun 2019 00:54:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB11B898A7 for ; Mon, 3 Jun 2019 00:54:28 +0000 (UTC) Received: by mail-qt1-x841.google.com with SMTP id j19so3820808qtr.12 for ; Sun, 02 Jun 2019 17:54:28 -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=zceYXTVJAPHzR+s4YHqDPm741YBgiQdDdwxeii1RN1M=; b=K7uRDAXaUvdXye5wZWkCCHcsQFyGOhloC5yf3MTXKF7oE4BWizx5qQozLNYkav8epz KSKhcTFjhdUpwN1WfrPUhWY5uz8oREcnwIlAoCoXbPHtRteeeUfj3QLX1mULvn/H7Owb 4dfSl9e2fJkgxbcqHdtIauxJQORSfSWn1riDZPzrZ5z0QRLpCEzhwh2vDC/LMOD/VwLI khnwaPLkBFW+4ZSandax1jz9PEUoi0wVoIXG3C6gjCStCyTcZvduSIWea+1OVxVxPWqZ urOvmE1H1P1e/dcRgoR1PD/V2X14qTDcdikK6oVvXMn0lIzlx1Y2jItLXwlkAw/eaOCj HCZQ== X-Gm-Message-State: APjAAAWgunDZtgVvL+QVmCxW4JhW3D2PTRla6DvliV7Rs3b/HHaOw9FH ryAY6o8Rk6aTobPgK2HC1sOzg/gLa3w= X-Google-Smtp-Source: APXvYqzr/DcQWGSRIKV6xwYuUY8hUNtk/gfz/CeoexAx/BjK4kcQqueRf/f0ZDU4Q7wwqDDwecmfXg== X-Received: by 2002:ac8:22db:: with SMTP id g27mr20921604qta.221.1559523267845; Sun, 02 Jun 2019 17:54:27 -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 x2sm8307467qke.92.2019.06.02.17.54.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 17:54:27 -0700 (PDT) From: Ilia Mirkin To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 10/10] modetest: add FP16 format support Date: Sun, 2 Jun 2019 20:54:26 -0400 Message-Id: <20190603005426.7542-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=zceYXTVJAPHzR+s4YHqDPm741YBgiQdDdwxeii1RN1M=; b=MoJX0Psca9nEb9K6a5ejIn2rSHOIgyzZZbQytkaZQwd+E3/ppNcN/a3VIMW/u6SGMs wFCCftAhpthUYkz8gR5CIbOwSxPpKAINF513NjVxhABAjkgTf0gXeYNv4D54Gu3WKStC ZtbUHCNSz42V1FTctsBBvAFH2BcuEKbRb0bYgZ/VE7CngXb61GfCzm5nrHF5sGQPjTlS AXAqiHLNflxRB8qzTTHt6cPIWd7agXgkMdJh67oGnDlXQq+vHHNX8lff4R49UFxyTUv3 4qZpoy1/PJBfRBPjPQDoskgRCihFGH4e+WjcMWz8YOxlyRXi2JCFC1dOjqL6h+50e6ce BqvQ== 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 Signed-off-by: Ilia Mirkin --- tests/modetest/buffers.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/modetest/buffers.c b/tests/modetest/buffers.c index 5ec4ec8e..8a8d9e01 100644 --- a/tests/modetest/buffers.c +++ b/tests/modetest/buffers.c @@ -194,6 +194,13 @@ bo_create(int fd, unsigned int format, bpp = 32; break; + case DRM_FORMAT_XRGB16161616F: + case DRM_FORMAT_XBGR16161616F: + case DRM_FORMAT_ARGB16161616F: + case DRM_FORMAT_ABGR16161616F: + bpp = 64; + break; + default: fprintf(stderr, "unsupported format 0x%08x\n", format); return NULL; @@ -313,6 +320,10 @@ bo_create(int fd, unsigned int format, case DRM_FORMAT_RGBX1010102: case DRM_FORMAT_BGRA1010102: case DRM_FORMAT_BGRX1010102: + case DRM_FORMAT_XRGB16161616F: + case DRM_FORMAT_XBGR16161616F: + case DRM_FORMAT_ARGB16161616F: + case DRM_FORMAT_ABGR16161616F: offsets[0] = 0; handles[0] = bo->handle; pitches[0] = bo->pitch;