From patchwork Wed Aug 12 09:18:48 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: 52330 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 14F0722ED0 for ; Wed, 12 Aug 2015 09:19:00 +0000 (UTC) Received: by lbcli1 with SMTP id li1sf3683206lbc.2 for ; Wed, 12 Aug 2015 02:18:58 -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=yRe7usTL6T5gQLelcRYDK1UUPxZ+JSZUH2dwoNYDzQg=; b=j0sOpW5FBfewR6rwCrnkOte7q1n9iu5EsMum9bTYXWXlkeytbMQ7Br/l1mD/8wegjM Xh/VFpVWZVEhxQIz9Sas8p5pa4v4TljxqVIhPGYMegV6ZFDX2jS/nY1wiPn3VQyRFqI1 rU1TR6ydbjrsfgGX5m6qjM9zWRLOUkoHmk+dSC5D3O1sAxaXVUsDXTqXQkq16spxV3+7 Cgc/1P+tiZc0pJRT5OUhSuMkbrSE+ADgzZulkkV6PrAGg0THPtpMlsj7ByyYAu5cLoxY zqtkTJ3OMiEaexvJ0X4ZT9inMLuK67fRoMGU1O1u659sbfH1DjWCP8JjtXBCi4+xLWQW vUag== X-Gm-Message-State: ALoCoQlRXn4DUVafzVU15Eq5XCxhIniia7Pf83IH1H/0Qc2ytbM/Db2Lgxvn5V8lLpqShYKFb7mr X-Received: by 10.180.186.36 with SMTP id fh4mr6677817wic.7.1439371138846; Wed, 12 Aug 2015 02:18:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.228 with SMTP id h4ls20209lam.23.gmail; Wed, 12 Aug 2015 02:18:58 -0700 (PDT) X-Received: by 10.112.144.69 with SMTP id sk5mr31039098lbb.6.1439371138591; Wed, 12 Aug 2015 02:18:58 -0700 (PDT) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com. [2a00:1450:4010:c03::22b]) by mx.google.com with ESMTPS id dp7si3675877lbc.155.2015.08.12.02.18.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Aug 2015 02:18:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22b as permitted sender) client-ip=2a00:1450:4010:c03::22b; Received: by labd1 with SMTP id d1so5774696lab.1 for ; Wed, 12 Aug 2015 02:18:58 -0700 (PDT) X-Received: by 10.152.44.196 with SMTP id g4mr12797268lam.56.1439371138367; Wed, 12 Aug 2015 02:18:58 -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 l6csp196187lba; Wed, 12 Aug 2015 02:18:57 -0700 (PDT) X-Received: by 10.70.140.139 with SMTP id rg11mr25535169pdb.34.1439371136978; Wed, 12 Aug 2015 02:18:56 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id yb7si8502287pbc.53.2015.08.12.02.18.56; Wed, 12 Aug 2015 02:18:56 -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 CDC396EAE8; Wed, 12 Aug 2015 02:18:55 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm11-vm10.bullet.mail.gq1.yahoo.com (nm11-vm10.bullet.mail.gq1.yahoo.com [98.136.218.127]) by gabe.freedesktop.org (Postfix) with ESMTPS id D81596EAE8 for ; Wed, 12 Aug 2015 02:18:53 -0700 (PDT) Received: from [98.137.12.57] by nm11.bullet.mail.gq1.yahoo.com with NNFMP; 12 Aug 2015 09:18:53 -0000 Received: from [98.136.164.65] by tm2.bullet.mail.gq1.yahoo.com with NNFMP; 12 Aug 2015 09:18:53 -0000 Received: from [127.0.0.1] by smtp227.mail.gq1.yahoo.com with NNFMP; 12 Aug 2015 09:18:53 -0000 X-Yahoo-Newman-Id: 90881.67518.bm@smtp227.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: h4vM7u0VM1kYltyDlYFmakegZAHrggvhTc40WbTCjgQnvjJ En3GSg2QgERzT__NjCR5kxvLXOze2.rK7B6dem1BcyX0jiMVwzx7Ycy4CLZ3 EGoeOpIsjaaop.GXkrkmgfAAcj7K.IrRUqB0VSYT0.U7sh.TSB7Wp7FZridi UO1_1F4UXxLRXaU51vIZ2izGme_x_kkDDTv0H0EkcD8l8UiRFb_xJaFgvool k_WyA4sQXKWnufHxULoT7HAMSwhU1ngNTO.FU_93hF1fPIU2T6AgqZPmROas 9RE2iLHe.UExztoX8GrKOTZ_3ohFR9LRDmpDwmBIs2G51MbdQQ04ceZYeUBj bxCLj4GR.vrXVpduzYr5MbLMWTqoFrItEO2h9oKIN4Akg.SPBLMA0zPsYP9M fO3bSgbUXsTkyYDbbFE8lf2x.ZI.Bo7UlvfXpUOKPIleZddqOtRR_jcUEl6a Z.nlY7T1XzYMu3houVbIkM6qtoIZ45AR_zXA16G4IYy4EYbz2rB0_1iFkOgo L.3xQYdZJf1jtod2j.nv7YPhUBU.1k6hDi6g- X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Wed, 12 Aug 2015 19:18:48 +1000 Message-Id: <1439371128-32766-1-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 2.4.3 Subject: [Piglit] [PATCH] arb_arrays_of_arrays: mixed direct and indirect image indexing 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::22b 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 --- ...mixed-const-non-const-uniform-index.shader_test | 66 ++++++++++++++++++++++ ...ixed-const-non-const-uniform-index2.shader_test | 66 ++++++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-mixed-const-non-const-uniform-index.shader_test create mode 100644 tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-mixed-const-non-const-uniform-index2.shader_test diff --git a/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-mixed-const-non-const-uniform-index.shader_test b/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-mixed-const-non-const-uniform-index.shader_test new file mode 100644 index 0000000..93996a8 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-mixed-const-non-const-uniform-index.shader_test @@ -0,0 +1,66 @@ +# 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; +writeonly uniform image2D tex[2][2]; +out vec4 outcolor; + +void main() +{ + imageStore(tex[1][n], 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) GL_RGBA8 +image texture 0 + +# Texture 1 is the imageStore output. +uniform int tex[1][1] 1 +texture rgbw 1 (16, 16) GL_RGBA8 +image texture 1 + +# Texture 3 is the rendering output. We don't care about this. +texture rgbw 2 (16, 16) + +# Store red using imageStore +uniform int n 0 +uniform vec4 color 1.0 0.0 0.0 1.0 +fb tex 2d 2 +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 1 +uniform vec4 color 0.0 1.0 0.0 1.0 +fb tex 2d 2 +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 diff --git a/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-mixed-const-non-const-uniform-index2.shader_test b/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-mixed-const-non-const-uniform-index2.shader_test new file mode 100644 index 0000000..1b5bded --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/execution/image_store/basic-imageStore-mixed-const-non-const-uniform-index2.shader_test @@ -0,0 +1,66 @@ +# 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; +writeonly uniform image2D tex[2][2]; +out vec4 outcolor; + +void main() +{ + imageStore(tex[n][1], 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][1] 0 +texture rgbw 0 (16, 16) GL_RGBA8 +image texture 0 + +# Texture 1 is the imageStore output. +uniform int tex[1][1] 1 +texture rgbw 1 (16, 16) GL_RGBA8 +image texture 1 + +# Texture 3 is the rendering output. We don't care about this. +texture rgbw 2 (16, 16) + +# Store red using imageStore +uniform int n 0 +uniform vec4 color 1.0 0.0 0.0 1.0 +fb tex 2d 2 +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 1 +uniform vec4 color 0.0 1.0 0.0 1.0 +fb tex 2d 2 +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