From patchwork Thu Nov 10 10:15:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 9420891 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7081560484 for ; Thu, 10 Nov 2016 10:16:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DE571FF10 for ; Thu, 10 Nov 2016 10:16:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42E642952E; Thu, 10 Nov 2016 10:16:22 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID 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 858881FF10 for ; Thu, 10 Nov 2016 10:16:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A42189C49; Thu, 10 Nov 2016 10:16:20 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1648F89C49 for ; Thu, 10 Nov 2016 10:16:19 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id m203so452094wma.3 for ; Thu, 10 Nov 2016 02:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=p+J70kErPfocEWU6udTEAIxMQEMnECoZZSJFvRY9Q0k=; b=eGThtG0RCo6HDFxYXhatr7BKfHD2Wzlgq1z825rVDb41/LzHAocynQWmEJSm73PtxA D5V4brFaJ6R9T9iEl58eSpsC/eFPfZzuqSSnFcvBYuUuPRCFyf3PNsVjPskSaWlobS+2 N3MZCt+5E5S0CeY59EFNzXd1I+VX6quEl5oNzjfYfOl0TtjD0i9Qq3mbk4f8tQojGFhZ s1y7hd7OmRFAlQdDa9lr8/QZlJm16CiWfSUY24Ix63mEazE+mJliXhkY8LXQ+ea99Q82 /3Z2hfx5EU3IeTutyHbsjV10ZpzboYs0IOgOt5gl4LhTypeeGGreqqPWc4h4vJcIaxJ4 18xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=p+J70kErPfocEWU6udTEAIxMQEMnECoZZSJFvRY9Q0k=; b=IfOwN3H2V0vKDkQ6gbJ57RjlURDrx/KNH1B+jYaZtrihlbnYIkfKL/46NoZdnjBl7k +QHIIggOW9DgzSvT+C1UGSZZlEq0hk8DCbPXxloAUZYsTrStzdXCGxBOl4O6ZrTZfu3b 5wSVU0xFXImATkcBsDuoNwnCYsjV4lJg1vugr44bBEb1kFuIBE3uEb+aNrHZCPYSK9Mi Gp7JhJQHJoCpj1H/+8qe3pxFSAYnCLEGR0iFTwuns32D2yu+rILVj7b90LCLa74VMWgB 4cNafIkyohYJIlwZ4/ANns+5V5j82pslOrlGTb67T8kIvmlgieESeDZUvI77eOXkMmNX rTSA== X-Gm-Message-State: ABUngvenjv3SYtTQCIQ6RS9boMqGKhhainhyFRQ7iNMqDm4oqhA1+ywqdDT7PCsem+p1CA== X-Received: by 10.195.18.71 with SMTP id gk7mr4153389wjd.175.1478772977552; Thu, 10 Nov 2016 02:16:17 -0800 (PST) Received: from cizrna.cbg.collabora.co.uk ([2a00:1098:5:0:8415:64ff:fe1f:7423]) by smtp.gmail.com with ESMTPSA id f76sm5303244wmd.15.2016.11.10.02.16.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Nov 2016 02:16:16 -0800 (PST) From: Tomeu Vizoso To: Intel GFX discussion Date: Thu, 10 Nov 2016 11:15:58 +0100 Message-Id: <1478772958-6170-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.7.4 Cc: Tomeu Vizoso Subject: [Intel-gfx] [PATCH i-g-t] lib: Pass I915_TILING_Y to the kernel if Yf or Ys X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP GEM_SET_TILING doesn't care about Yf or Ys, so just pass Y. Signed-off-by: Tomeu Vizoso --- lib/ioctl_wrappers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 95bc5e268bcd..eabf3ee3abe6 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -158,6 +158,9 @@ int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride) igt_require_intel(fd); + if (tiling == I915_TILING_Yf || tiling == I915_TILING_Ys) + tiling = I915_TILING_Y; + memset(&st, 0, sizeof(st)); do { st.handle = handle;