From patchwork Fri Apr 26 21:53:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 16447 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f197.google.com (mail-gg0-f197.google.com [209.85.161.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6610D2397A for ; Fri, 26 Apr 2013 21:55:30 +0000 (UTC) Received: by mail-gg0-f197.google.com with SMTP id k5sf6677803ggn.0 for ; Fri, 26 Apr 2013 14:54:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=sQV0177UFJSA9xPQLkAk4j4LUU6VwMbyEMVHx0ZQFf4=; b=nsQqjfzSSmfBFkOoVVMm9TBq51EnsEBAOwQEnfyuFKuEutrcSbDi0V2994tCjxbkko 17o3xb6tmgZ739/ujtxgPo/MXcuyoOb/vMmeiqRAEY1EO+6zoRHDLcYpY/HbriXdTrN5 fNwi8LYvhB9p1OipYXUCop315Di4KQ23H3P7r4zQSVOysJTYlD8EpRX01ioH+NG/XEd/ qo2bEYlwp7Tb9rW+H2wS+iyUJmNTCIlNnySHoZjDYFBPnnmYW6KF4AyiOJvwXERSyB3C aY8Na/v2Qa/SwNj41kYf95ox0/jHHO+4Naq7UjxOtuEO6BBTD6L8+/JLK5c6skwjxo2d gkfQ== X-Received: by 10.236.130.103 with SMTP id j67mr13802902yhi.18.1367013273984; Fri, 26 Apr 2013 14:54:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.44 with SMTP id cz12ls2107555qeb.67.gmail; Fri, 26 Apr 2013 14:54:33 -0700 (PDT) X-Received: by 10.220.124.74 with SMTP id t10mr29559728vcr.67.1367013273761; Fri, 26 Apr 2013 14:54:33 -0700 (PDT) Received: from mail-ve0-x22a.google.com (mail-ve0-x22a.google.com [2607:f8b0:400c:c01::22a]) by mx.google.com with ESMTPS id sx2si6104912vdc.149.2013.04.26.14.54.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 14:54:33 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22a; Received: by mail-ve0-f170.google.com with SMTP id 15so2102733vea.15 for ; Fri, 26 Apr 2013 14:54:33 -0700 (PDT) X-Received: by 10.220.242.73 with SMTP id lh9mr4019695vcb.49.1367013273574; Fri, 26 Apr 2013 14:54:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp86635veb; Fri, 26 Apr 2013 14:54:33 -0700 (PDT) X-Received: by 10.50.12.229 with SMTP id b5mr2954656igc.105.1367013272882; Fri, 26 Apr 2013 14:54:32 -0700 (PDT) Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [2607:f8b0:4001:c03::231]) by mx.google.com with ESMTPS id pp8si11498807icb.88.2013.04.26.14.54.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 14:54:32 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:4001:c03::231 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c03::231; Received: by mail-ie0-f177.google.com with SMTP id 9so5549757iec.36 for ; Fri, 26 Apr 2013 14:54:32 -0700 (PDT) X-Received: by 10.50.30.162 with SMTP id t2mr3026929igh.73.1367013272625; Fri, 26 Apr 2013 14:54:32 -0700 (PDT) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPSA id s16sm5043264ign.4.2013.04.26.14.54.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 14:54:31 -0700 (PDT) From: Tom Gall To: piglit@lists.freedesktop.org Cc: patches@linaro.org, Tom Gall Subject: [PATCH 04/10] glsl-es-1.00: New array construction tests with implicit conversion Date: Fri, 26 Apr 2013 16:53:38 -0500 Message-Id: <1367013224-21359-4-git-send-email-tom.gall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1367013224-21359-1-git-send-email-tom.gall@linaro.org> References: <1367013224-21359-1-git-send-email-tom.gall@linaro.org> X-Gm-Message-State: ALoCoQlSxiSuwPOzMDJB3u+FFmUby4IdvaXzV3zwcr1PDuuHn/5AaWhApTkopYzcpGB8rKgRBCMT X-Original-Sender: tom.gall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add to tests/spec/glsl-es-1.00/compiler/structure-and-array-operations a series of array constructor tests with implicit conversions over a variety of types. Signed-off-by: Tom Gall --- .../array-ctor-implicit-conversion-bool-float.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-bool-int.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-bvec2-ivec2.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-bvec2-vec2.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-bvec3-ivec3.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-bvec3-vec3.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-bvec4-ivec4.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-bvec4-vec4.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-float-bool.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-float-int.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-int-bool.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-int-float.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-ivec2-bvec2.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-ivec2-vec2.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-ivec3-bvec3.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-ivec3-vec3.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-ivec4-bvec4.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-ivec4-vec4.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-vec2-bvec2.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-vec2-ivec2.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-vec3-bvec3.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-vec3-ivec3.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-vec4-bvec4.vert | 19 +++++++++++++++++++ .../array-ctor-implicit-conversion-vec4-ivec4.vert | 19 +++++++++++++++++++ 24 files changed, 456 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-float.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-int.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec2-ivec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec2-vec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec3-ivec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec3-vec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec4-ivec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec4-vec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-float-bool.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-float-int.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-int-bool.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-int-float.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec2-bvec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec2-vec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec3-bvec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec3-vec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec4-bvec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec4-vec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec2-bvec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec2-ivec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec3-bvec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec3-ivec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec4-bvec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec4-ivec4.vert diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-float.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-float.vert new file mode 100644 index 0000000..0c238bd --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-float.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform bool a[2]; + +void main() +{ + float b[2] = float[](a[0], a[1]); + + gl_Position = vec4(b[0]); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-int.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-int.vert new file mode 100644 index 0000000..7003e3a --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bool-int.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform bool a[2]; + +void main() +{ + int b[2] = int[](a[0], a[1]); + + gl_Position = vec4(b[0]); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec2-ivec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec2-ivec2.vert new file mode 100644 index 0000000..62cc139 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec2-ivec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform bvec2 a[2]; + +void main() +{ + ivec2 b[2] = ivec2[](a[0], a[1]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec2-vec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec2-vec2.vert new file mode 100644 index 0000000..bb2574c --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec2-vec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform bvec2 a[2]; + +void main() +{ + vec2 b[2] = vec2[](a[0], a[1]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec3-ivec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec3-ivec3.vert new file mode 100644 index 0000000..d9a4697 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec3-ivec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsles_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform bvec3 a[2]; + +void main() +{ + ivec3 b[2] = ivec3[](a[0], a[1]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec3-vec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec3-vec3.vert new file mode 100644 index 0000000..58092ce --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec3-vec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform bvec3 a[2]; + +void main() +{ + vec3 b[2] = vec3[](a[0], a[1]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec4-ivec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec4-ivec4.vert new file mode 100644 index 0000000..578d2bd --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec4-ivec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform bvec4 a[2]; + +void main() +{ + ivec4 b[2] = ivec4[](a[0], a[1]); + + gl_Position = vec4(b[0]); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec4-vec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec4-vec4.vert new file mode 100644 index 0000000..cfd7843 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-bvec4-vec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform bvec4 a[2]; + +void main() +{ + vec4 b[2] = vec4[](a[0], a[1]); + + gl_Position = b[0]; +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-float-bool.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-float-bool.vert new file mode 100644 index 0000000..13c10ef --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-float-bool.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform float a[2]; + +void main() +{ + bool b[2] = bool[](a[0], a[0]); + + gl_Position = vec4(b[0], b[0], b[1], b[1]); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-float-int.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-float-int.vert new file mode 100644 index 0000000..183743f --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-float-int.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform float a[2]; + +void main() +{ + int b[2] = int[](a[0], a[0]); + + gl_Position = vec4(b[0], b[0], b[1], b[1]); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-int-bool.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-int-bool.vert new file mode 100644 index 0000000..cebbb8e --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-int-bool.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform int a[2]; + +void main() +{ + bool b[2] = bool[](a[0], a[1]); + + gl_Position = vec4(b[0]); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-int-float.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-int-float.vert new file mode 100644 index 0000000..3b7df8c --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-int-float.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform int a[2]; + +void main() +{ + float b[2] = float[](a[0], a[1]); + + gl_Position = vec4(b[0]); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec2-bvec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec2-bvec2.vert new file mode 100644 index 0000000..d18e9c8 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec2-bvec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform ivec2 a[2]; + +void main() +{ + bvec2 b[2] = bvec2[](a[0], a[1]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec2-vec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec2-vec2.vert new file mode 100644 index 0000000..36e5ac0 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec2-vec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform ivec2 a[2]; + +void main() +{ + vec2 b[2] = vec2[](a[0], a[1]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec3-bvec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec3-bvec3.vert new file mode 100644 index 0000000..036175a --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec3-bvec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform ivec3 a[2]; + +void main() +{ + bvec3 b[2] = bvec3[](a[0], a[1]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec3-vec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec3-vec3.vert new file mode 100644 index 0000000..88ac6e3 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec3-vec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform ivec3 a[2]; + +void main() +{ + vec3 b[2] = vec3[](a[0], a[1]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec4-bvec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec4-bvec4.vert new file mode 100644 index 0000000..c6bf5b5 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec4-bvec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform ivec4 a[2]; + +void main() +{ + bvec4 b[2] = bvec4[](a[0], a[1]); + + gl_Position = vec4(b[0]); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec4-vec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec4-vec4.vert new file mode 100644 index 0000000..81d794d --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-ivec4-vec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform ivec4 a[2]; + +void main() +{ + vec4 b[2] = vec4[](a[0], a[1]); + + gl_Position = b[0]; +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec2-bvec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec2-bvec2.vert new file mode 100644 index 0000000..7ccfc1b --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec2-bvec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform vec2 a[2]; + +void main() +{ + bvec2 b[2] = bvec2[](a[0], a[0]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec2-ivec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec2-ivec2.vert new file mode 100644 index 0000000..3f850aa --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec2-ivec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform vec2 a[2]; + +void main() +{ + ivec2 b[2] = ivec2[](a[0], a[0]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec3-bvec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec3-bvec3.vert new file mode 100644 index 0000000..959273d --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec3-bvec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform vec3 a[2]; + +void main() +{ + bvec3 b[2] = bvec3[](a[0], a[0]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec3-ivec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec3-ivec3.vert new file mode 100644 index 0000000..b6f1288 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec3-ivec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform vec3 a[2]; + +void main() +{ + ivec3 b[2] = ivec3[](a[0], a[0]); + + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec4-bvec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec4-bvec4.vert new file mode 100644 index 0000000..68ba154 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec4-bvec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform vec4 a[2]; + +void main() +{ + bvec4 b[2] = bvec4[](a[0], a[0]); + + gl_Position = vec4(b[0].x, b[0].y, b[0].z, b[0].w); +} diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec4-ivec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec4-ivec4.vert new file mode 100644 index 0000000..3d5300c --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-ctor-implicit-conversion-vec4-ivec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * Page 18 GLSL ES 1.00.17 spec: + * + * "There are no implicit conversion between types." + */ + + +uniform vec4 a[2]; + +void main() +{ + ivec4 b[2] = ivec4[](a[0], a[0]); + + gl_Position = vec4(b[0].x, b[0].y, b[0].z, b[0].w); +}