From patchwork Tue Dec 10 07:29:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenneth Graunke X-Patchwork-Id: 3314711 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 11F66C0D4A for ; Tue, 10 Dec 2013 07:29:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6F4E20340 for ; Tue, 10 Dec 2013 07:29:15 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 80D3B20353 for ; Tue, 10 Dec 2013 07:29:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B8566FB34F; Mon, 9 Dec 2013 23:29:10 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from homiemail-a14.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by gabe.freedesktop.org (Postfix) with ESMTP id 77656FB03A for ; Mon, 9 Dec 2013 23:29:04 -0800 (PST) Received: from homiemail-a14.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTP id D2683392076; Mon, 9 Dec 2013 23:29:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=whitecape.org; h=from:to :cc:subject:date:message-id; s=whitecape.org; bh=23IJsXqrEB9vaZC W1wt8eGKxeTU=; b=FYBh5RU9vfiAmndzXmcXpFGOTNV/Nzijj30Df5ushRGFZ4A voYiwE3ittHKncNDAqoKJaN11fk+x0VnmBP3D7V09CWYg6HHpEe6FoOO+XSfhWSl VZtnUkBIp1+yQ+JsGzYbaOx5xkMGQF94Y168XRV8vsiorNZ1pe1iL3XoCqzw= Received: from zidane.shinigami (unknown [50.126.105.238]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: kenneth@whitecape.org) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTPSA id 79964392075; Mon, 9 Dec 2013 23:29:03 -0800 (PST) From: Kenneth Graunke To: intel-gfx@lists.freedesktop.org Date: Mon, 9 Dec 2013 23:29:35 -0800 Message-Id: <1386660576-1861-1-git-send-email-kenneth@whitecape.org> X-Mailer: git-send-email 1.8.4.2 Cc: Ben Widawsky Subject: [Intel-gfx] [PATCH 1/2] rendercopy/bdw: Emit 3DSTATE_WM_HZ_OP. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We don't want depth/stencil fast clears or HiZ resolves; we want normal drawing. Without this, the pixel pipeline doesn't work. Signed-off-by: Kenneth Graunke Cc: Ben Widawsky Cc: Damien Lespiau --- lib/gen8_render.h | 2 ++ lib/rendercopy_gen8.c | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/lib/gen8_render.h b/lib/gen8_render.h index 7b89876..ca53d64 100644 --- a/lib/gen8_render.h +++ b/lib/gen8_render.h @@ -22,6 +22,8 @@ # define GEN8_3DSTATE_MULTISAMPLE_NUMSAMPLES_8 (3 << 1) # define GEN9_3DSTATE_MULTISAMPLE_NUMSAMPLES_16 (4 << 1) +#define GEN8_3DSTATE_WM_HZ_OP GEN6_3D(3, 0, 0x52) + #define GEN8_3DSTATE_VF_INSTANCING GEN6_3D(3, 0, 0x49) #define GEN7_3DSTATE_GS GEN6_3D(3, 0, 0x11) #define GEN7_3DSTATE_CONSTANT_GS GEN6_3D(3, 0, 0x16) diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 1a137dd..38dc0e7 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -679,7 +679,17 @@ gen8_emit_ds(struct intel_batchbuffer *batch) { } static void +gen8_emit_wm_hz_op(struct intel_batchbuffer *batch) { + OUT_BATCH(GEN8_3DSTATE_WM_HZ_OP | (5-2)); + OUT_BATCH(0); + OUT_BATCH(0); + OUT_BATCH(0); + OUT_BATCH(0); +} + +static void gen8_emit_null_state(struct intel_batchbuffer *batch) { + gen8_emit_wm_hz_op(batch); gen8_emit_hs(batch); OUT_BATCH(GEN7_3DSTATE_TE | (4-2)); OUT_BATCH(0);