From patchwork Wed Aug 12 01:22:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: 'Timothy Arceri' via Patchwork Forward X-Patchwork-Id: 52323 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id 13A97218E7 for ; Wed, 12 Aug 2015 01:22:32 +0000 (UTC) Received: by lagz9 with SMTP id z9sf720669lag.3 for ; Tue, 11 Aug 2015 18:22:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:reply-to; bh=6t5qqGQJP51wxrttffSy1m9/giZHkMzysKTc4ZPZnc8=; b=QGokofoIX09kcs2AZYq0V5vnB36Ylt1gyh0kA74S6Sl9XIcpfkb+E9mIImqenqL6zR by0S/yWmCJlAMSwT8O5RBdtE95SIlLSOle8pZw2+Ex0lLm3M3+ocUJUN1U6Icp+adbCn IFwJS6Lo2939N2PozU3Cire57xgbXnjUA2lSM4HGOFIISrED3oWovhGKJJf3uldFd6rV 3gm4UEf8wpeMSEsuxnHq0cHMS0D/TmTx2NvWrv/Varj/IhRWbQwxE/4LigKsScswMbbi lnXSwpTE1cvRsmeQDxn1DBcC6fvi0bBQpZ+gFZDTkL9eupAtzsECyEy+DHJxDyHpqL7R mv1w== X-Gm-Message-State: ALoCoQlceFHn3iiGfMH21loB1lpSvz9XGWqSjxdhxANY93q2FP8+UuhnLJPrWCOTx3/9jCHxenqI X-Received: by 10.112.139.65 with SMTP id qw1mr8799125lbb.24.1439342550422; Tue, 11 Aug 2015 18:22:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.41 with SMTP id u9ls295306laz.58.gmail; Tue, 11 Aug 2015 18:22:30 -0700 (PDT) X-Received: by 10.152.21.71 with SMTP id t7mr29238397lae.118.1439342550156; Tue, 11 Aug 2015 18:22:30 -0700 (PDT) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com. [2a00:1450:4010:c04::234]) by mx.google.com with ESMTPS id be9si2915047lbc.153.2015.08.11.18.22.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Aug 2015 18:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::234 as permitted sender) client-ip=2a00:1450:4010:c04::234; Received: by lbcbn3 with SMTP id bn3so1310287lbc.2 for ; Tue, 11 Aug 2015 18:22:29 -0700 (PDT) X-Received: by 10.152.164.130 with SMTP id yq2mr22335619lab.76.1439342549407; Tue, 11 Aug 2015 18:22:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp18840lba; Tue, 11 Aug 2015 18:22:28 -0700 (PDT) X-Received: by 10.68.241.166 with SMTP id wj6mr62337800pbc.114.1439342547516; Tue, 11 Aug 2015 18:22:27 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id mn2si6612630pbc.95.2015.08.11.18.22.26; Tue, 11 Aug 2015 18:22:27 -0700 (PDT) Received-SPF: pass (google.com: domain of piglit-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 34B5B6EA0F; Tue, 11 Aug 2015 18:22:26 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm26-vm3.bullet.mail.gq1.yahoo.com (nm26-vm3.bullet.mail.gq1.yahoo.com [98.136.216.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 576DA6EA0F for ; Tue, 11 Aug 2015 18:22:25 -0700 (PDT) Received: from [216.39.60.183] by nm26.bullet.mail.gq1.yahoo.com with NNFMP; 12 Aug 2015 01:22:24 -0000 Received: from [98.136.164.76] by tm19.bullet.mail.gq1.yahoo.com with NNFMP; 12 Aug 2015 01:22:24 -0000 Received: from [127.0.0.1] by smtp238.mail.gq1.yahoo.com with NNFMP; 12 Aug 2015 01:22:24 -0000 X-Yahoo-Newman-Id: 615143.81848.bm@smtp238.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: vLdZ4ecVM1lgDDk3M5xDhFnLaGsrDxzd5UI3OvzFRBojQUc BcBXrnq_ZHXym_uKL3tR0H0v2BxWRT7CeHqh4oQqZPDtjLS_ck1ntgE0qBj7 W3PyUtXGlxjvgOu9QkTZnFhcDEucOQ80dQO.hNYZAInILiSimh4RbHlc37DF elgzMdUC0qc2IZ8GjG_kbF8s0flO6J2jfAdfI18YhQVcBRbzJftQbEjhJ5L3 cAIrTqf7DAoJwV.ILYj0hx5LCKfVk9R4PGn5pPErNaaI9Ol5Bxh6UAQpiUSB XpbGs0Fej_H2Ja1CfBN4V7vA3VC4NKxumWbAquGguG.BemQ.rpNXbZD1JquP bCloWRGNL.mqCjsDeBfUbpTnJaQnpvZkCo8mHqQCvesssIp4iM3XgGOplgaB 41M_TMX1rECb0sBcIyXVe7Y7oo9uzSlMCqrOCk.c2UWdZ.sPkyV5zoNSejk5 4SluVVQnV0loErJg9ibbi4PVTgnQha2pewbnAkXyA90Th3K5x7RRXptsGYW5 epnBKg.kE5zM__2YD_WqtdIZ5RwEgP9H8qqk- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Wed, 12 Aug 2015 11:22:17 +1000 Message-Id: <1439342537-22403-1-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.4.3 Subject: [Piglit] [PATCH] arb_arrays_of_arrays: add simple execution test for tessellation X-BeenThere: piglit@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: piglit-bounces@lists.freedesktop.org Sender: "Piglit" X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::234 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@yahoo.com.au; dmarc=fail (p=NONE dis=NONE) header.from=yahoo.com.au Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 X-Original-From: Timothy Arceri Reply-To: Timothy Arceri This test is a copy of tcs-tes-patch-array.shader_test extended for arrays of arrays. --- .../tessellation/tcs-tes-patch.shader_test | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 tests/spec/arb_arrays_of_arrays/execution/tessellation/tcs-tes-patch.shader_test diff --git a/tests/spec/arb_arrays_of_arrays/execution/tessellation/tcs-tes-patch.shader_test b/tests/spec/arb_arrays_of_arrays/execution/tessellation/tcs-tes-patch.shader_test new file mode 100644 index 0000000..57582bb --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/execution/tessellation/tcs-tes-patch.shader_test @@ -0,0 +1,65 @@ +[require] +GLSL >= 1.50 +GL_ARB_tessellation_shader +GL_ARB_arrays_of_arrays + +[vertex shader passthrough] + +[tessellation control shader] +#extension GL_ARB_tessellation_shader: require +#extension GL_ARB_arrays_of_arrays: require +layout(vertices = 3) out; + +patch out vec4 color[3][2]; + +void main() { + gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position; + gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 0.0); + gl_TessLevelInner = float[2](0.0, 0.0); + color[0][1] = vec4(0, 0.1, 0, 1); + color[1][0] = vec4(0, 0.5, 0, 1); + color[2][0] = vec4(0, 0.2, 0, 1); + color[2][1] = vec4(0, 0.2, 0, 1); +} + + +[tessellation evaluation shader] +#extension GL_ARB_tessellation_shader: require +#extension GL_ARB_arrays_of_arrays: require +layout(triangles) in; + +patch in vec4 color[3][2]; +out vec4 color_fs; + +void main() { + gl_Position = gl_in[0].gl_Position * gl_TessCoord[0] + + gl_in[1].gl_Position * gl_TessCoord[1] + + gl_in[2].gl_Position * gl_TessCoord[2]; + + color_fs = color[0][1] + color[2][0] + color[2][1] + color[1][0]; +} + + +[fragment shader] +in vec4 color_fs; + +void main() +{ + gl_FragColor = color_fs; +} + +[vertex data] +piglit_vertex/float/2 +-1.0 -1.0 + 1.0 -1.0 +-1.0 1.0 +-1.0 1.0 + 1.0 -1.0 + 1.0 1.0 + +[test] +clear color 0.1 0.1 0.1 0.1 +clear +patch parameter vertices 3 +draw arrays GL_PATCHES 0 6 +probe all rgba 0.0 1.0 0.0 1.0