From patchwork Mon Jun 8 02:18:02 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: 49608 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7EA1822B3F for ; Mon, 8 Jun 2015 02:19:11 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf29875922lbb.0 for ; Sun, 07 Jun 2015 19:19:10 -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:in-reply-to:references: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=xsgkNsJrzyABSBAsmI3aUsZ5rbQ7M8GEDYcyOsU7hRM=; b=kfu/rSrpDds+MJvaVe3d17jcgMSU8wRHsWq0otWMJL2aGWQgZ9GIp5gqsX6/C6leZ+ TplgPQQOx5AP3KQte/9bGmlQTK+OMNCe76wju73qWcAgHs6ukk1rCDlLv4YvJ/fi4/7/ RrIkKE3NZFUxaKJsP6gqf2hHcAu7EpeCWQ2pLls3oMCoS2rf4PE6taaGXmqOGBxK5oTV KNjEU5Q4ujYkCL4q4+lKMvtC1EaQzvDoKo6sFIe+L/3ZzLNLgzEAy7G1TwWiieVsLI9a MgFpw+/BQOZXyxByRGrbDWnLoV/8qh8pzsb4WULvh+ni+SO3iK719svPp5IpZiSLTO9D Jp7A== X-Gm-Message-State: ALoCoQl/pcbOn//QrZPohkFe1COI0amR/uceCdzf/D5p5dq+IbEFrSQpd3aqbqEakhJe1zAFmmt2 X-Received: by 10.194.179.42 with SMTP id dd10mr14813324wjc.7.1433729950147; Sun, 07 Jun 2015 19:19:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.162 with SMTP id g2ls624482lae.80.gmail; Sun, 07 Jun 2015 19:19:09 -0700 (PDT) X-Received: by 10.152.243.9 with SMTP id wu9mr14016472lac.63.1433729949868; Sun, 07 Jun 2015 19:19:09 -0700 (PDT) Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com. [2a00:1450:4010:c03::22e]) by mx.google.com with ESMTPS id xi9si1313613lbb.4.2015.06.07.19.19.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jun 2015 19:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22e as permitted sender) client-ip=2a00:1450:4010:c03::22e; Received: by laew7 with SMTP id w7so86787096lae.1 for ; Sun, 07 Jun 2015 19:19:09 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr13935399lac.41.1433729949249; Sun, 07 Jun 2015 19:19:09 -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.108.230 with SMTP id hn6csp1521991lbb; Sun, 7 Jun 2015 19:19:08 -0700 (PDT) X-Received: by 10.68.57.170 with SMTP id j10mr25541103pbq.150.1433729947429; Sun, 07 Jun 2015 19:19:07 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id pf6si1769150pbb.67.2015.06.07.19.19.06; Sun, 07 Jun 2015 19:19:07 -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 4C9976E1E3; Sun, 7 Jun 2015 19:19:06 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm26-vm5.bullet.mail.gq1.yahoo.com (nm26-vm5.bullet.mail.gq1.yahoo.com [98.136.216.132]) by gabe.freedesktop.org (Postfix) with ESMTP id A18896E196 for ; Sun, 7 Jun 2015 19:19:04 -0700 (PDT) Received: from [98.137.12.57] by nm26.bullet.mail.gq1.yahoo.com with NNFMP; 08 Jun 2015 02:19:04 -0000 Received: from [98.136.164.76] by tm2.bullet.mail.gq1.yahoo.com with NNFMP; 08 Jun 2015 02:19:03 -0000 Received: from [127.0.0.1] by smtp238.mail.gq1.yahoo.com with NNFMP; 08 Jun 2015 02:19:03 -0000 X-Yahoo-Newman-Id: 912883.17301.bm@smtp238.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: qnXb0xAVM1n96Y0jkg4Dg_fNs1Knc6wKQ5xTFXiesywk7g3 Eu5yAIqgwtnRhQOjlLiAFlvgh4lV17ah0lLXt0C3CZRzXKnjRzc_xVEeFGcw mh.olYEEdpWhOIcSbBUkoQBoEOukkHqp3eW87aTuC.dmq2mnlRErzuubpb8t j1iFwd339ThtkKOZnwwW1sum1LvvKmDdrzBTOYmmJ_dmTKLYGFoNbdMNP8bA UEjeYU_iMcISGaN0vd6bmL7qTVcszqYKOkw3woLB5IbqhlpbOp70M10l0xAd AZf8SgSEMfwgXo6gbRStUNDJ7.bOGdHqBTTTWucnGH8CohP4IJ6cjlCxDLeP HvFSP7.YASk7gJwbE1_vuH0_0nmjeJ9x_3dAojiNHPEt.CFnNBpxqlnRGt7V KTwIWHAteBWtR6KhouqIvcSs2f2ANhCFNoHqvzmE7RDQ0VVze331qM4lXIxL zfx9BAyL5gR0SqN4WEKmX7YD6RL4Jm65jwL_Va5Ee13HjCoHp6CPEeTJl8YT e0nY1jzVC_bUTL9k4HeZzgc9BoPPjGK_rmAY- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Mon, 8 Jun 2015 12:18:02 +1000 Message-Id: <1433729882-5502-4-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1433729882-5502-1-git-send-email-t_arceri@yahoo.com.au> References: <1433729882-5502-1-git-send-email-t_arceri@yahoo.com.au> Subject: [Piglit] [PATCH 4/4] arb_arrays_of_arrays: basic image store execution tests 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:c03::22e as permitted sender) smtp.mail=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 Test results: Nvidia GeForce 840M - NVIDIA 346.47 basic-imageStore-const-uniform-index.shader_test - pass basic-imageStore-non-const-uniform-index.shader_test - pass --- ...asic-imageStore-const-uniform-index.shader_test | 58 ++++++++++++ ...-imageStore-non-const-uniform-index.shader_test | 101 +++++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-const-uniform-index.shader_test create mode 100644 tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-non-const-uniform-index.shader_test diff --git a/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-const-uniform-index.shader_test b/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-const-uniform-index.shader_test new file mode 100644 index 0000000..0009f86 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-const-uniform-index.shader_test @@ -0,0 +1,58 @@ +# Verify simple reading of a uniform and output to an image + +[require] +GL >= 3.3 +GLSL >= 3.30 +GL_ARB_shader_image_load_store +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 130 +in vec4 piglit_vertex; + +void main() +{ + gl_Position = piglit_vertex; +} + +[fragment shader] +#version 330 +#extension GL_ARB_shader_image_load_store: enable +#extension GL_ARB_arrays_of_arrays: require + +uniform vec4 color; +writeonly uniform image2D tex[2][2]; +out vec4 outcolor; + +void main() +{ + imageStore(tex[1][0], ivec2(gl_FragCoord.xy), color); + outcolor = vec4(0.0, 0.0, 0.0, 1.0); +} + +[test] +# Texture 0 is the imageStore output. +uniform int tex[1][0] 0 +texture rgbw 0 (16, 16) +image texture 0 + +# Texture 1 is the rendering output. We don't care about this. +texture rgbw 1 (16, 16) + +# Store red using imageStore +uniform vec4 color 1.0 0.0 0.0 1.0 +fb tex 2d 1 +draw rect -1 -1 2 2 + +# Test the result of imageStore +fb tex 2d 0 +probe all rgba 1.0 0.0 0.0 1.0 + +# Store green using imageStore +uniform vec4 color 0.0 1.0 0.0 1.0 +fb tex 2d 1 +draw rect -1 -1 2 2 + +# Test the result of imageStore +fb tex 2d 0 +probe all rgba 0.0 1.0 0.0 1.0 diff --git a/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-non-const-uniform-index.shader_test b/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-non-const-uniform-index.shader_test new file mode 100644 index 0000000..f5271e6 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-non-const-uniform-index.shader_test @@ -0,0 +1,101 @@ +# Verify simple reading of a uniform and output to an image + +[require] +GL >= 3.3 +GLSL >= 3.30 +GL_ARB_shader_image_load_store +GL_ARB_arrays_of_arrays + +[vertex shader] +#version 130 +in vec4 piglit_vertex; + +void main() +{ + gl_Position = piglit_vertex; +} + +[fragment shader] +#version 330 +#extension GL_ARB_shader_image_load_store: enable +#extension GL_ARB_arrays_of_arrays: require + +uniform vec4 color; +uniform int n; +uniform int m; +writeonly uniform image2D tex[2][2]; +out vec4 outcolor; + +void main() +{ + imageStore(tex[n][m], ivec2(gl_FragCoord.xy), color); + outcolor = vec4(0.0, 0.0, 0.0, 1.0); +} + +[test] +# Texture 0 is the imageStore output. +uniform int tex[0][0] 0 +texture rgbw 0 (16, 16) +image texture 0 + +# Texture 1 is the imageStore output. +uniform int tex[0][1] 1 +texture rgbw 1 (16, 16) +image texture 1 + +# Texture 2 is the imageStore output. +uniform int tex[1][0] 2 +texture rgbw 2 (16, 16) +image texture 2 + +# Texture 3 is the imageStore output. +uniform int tex[1][1] 3 +texture rgbw 3 (16, 16) +image texture 3 + +# Texture 4 is the rendering output. We don't care about this. +texture rgbw 4 (16, 16) + +# Store red using imageStore +uniform int n 0 +uniform int m 0 +uniform vec4 color 1.0 0.0 0.0 1.0 +fb tex 2d 4 +draw rect -1 -1 2 2 + +# Test the result of imageStore 0 +fb tex 2d 0 +probe all rgba 1.0 0.0 0.0 1.0 + +# Store green using imageStore +uniform int n 0 +uniform int m 1 +uniform vec4 color 0.0 1.0 0.0 1.0 +fb tex 2d 4 +draw rect -1 -1 2 2 + +# Test the result of imageStore 1 +fb tex 2d 1 +probe all rgba 0.0 1.0 0.0 1.0 + +# Store blue using imageStore +uniform int n 1 +uniform int m 0 +uniform vec4 color 0.0 0.0 1.0 1.0 +fb tex 2d 4 +draw rect -1 -1 2 2 + +# Test the result of imageStore 2 +fb tex 2d 2 +probe all rgba 0.0 0.0 1.0 1.0 + +# Store cyan using imageStore +uniform int n 1 +uniform int m 1 +uniform vec4 color 0.0 1.0 1.0 1.0 +fb tex 2d 4 +draw rect -1 -1 2 2 + +# Test the result of imageStore 3 +fb tex 2d 3 +probe all rgba 0.0 1.0 1.0 1.0