Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mesa
piglit
Commits
4aa277c9
Commit
4aa277c9
authored
Jan 21, 2011
by
Ian Romanick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add serveral tests for a==b==c style invalid equality operator uses
invalid-equality-04.vert reproduces Mesa bugzilla #33303.
parent
f8acec9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
0 deletions
+84
-0
tests/spec/glsl-1.10/compiler/expressions/invalid-equality-01.vert
...c/glsl-1.10/compiler/expressions/invalid-equality-01.vert
+21
-0
tests/spec/glsl-1.10/compiler/expressions/invalid-equality-02.vert
...c/glsl-1.10/compiler/expressions/invalid-equality-02.vert
+18
-0
tests/spec/glsl-1.10/compiler/expressions/invalid-equality-03.vert
...c/glsl-1.10/compiler/expressions/invalid-equality-03.vert
+24
-0
tests/spec/glsl-1.10/compiler/expressions/invalid-equality-04.vert
...c/glsl-1.10/compiler/expressions/invalid-equality-04.vert
+21
-0
No files found.
tests/spec/glsl-1.10/compiler/expressions/invalid-equality-01.vert
0 → 100644
View file @
4aa277c9
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
#ifdef GL_ES
precision
mediump
float
;
#endif
attribute
vec4
vertex
;
uniform
int
a
;
uniform
int
b
;
uniform
int
c
;
void
main
()
{
if
(
a
==
b
==
c
)
{
gl_Position
=
vertex
;
}
else
{
gl_Position
=
vec4
(
1
.
0
)
-
vertex
;
}
}
tests/spec/glsl-1.10/compiler/expressions/invalid-equality-02.vert
0 → 100644
View file @
4aa277c9
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
#ifdef GL_ES
precision
mediump
float
;
#endif
attribute
vec4
vertex
;
void
main
()
{
if
(
0
==
1
==
2
)
{
gl_Position
=
vertex
;
}
else
{
gl_Position
=
vec4
(
1
.
0
)
-
vertex
;
}
}
tests/spec/glsl-1.10/compiler/expressions/invalid-equality-03.vert
0 → 100644
View file @
4aa277c9
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
#ifdef GL_ES
precision
mediump
float
;
#endif
attribute
vec4
vertex
;
uniform
int
a
;
uniform
int
b
;
uniform
int
c
;
vec4
A
(
bool
flag
)
{
if
(
flag
)
return
vertex
;
else
return
vec4
(
1
.
0
)
-
vertex
;
}
void
main
()
{
gl_Position
=
A
(
a
==
b
==
c
);
}
tests/spec/glsl-1.10/compiler/expressions/invalid-equality-04.vert
0 → 100644
View file @
4aa277c9
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
#ifdef GL_ES
precision
mediump
float
;
#endif
attribute
vec4
vertex
;
vec4
A
(
bool
flag
)
{
if
(
flag
)
return
vertex
;
else
return
vec4
(
1
.
0
)
-
vertex
;
}
void
main
()
{
gl_Position
=
A
(
0
==
1
==
2
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment