From patchwork Thu Jul 14 21:21:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenneth Graunke X-Patchwork-Id: 975882 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6ELQfAW001728 for ; Thu, 14 Jul 2011 21:27:01 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 22F8C9F50C for ; Thu, 14 Jul 2011 14:26:41 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from homiemail-a1.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by gabe.freedesktop.org (Postfix) with ESMTP id 9315E9EBA3 for ; Thu, 14 Jul 2011 14:24:20 -0700 (PDT) Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id 3B9AA34806C; Thu, 14 Jul 2011 14:24:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=whitecape.org; h=from:to:cc :subject:date:message-id:in-reply-to:references; q=dns; s= whitecape.org; b=RM2hWUoQ1TekOLjI9KNBVIYTh15N1jXpxvcRuuB7hqwSgv6 MOy4WEUxagDGUjDckZE5SNHCKdMaGBzE2gGqjUz7RoILtNLX3grxalRpE3v2RatL QVkzKopm3BjdoYzYlfIltvl/UH4NVc/fPFvq2DtTBXq2rs0WP+04MnqPXG1M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=whitecape.org; h=from:to :cc:subject:date:message-id:in-reply-to:references; s= whitecape.org; bh=ExLsRBubR1DvZIhhxWtKDTmILrw=; b=pVDRb+6b6nzjjF BSDSMYR+5my0DazeqP2zF1NNJxXGzpF7FV2QOoKEbEuFPBbD2+6aKWdKA8lIcxey v9JuOPFBcBrLojqAcHAbGuHPMplL/pO5QLT0yYnDXEkb/kk+M+CaMVi2aShh7iet 69syuLWiBkrA5tOaosHO+An2l3qIM= Received: from localhost (fruit.freedesktop.org [131.252.210.190]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: kenneth@whitecape.org) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPSA id E98DA34806B; Thu, 14 Jul 2011 14:24:19 -0700 (PDT) From: Kenneth Graunke To: intel-gfx@lists.freedesktop.org Date: Thu, 14 Jul 2011 14:21:17 -0700 Message-Id: <1310678483-7494-5-git-send-email-kenneth@whitecape.org> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1310678483-7494-1-git-send-email-kenneth@whitecape.org> References: <1310678483-7494-1-git-send-email-kenneth@whitecape.org> Subject: [Intel-gfx] [PATCH 04/10] render: Set Address Modify Enable in 3DSTATE_VERTEX_BUFFERS on Gen7. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 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+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 14 Jul 2011 21:27:01 +0000 (UTC) Signed-off-by: Kenneth Graunke --- src/i965_render.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/i965_render.c b/src/i965_render.c index 1dfdde4..ec10392 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -2167,10 +2167,14 @@ i965_prepare_composite(int op, PicturePtr source_picture, static void i965_select_vertex_buffer(struct intel_screen_private *intel) { int id = intel->gen4_render_state->composite_op.vertex_id; + int modifyenable = 0; if (intel->vertex_id & (1 << id)) return; + if (INTEL_INFO(intel)->gen >= 70) + modifyenable = GEN7_VB0_ADDRESS_MODIFYENABLE; + /* Set up the pointer to our (single) vertex buffer */ OUT_BATCH(BRW_3DSTATE_VERTEX_BUFFERS | 3); @@ -2180,6 +2184,7 @@ static void i965_select_vertex_buffer(struct intel_screen_private *intel) if (INTEL_INFO(intel)->gen >= 60) { OUT_BATCH((id << GEN6_VB0_BUFFER_INDEX_SHIFT) | GEN6_VB0_VERTEXDATA | + modifyenable | (4*intel->floats_per_vertex << VB0_BUFFER_PITCH_SHIFT)); } else { OUT_BATCH((id << VB0_BUFFER_INDEX_SHIFT) |