From patchwork Sat Jun 14 12:35:59 2014 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: 31896 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0B97C201EF for ; Sat, 14 Jun 2014 12:36:44 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id h18sf5230218igc.2 for ; Sat, 14 Jun 2014 05:36:43 -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:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:reply-to :content-type:content-transfer-encoding; bh=2Cv6JrGshp1ZY6orwBLvOqcbRru3qvelqocWFYI5LMU=; b=DDMLsnU23LAPDptHCSjG0PQD19j5gHG4A2sS3PccaXzr7i4uQKUWrsjeFDbkCd4DUx CsT5sRSzEUt7utNBsEqpRn8M4WHA9d/tZhIUaJac2Tyl5o//k7IPXRr9NUOCGxr4xjLk yue5qqvtdRhp+eDVLGk5KbAjufm5HxA5DP27JXnyet8owpTUuIeMod5DM6MPLYzm9Fs6 4K6nfOMKdeGQJyBPStlg3QA8acVnt9yZWGyRUTaBulJCCn1ZLxY1UmKhoJavjs28PXkx 74UrPjqm5mWElslAn8oaEmo3fIN09/iXAy4j7QtRoclBCvzxunfPbPI3oOdItSsTy1zS jh5w== X-Gm-Message-State: ALoCoQn2vozi+1ScGJakgGfN762yRT6cOPq094Kfxik9gSvc2krJ03jYFmRQp5foD3A6Jbaom5qa X-Received: by 10.182.120.129 with SMTP id lc1mr3827208obb.21.1402749403560; Sat, 14 Jun 2014 05:36:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.203 with SMTP id v69ls3763930qgd.6.gmail; Sat, 14 Jun 2014 05:36:43 -0700 (PDT) X-Received: by 10.58.227.193 with SMTP id sc1mr85267vec.43.1402749403403; Sat, 14 Jun 2014 05:36:43 -0700 (PDT) Received: from mail-ve0-x22d.google.com (mail-ve0-x22d.google.com [2607:f8b0:400c:c01::22d]) by mx.google.com with ESMTPS id a11si2335629vcf.3.2014.06.14.05.36.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 14 Jun 2014 05:36:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::22d as permitted sender) client-ip=2607:f8b0:400c:c01::22d; Received: by mail-ve0-f173.google.com with SMTP id db11so4361715veb.4 for ; Sat, 14 Jun 2014 05:36:43 -0700 (PDT) X-Received: by 10.52.27.209 with SMTP id v17mr5688771vdg.23.1402749403298; Sat, 14 Jun 2014 05:36:43 -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.221.54.6 with SMTP id vs6csp20555vcb; Sat, 14 Jun 2014 05:36:42 -0700 (PDT) X-Received: by 10.66.227.33 with SMTP id rx1mr10209858pac.133.1402749402455; Sat, 14 Jun 2014 05:36:42 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id ay4si5168549pbc.122.2014.06.14.05.36.42 for ; Sat, 14 Jun 2014 05:36:42 -0700 (PDT) Received-SPF: none (google.com: piglit-bounces@lists.freedesktop.org does not designate permitted sender hosts) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C207C6E12F; Sat, 14 Jun 2014 05:36:41 -0700 (PDT) X-Original-To: piglit@lists.freedesktop.org Delivered-To: piglit@lists.freedesktop.org Received: from nm26-vm0.bullet.mail.bf1.yahoo.com (nm26-vm0.bullet.mail.bf1.yahoo.com [98.139.213.74]) by gabe.freedesktop.org (Postfix) with ESMTP id CAA886E131 for ; Sat, 14 Jun 2014 05:36:40 -0700 (PDT) Received: from [98.139.215.141] by nm26.bullet.mail.bf1.yahoo.com with NNFMP; 14 Jun 2014 12:36:40 -0000 Received: from [68.142.230.73] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 14 Jun 2014 12:36:40 -0000 Received: from [127.0.0.1] by smtp230.mail.bf1.yahoo.com with NNFMP; 14 Jun 2014 12:36:40 -0000 X-Yahoo-Newman-Id: 94196.78592.bm@smtp230.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: k7dE09sVM1nTlNlQsqIK3Z7OFserW0.O6BPb5pHEDNynxFX RFlXQH__YaWZfkQDHuFGhg022BplNt3pYXv_nKggJMI61u1I.PTNYvtVF7bs q0IkO59Qn2GCEZW5CXRv9prdFp205LIpGtZAVitEdPo4PpF4tXoOKCY_otGp ti7K6lDfxTnCGet.yOBdVidA0k8N8qcWNzLmuDWHq266iIYH5F_3n83ulyw9 zNVwzjjqRCTjKoEFF4_sfKkQah9pejK7niziGC9fLfYm.y7YyxhstZ5X62LX 9a2rx.r9ad9NjrwicIRExXW6Po.ihP_330V.u_r2Pwr1NzcaOFFfRinKJ9LT 0mV8obMGoxgHxKG._f2bSTgE41VfxUAy33w3RW2au56QmYxpGZGMenQmNMiM DT8YpK16tdWk3dK9AXBCa9cSeF9y1hBiQpU3hWgiAPbW1dKXUs2rdYfpz5Rz q3E8RuXS58N760VaVcvpKYtj8ZjdOlcWz9tfE2fu7HC3d3cblUoi88kSWQpM dXY6bir855OKq3bsAXr.nuNep X-Yahoo-SMTP: 9BNlx.aswBAkr0D8mG_whiOP1dyU X-Rocket-Received: from localhost.localdomain (t_arceri@60.240.113.240 with plain [98.139.211.125]) by smtp230.mail.bf1.yahoo.com with SMTP; 14 Jun 2014 12:36:40 +0000 UTC From: "'Timothy Arceri' via Patchwork Forward" To: piglit@lists.freedesktop.org Date: Sat, 14 Jun 2014 22:35:59 +1000 Message-Id: <1402749361-11643-8-git-send-email-t_arceri@yahoo.com.au> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1402749361-11643-1-git-send-email-t_arceri@yahoo.com.au> References: <1402749361-11643-1-git-send-email-t_arceri@yahoo.com.au> Subject: [Piglit] [PATCH V4 07/11] arb_arrays_of_arrays: length and bounds tests X-BeenThere: piglit@lists.freedesktop.org X-Mailman-Version: 2.1.15 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 2607:f8b0:400c:c01::22d as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@; 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 are from the following hardware/driver combinations: AMD Radeon HD 6670 - Catalyst 13.251 OpenGL 4.3 Nvidia GeForce 210 - NVIDIA 331.20 OpenGL 3.3 Intel Ivy Bridge - Mesa 10.1(815e064) with ARB_arrays_of_arrays enabled length-array-array-var.vert AMD: pass Nvida: pass Intel: pass length-array-var-array.vert AMD: pass Nvida: pass Intel: pass length-var-array-array.vert AMD: pass Nvida: pass Intel: pass maxbounds-access-array-array-var.vert AMD: pass Nvida: pass Intel: pass maxbounds-access-array-var-array.vert AMD: pass Nvida: pass Intel: pass maxbounds-access-var-array-array.vert AMD: pass Nvida: pass Intel: pass outofbounds-access-array-array-var.vert AMD: pass Nvida: fail (Nvidia only warns for outofbounds) Intel: pass outofbounds-access-array-var-array.vert AMD: pass Nvida: fail (Nvidia only warns for outofbounds) Intel: pass outofbounds-access-var-array-array.vert AMD: pass Nvida: fail (Nvidia only warns for outofbounds) Intel: pass Signed-off-by: Timothy Arceri --- .../compiler/length-array-array-var.vert | 13 +++++++++++++ .../compiler/length-array-var-array.vert | 13 +++++++++++++ .../compiler/length-var-array-array.vert | 13 +++++++++++++ .../compiler/maxbounds-access-array-array-var.vert | 15 +++++++++++++++ .../compiler/maxbounds-access-array-var-array.vert | 15 +++++++++++++++ .../compiler/maxbounds-access-var-array-array.vert | 15 +++++++++++++++ .../compiler/outofbounds-access-array-array-var.vert | 15 +++++++++++++++ .../compiler/outofbounds-access-array-var-array.vert | 15 +++++++++++++++ .../compiler/outofbounds-access-var-array-array.vert | 15 +++++++++++++++ 9 files changed, 129 insertions(+) create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/length-array-array-var.vert create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/length-array-var-array.vert create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/length-var-array-array.vert create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-array-array-var.vert create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-array-var-array.vert create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-var-array-array.vert create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-array-array-var.vert create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-array-var-array.vert create mode 100644 tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-var-array-array.vert diff --git a/tests/spec/arb_arrays_of_arrays/compiler/length-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/length-array-array-var.vert new file mode 100644 index 0000000..88ed1e8 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/length-array-array-var.vert @@ -0,0 +1,13 @@ +/* [config] + * expect_result: pass + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4[3][2] an_array; + +int foo[an_array.length() == 3 ? 1 : -1]; +int foo2[an_array[1].length() == 2 ? 1 : -1]; diff --git a/tests/spec/arb_arrays_of_arrays/compiler/length-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/length-array-var-array.vert new file mode 100644 index 0000000..154f59c --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/length-array-var-array.vert @@ -0,0 +1,13 @@ +/* [config] + * expect_result: pass + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4[2] an_array[3]; + +int foo[an_array.length() == 3 ? 1 : -1]; +int foo2[an_array[1].length() == 2 ? 1 : -1]; diff --git a/tests/spec/arb_arrays_of_arrays/compiler/length-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/length-var-array-array.vert new file mode 100644 index 0000000..129fa08 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/length-var-array-array.vert @@ -0,0 +1,13 @@ +/* [config] + * expect_result: pass + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4 an_array[3][2]; + +int foo[an_array.length() == 3 ? 1 : -1]; +int foo2[an_array[1].length() == 2 ? 1 : -1]; diff --git a/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-array-array-var.vert new file mode 100644 index 0000000..c205174 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-array-array-var.vert @@ -0,0 +1,15 @@ +/* [config] + * expect_result: pass + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4[2][4] an_array; + +void main() +{ + gl_Position = an_array[1][3]; +} diff --git a/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-array-var-array.vert new file mode 100644 index 0000000..cd6a32b --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-array-var-array.vert @@ -0,0 +1,15 @@ +/* [config] + * expect_result: pass + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4[4] an_array[2]; + +void main() +{ + gl_Position = an_array[1][3]; +} diff --git a/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-var-array-array.vert new file mode 100644 index 0000000..4772fd8 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/maxbounds-access-var-array-array.vert @@ -0,0 +1,15 @@ +/* [config] + * expect_result: pass + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4 an_array[2][4]; + +void main() +{ + gl_Position = an_array[1][3]; +} diff --git a/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-array-array-var.vert b/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-array-array-var.vert new file mode 100644 index 0000000..8192de7 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-array-array-var.vert @@ -0,0 +1,15 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4[2][4] an_array; + +void main() +{ + gl_Position = an_array[1][4]; +} diff --git a/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-array-var-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-array-var-array.vert new file mode 100644 index 0000000..eb873c1 --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-array-var-array.vert @@ -0,0 +1,15 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4[4] an_array[2]; + +void main() +{ + gl_Position = an_array[1][4]; +} diff --git a/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-var-array-array.vert b/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-var-array-array.vert new file mode 100644 index 0000000..96b4d4d --- /dev/null +++ b/tests/spec/arb_arrays_of_arrays/compiler/outofbounds-access-var-array-array.vert @@ -0,0 +1,15 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.20 + * require_extensions: GL_ARB_arrays_of_arrays + * [end config] + */ +#version 120 +#extension GL_ARB_arrays_of_arrays: enable + +uniform vec4 an_array[2][4]; + +void main() +{ + gl_Position = an_array[1][4]; +}