From patchwork Fri Apr 26 21:53:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 16444 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C83882397A for ; Fri, 26 Apr 2013 21:55:23 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id p7sf6655903qcq.6 for ; Fri, 26 Apr 2013 14:54:27 -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 :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=Xt61Dfh6xJDUIPW5mHpI3TICDFV+Xi5HhNobAEvcj3c=; b=CpYphLOEkL86BxtvEt58ar1Sy3neN00DfXJAeJDvsaYRyelFuDzuJgrWdUay3svaRe S9xU2Q0qCB10WX5rlE+yTH2V38dLvVlZcic8spX0Nhs/lCFVzsgnOYJo3WmPpuYBIWc8 cmYKxF4ezug6zW5bPUrbIA4hp+336dxf2Gyqx+MIonm9U7ehlY+vwt97z4eFzxsU5WQ3 muoWUJ52jgf8xVlhe0pZW5oZMloA8ei5EIXhreOgTCNk3ZzEUdOepKjwym++gX75hDT6 GPiwAJUxypc2J0AVhFRj81MfOENu7ZJ/5QOsmB5DBcdbxK0vSSESKdpo6KiU2H90HSmO k8Wg== X-Received: by 10.224.58.77 with SMTP id f13mr31666092qah.7.1367013266672; Fri, 26 Apr 2013 14:54:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.3.41 with SMTP id 9ls2267559qez.41.gmail; Fri, 26 Apr 2013 14:54:26 -0700 (PDT) X-Received: by 10.58.151.2 with SMTP id um2mr9835032veb.28.1367013266414; Fri, 26 Apr 2013 14:54:26 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id d10si6145008vdv.54.2013.04.26.14.54.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 14:54:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hv10so4218323vcb.15 for ; Fri, 26 Apr 2013 14:54:26 -0700 (PDT) X-Received: by 10.52.163.231 with SMTP id yl7mr25303730vdb.57.1367013266221; Fri, 26 Apr 2013 14:54:26 -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 nf2csp86628veb; Fri, 26 Apr 2013 14:54:25 -0700 (PDT) X-Received: by 10.50.153.232 with SMTP id vj8mr3047787igb.2.1367013265168; Fri, 26 Apr 2013 14:54:25 -0700 (PDT) Received: from mail-ia0-x235.google.com (mail-ia0-x235.google.com [2607:f8b0:4001:c02::235]) by mx.google.com with ESMTPS id v1si4668335igr.47.2013.04.26.14.54.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 14:54:25 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:4001:c02::235 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c02::235; Received: by mail-ia0-f181.google.com with SMTP id k38so4121476iah.12 for ; Fri, 26 Apr 2013 14:54:24 -0700 (PDT) X-Received: by 10.42.58.201 with SMTP id j9mr25189175ich.20.1367013264412; Fri, 26 Apr 2013 14:54:24 -0700 (PDT) Received: from localhost.localdomain ([70.35.96.184]) by mx.google.com with ESMTPSA id s16sm5043264ign.4.2013.04.26.14.54.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 14:54:23 -0700 (PDT) From: Tom Gall To: piglit@lists.freedesktop.org Cc: patches@linaro.org, Tom Gall Subject: [PATCH 01/10] glsl-es-1.00: array assignment tests with implicit conversions Date: Fri, 26 Apr 2013 16:53:35 -0500 Message-Id: <1367013224-21359-1-git-send-email-tom.gall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQma5nm7NFPGBIo9Td2ul72F534Fy4YlEhfpXR9DTgxQHrjnlDatE6mMvPGrofmGdLWl7ZVa X-Original-Sender: tom.gall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 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 tests that validates for arrays: Page 18 of the GLSL ES 1.00.17 spec: "There are no implicit conversions between types." Signed-off-by: Tom Gall --- ...rray-assign-implicit-conversion-bool-float.vert | 19 ++++++++++++++++++ .../array-assign-implicit-conversion-bool-int.vert | 19 ++++++++++++++++++ ...ray-assign-implicit-conversion-bvec2-ivec2.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-bvec2-vec2.vert | 19 ++++++++++++++++++ ...ray-assign-implicit-conversion-bvec3-ivec3.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-bvec3-vec3.vert | 19 ++++++++++++++++++ ...ray-assign-implicit-conversion-bvec4-ivec4.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-bvec4-vec4.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-float-bool.vert | 19 ++++++++++++++++++ ...array-assign-implicit-conversion-float-int.vert | 19 ++++++++++++++++++ .../array-assign-implicit-conversion-int-bool.vert | 19 ++++++++++++++++++ ...array-assign-implicit-conversion-int-float.vert | 19 ++++++++++++++++++ ...ray-assign-implicit-conversion-ivec2-bvec2.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-ivec2-vec2.vert | 19 ++++++++++++++++++ ...ray-assign-implicit-conversion-ivec3-bvec3.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-ivec3-vec3.vert | 19 ++++++++++++++++++ ...ray-assign-implicit-conversion-ivec4-bvec4.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-ivec4-vec4.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-vec2-bvec2.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-vec2-ivec2.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-vec3-bvec3.vert | 21 ++++++++++++++++++++ ...rray-assign-implicit-conversion-vec3-ivec3.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-vec4-bvec4.vert | 19 ++++++++++++++++++ ...rray-assign-implicit-conversion-vec4-ivec4.vert | 19 ++++++++++++++++++ 24 files changed, 458 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bool-float.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bool-int.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec2-ivec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec2-vec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec3-ivec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec3-vec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec4-ivec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec4-vec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-float-bool.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-float-int.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-int-bool.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-int-float.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec2-bvec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec2-vec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec3-bvec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec3-vec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec4-bvec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec4-vec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec2-bvec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec2-ivec2.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec3-bvec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec3-ivec3.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec4-bvec4.vert create mode 100644 tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec4-ivec4.vert diff --git a/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bool-float.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bool-float.vert new file mode 100644 index 0000000..f0c4856 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bool-float.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform bool a[2]; + +void main() +{ + float b[2]; + b = a; + 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-assign-implicit-conversion-bool-int.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bool-int.vert new file mode 100644 index 0000000..57e3206 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bool-int.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform bool a[2]; + +void main() +{ + int b[2]; + b = a; + 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-assign-implicit-conversion-bvec2-ivec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec2-ivec2.vert new file mode 100644 index 0000000..9a14b01 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec2-ivec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform bvec2 a[2]; + +void main() +{ + ivec2 b[2]; + b = a; + 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-assign-implicit-conversion-bvec2-vec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec2-vec2.vert new file mode 100644 index 0000000..8cf241f --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec2-vec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform bvec2 a[2]; + +void main() +{ + vec2 b[2]; + b = a; + 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-assign-implicit-conversion-bvec3-ivec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec3-ivec3.vert new file mode 100644 index 0000000..dcc7baa --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec3-ivec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform bvec3 a[2]; + +void main() +{ + ivec3 b[2]; + b = a; + 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-assign-implicit-conversion-bvec3-vec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec3-vec3.vert new file mode 100644 index 0000000..bd955cc --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec3-vec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform bvec3 a[2]; + +void main() +{ + vec3 b[2]; + b = a; + 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-assign-implicit-conversion-bvec4-ivec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec4-ivec4.vert new file mode 100644 index 0000000..53d634e --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec4-ivec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform bvec4 a[2]; + +void main() +{ + ivec4 b[2]; + b = a; + 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-assign-implicit-conversion-bvec4-vec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec4-vec4.vert new file mode 100644 index 0000000..b0200f9 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-bvec4-vec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform bvec4 a[2]; + +void main() +{ + vec4 b[2]; + b = a; + 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-assign-implicit-conversion-float-bool.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-float-bool.vert new file mode 100644 index 0000000..a11d95d --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-float-bool.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform float a[2]; + +void main() +{ + bool b[2]; + b = a; + 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-assign-implicit-conversion-float-int.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-float-int.vert new file mode 100644 index 0000000..81e6beb --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-float-int.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform float a[2]; + +void main() +{ + int b[2]; + b = a; + 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-assign-implicit-conversion-int-bool.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-int-bool.vert new file mode 100644 index 0000000..0743b29 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-int-bool.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform int a[2]; + +void main() +{ + bool b[2]; + b = a; + 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-assign-implicit-conversion-int-float.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-int-float.vert new file mode 100644 index 0000000..a94d88e --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-int-float.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform int a[2]; + +void main() +{ + float b[2]; + b = a; + 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-assign-implicit-conversion-ivec2-bvec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec2-bvec2.vert new file mode 100644 index 0000000..b2d3be9 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec2-bvec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform ivec2 a[2]; + +void main() +{ + bvec2 b[2]; + b = a; + 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-assign-implicit-conversion-ivec2-vec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec2-vec2.vert new file mode 100644 index 0000000..3dd8828 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec2-vec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform ivec2 a[2]; + +void main() +{ + vec2 b[2]; + b = a; + 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-assign-implicit-conversion-ivec3-bvec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec3-bvec3.vert new file mode 100644 index 0000000..374eaff --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec3-bvec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform ivec3 a[2]; + +void main() +{ + bvec3 b[2]; + b = a; + 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-assign-implicit-conversion-ivec3-vec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec3-vec3.vert new file mode 100644 index 0000000..e05d0ae --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec3-vec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform ivec3 a[2]; + +void main() +{ + vec3 b[2]; + b = a; + 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-assign-implicit-conversion-ivec4-bvec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec4-bvec4.vert new file mode 100644 index 0000000..3a23092 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec4-bvec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform ivec4 a[2]; + +void main() +{ + bvec4 b[2]; + b = a; + 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-assign-implicit-conversion-ivec4-vec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec4-vec4.vert new file mode 100644 index 0000000..d881bd7 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-ivec4-vec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform ivec4 a[2]; + +void main() +{ + vec4 b[2]; + b = a; + 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-assign-implicit-conversion-vec2-bvec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec2-bvec2.vert new file mode 100644 index 0000000..4667ffd --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec2-bvec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform vec2 a[2]; + +void main() +{ + bvec2 b[2]; + b = a; + 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-assign-implicit-conversion-vec2-ivec2.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec2-ivec2.vert new file mode 100644 index 0000000..fc8bda9 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec2-ivec2.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform vec2 a[2]; + +void main() +{ + ivec2 b[2]; + b = a; + 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-assign-implicit-conversion-vec3-bvec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec3-bvec3.vert new file mode 100644 index 0000000..f474351 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec3-bvec3.vert @@ -0,0 +1,21 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.20 + * glsles_version: 1.00 + * [end config] + * + * From page 20 (page 26 of the PDF) of the GLSL 1.20 spec: + * + * "There are no implicit array or structure conversions. For example, an + * array of int cannot be implicitly converted to an array of float." + */ + + +uniform vec3 a[2]; + +void main() +{ + bvec3 b[2]; + b = a; + 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-assign-implicit-conversion-vec3-ivec3.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec3-ivec3.vert new file mode 100644 index 0000000..7033e09 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec3-ivec3.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform vec3 a[2]; + +void main() +{ + ivec3 b[2]; + b = a; + 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-assign-implicit-conversion-vec4-bvec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec4-bvec4.vert new file mode 100644 index 0000000..4a4d3f4 --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec4-bvec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform vec4 a[2]; + +void main() +{ + bvec4 b[2]; + b = a; + 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-assign-implicit-conversion-vec4-ivec4.vert b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec4-ivec4.vert new file mode 100644 index 0000000..3d7943c --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-assign-implicit-conversion-vec4-ivec4.vert @@ -0,0 +1,19 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.00 + * [end config] + * + * From page 18 of the GLSL ES 1.00.17 spec: + * + * "There are no implicit conversions between types." + */ + + +uniform vec4 a[2]; + +void main() +{ + ivec4 b[2]; + b = a; + gl_Position = vec4(b[0].x, b[0].y, b[1].x, b[1].y); +}