From patchwork Mon Oct 19 19:47:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 7439431 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 90395BEEA4 for ; Mon, 19 Oct 2015 19:48:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF108207FA for ; Mon, 19 Oct 2015 19:48:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C437F207F9 for ; Mon, 19 Oct 2015 19:48:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A5F16EABE; Mon, 19 Oct 2015 12:48:15 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8EE8D720F2 for ; Mon, 19 Oct 2015 12:48:14 -0700 (PDT) Received: by qkfm62 with SMTP id m62so88266796qkf.1 for ; Mon, 19 Oct 2015 12:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FGJXJQHEnbkAIVBHrm+1VQNwDFRnCFgqOJ4BO7Ah0Fk=; b=VhPor73PpqwjaaCvFIe5J2OZ+KCCSjSHGaSoxXxH6Fxzoitwhl31zt6L897SO6T+jV 4x9mCIOgxgiz0amfRzQ+3p8qn3iHZnFCyx7wBfeBAegQvxDKLQYy6IV8K+70dHfnnJKF w/ZP82xh3cnk3n9hMeTbAxe3b4Zt18hawwdYmrS9mNxvPrM7VGdMX0cEdpOk+/+UU9E8 cZb9CFEhYOczOvwvyvRg+s8DI4PglQv3iWxxHloUavIbrHcfdLujMHH9bdJGxqO1FsFg VUjmrj04Q5pCBLdN3inaJ/3T4iU9tKAL1y+Qa+HrkjV9zaMe6CL3J6J6mYzpkkEYlXIi jsBw== X-Received: by 10.55.217.209 with SMTP id q78mr37808482qkl.91.1445284093025; Mon, 19 Oct 2015 12:48:13 -0700 (PDT) Received: from localhost ([2601:184:4000:26d7:6af7:28ff:fe77:e429]) by smtp.gmail.com with ESMTPSA id 28sm15029363qkw.12.2015.10.19.12.48.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 12:48:12 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Subject: [RFCv0 3/8] gallium: add NIR as a possible IR Date: Mon, 19 Oct 2015 15:47:56 -0400 Message-Id: <1445284081-29532-4-git-send-email-robdclark@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1445284081-29532-1-git-send-email-robdclark@gmail.com> References: <1445284081-29532-1-git-send-email-robdclark@gmail.com> Cc: Jason Ekstrand X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 --- src/gallium/include/pipe/p_defines.h | 1 + src/gallium/include/pipe/p_state.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 29b0bfb..0dbc54c 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -715,6 +715,7 @@ enum pipe_shader_ir PIPE_SHADER_IR_TGSI = 0, PIPE_SHADER_IR_LLVM, PIPE_SHADER_IR_NATIVE, + PIPE_SHADER_IR_NIR, }; /** diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 50bfc4a..54ca31f 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -230,6 +230,7 @@ struct pipe_shader_state const struct tgsi_token *tokens; void *llvm; void *native; + void *nir; }; struct pipe_stream_output_info stream_output; };