Otherwise, piglit would fail to parse the version string and report a
failure if glGetString(GL_VERSION) were called in an ES 1.x context.
I'm not sure why we need this check at all and can't just eat characters
while(!isdigit(*c) *c != NULL).
---
The piglit_is_gles() function immediately above
This series adds nine tests for EGL_KHR_create_context. It's based on
the GLX_ARB_create_context tests but with some differences.
These GLX_ARB_create_context tests aren't applicable:
- Verify rejection of forward-compatible flag w/pre-3.0
- Verify that invalid render types are rejected
-
Otherwise, piglit would fail to parse the version string and report a
failure if glGetString(GL_VERSION) were called in an ES 1.x context.
---
tests/util/piglit-util-gl-common.c | 10 --
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/tests/util/piglit-util-gl-common.c
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../egl_khr_create_context/valid-attribute-empty.c | 81
3 files changed, 83 insertions(+), 0 deletions(-)
create mode 100644
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../egl_khr_create_context/valid-attribute-null.c | 78
3 files changed, 80 insertions(+), 0 deletions(-)
create mode 100644
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../egl_khr_create_context/invalid-gl-version.c| 110
3 files changed, 112 insertions(+), 0 deletions(-)
create mode 100644
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../egl_khr_create_context/invalid-attribute.c | 118
3 files changed, 120 insertions(+), 0 deletions(-)
create mode 100644
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../egl/spec/egl_khr_create_context/invalid-flag.c | 83
3 files changed, 85 insertions(+), 0 deletions(-)
create mode 100644
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../valid-flag-forward-compatible.c| 59
3 files changed, 61 insertions(+), 0 deletions(-)
create mode 100644
On Tue, Jul 31, 2012 at 6:38 PM, Matt Turner matts...@gmail.com wrote:
Oh, the series is also available here:
http://cgit.freedesktop.org/~mattst88/piglit/log/?h=egl_khr_create_context
Another thing: I've used EGL_KHR_surfaceless_* so that the tests don't
have to create windows and surfaces
v2: - Require EGL_KHR_surfaceless_context instead of other surfaceless
extensions.
- Fix for-loop typo.
- Make EGL_KHR_create_context_setup take a renderable_type_mask argument.
- Make EGL_KHR_create_context_setup return whether it succeeded.
- PIGLIT_SKIP if eglChooseConfig
v2: - Try for EGL_OPENGL_ES_BIT renderable type, and if it fails try
EGL_OPENGL_ES2_BIT renderable type.
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../default-minor-version-gles.c | 92
v2: - Ask for EGL_OPENGL_ES_BIT renderable type since the defaults for
major/minor are 1.0, so we can't get an ES2 context with an empty
attributes list. If ES 1 isn't available, skip.
---
tests/all_egl.tests|1 +
v2: - Do pass = pass ...; instead of pass = ... pass;.
- Pass EGL_OPENGL_*BIT to _setup() and check versions for the
specific rendering API.
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
v2: - Update typo'd (in the spec) EGL_CONTEXT_OPENGL_* names.
- Ask for EGL_OPENGL_BIT and skip if not available.
- Call eglBindAPI(EGL_OPENGL_API) after _setup.
- Fix gl_version condition (from ' 32' to '= 32').
---
tests/all_egl.tests|1 +
v2: - Correct value of first_valid_flag.
- Ask for EGL_OPENGL_API and skip if not available.
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../spec/egl_khr_create_context/invalid-flag-gl.c | 93
v2: - Ask for EGL_OPENGL_BIT and skip if not available.
- Only check EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR if GL
3.2+
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../egl_khr_create_context/invalid-flag-gles.c | 100
3 files changed, 102 insertions(+), 0 deletions(-)
create mode 100644
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../default-minor-version-gl.c | 95
3 files changed, 97 insertions(+), 0 deletions(-)
create mode 100644
On Tue, Jul 31, 2012 at 6:38 PM, Matt Turner matts...@gmail.com wrote:
This series adds nine tests for EGL_KHR_create_context. It's based on
the GLX_ARB_create_context tests but with some differences.
These GLX_ARB_create_context tests aren't applicable:
- Verify rejection of forward
v2: Fixed EGL_OPENGL_BIT - EGL_OPENGL_ES_BIT typo which would cause the
test to pass without actually testing an ES context.
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../invalid-attribute-gles.c
v2: - Ask for EGL_OPENGL_BIT and skip if not available.
- Only check EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR if GL
3.2+
v3: - Only check EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR if GL
3.0+
- Skip if GL 3.0.
---
tests/all_egl.tests|
On Thu, Aug 16, 2012 at 10:52 AM, Matt Turner matts...@gmail.com wrote:
On Tue, Jul 31, 2012 at 6:38 PM, Matt Turner matts...@gmail.com wrote:
This series adds nine tests for EGL_KHR_create_context. It's based on
the GLX_ARB_create_context tests but with some differences
This reworks the test to test whether
1) forward-compatible contexts can be created, or
2) the correct error is generated when they can't.
Previously the test did only the first and would fail if
forward-compatible contexts couldn't be created.
---
On Thu, Sep 20, 2012 at 8:59 AM, Robert Bragg rob...@sixbynine.org wrote:
This adds an egl_probe_front_pixel_rgb function that is analogous to
piglit_probe_pixel_rgba except it probes the front buffer instead of
probing the back buffer.
---
tests/egl/egl-util.c | 31
On Tue, Oct 2, 2012 at 7:19 AM, Robert Bragg rob...@sixbynine.org wrote:
On Thu, Sep 27, 2012 at 6:48 PM, Matt Turner matts...@gmail.com wrote:
On Thu, Sep 20, 2012 at 8:59 AM, Robert Bragg rob...@sixbynine.org wrote:
This adds an egl_probe_front_pixel_rgb function that is analogous
---
.../invalid-attribute-gles.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/egl/spec/egl_khr_create_context/invalid-attribute-gles.c
b/tests/egl/spec/egl_khr_create_context/invalid-attribute-gles.c
index 8c7e919..d3e030c 100644
---
The EGL_KHR_create_context spec says:
If the requested OpenGL version is less than 3.2,
EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR is ignored and the functionality
of the context is determined solely by the requested version.
---
.../egl_khr_create_context/invalid-attribute-gl.c
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../spec/egl_khr_create_context/invalid-profile.c | 105
3 files changed, 107 insertions(+), 0 deletions(-)
create mode 100644
---
We fail this test for an undiagnosed reason currently. Requesting major=3
minor=4
is rejected immediately by the EGL code, but requesting 3.2 and 3.3 contexts
(which
the driver doesn't currently support) does not return the correct error.
tests/all_egl.tests
On Wed, Oct 10, 2012 at 11:04 AM, Chad Versace
chad.vers...@linux.intel.com wrote:
On 10/08/2012 04:57 PM, Matt Turner wrote:
---
tests/all_egl.tests|1 +
.../spec/egl_khr_create_context/CMakeLists.gl.txt |1 +
.../spec/egl_khr_create_context/pre-GL3
On Thu, Oct 11, 2012 at 7:38 AM, Chad Versace
chad.vers...@linux.intel.com wrote:
I withdraw my comment objections to patches 2-4. That makes patch 2
reviewed-by.
But there are still issues with patches 3-4. Patch 3 has the weird line break
in
printf. And patch 4 has the bug and misleading
---
tests/all_egl.tests | 39 ++-
1 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/tests/all_egl.tests b/tests/all_egl.tests
index 526687f..ab04191 100644
--- a/tests/all_egl.tests
+++ b/tests/all_egl.tests
@@ -6,6 +6,11 @@ from
Context flags are ignored by GL versions pre-3.2, not pre-3.0.
---
tests/all.tests|2 +-
.../spec/glx_arb_create_context/CMakeLists.gl.txt |2 +-
.../spec/glx_arb_create_context/pre-GL3-profile.c | 115
Reported-by: Chad Versace chad.vers...@linux.intel.com
---
.../spec/glx_arb_create_context/pre-GL32-profile.c |3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/tests/spec/glx_arb_create_context/pre-GL32-profile.c
b/tests/spec/glx_arb_create_context/pre-GL32-profile.c
---
tests/spec/glx_arb_create_context/core-profile.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/tests/spec/glx_arb_create_context/core-profile.c
b/tests/spec/glx_arb_create_context/core-profile.c
index 833c5ee..9892a36 100644
---
---
tests/all.tests | 36 ++--
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/tests/all.tests b/tests/all.tests
index ede3463..71fa14e 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -669,33 +669,33 @@ import_context['query context info']
Context flags are ignored by GL versions pre-3.2, not pre-3.0.
---
tests/all.tests|2 +-
.../spec/glx_arb_create_context/CMakeLists.gl.txt |2 +-
.../spec/glx_arb_create_context/pre-GL3-profile.c | 115
Reported-by: Chad Versace chad.vers...@linux.intel.com
---
.../spec/glx_arb_create_context/pre-GL32-profile.c |3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/tests/spec/glx_arb_create_context/pre-GL32-profile.c
b/tests/spec/glx_arb_create_context/pre-GL32-profile.c
---
tests/spec/glx_arb_create_context/core-profile.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/tests/spec/glx_arb_create_context/core-profile.c
b/tests/spec/glx_arb_create_context/core-profile.c
index 833c5ee..9892a36 100644
---
---
tests/all.tests | 36 ++--
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/tests/all.tests b/tests/all.tests
index a8bd4f4..37818db 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -668,33 +668,33 @@ import_context['query context info']
On Mon, Oct 15, 2012 at 4:09 PM, Chad Versace
chad.vers...@linux.intel.com wrote:
For the series,
Reviewed-by: Chad Versace chad.vers...@linux.intel.com
Thanks.
I see that I sent this twice. Sorry about that. :)
___
Piglit mailing list
On Mon, Nov 5, 2012 at 2:53 PM, Chad Versace
chad.vers...@linux.intel.com wrote:
In test egl-create-context-invalid-gl-version, try to create OpenGL ES2
contexts with additional invalid versions: 3.2, 3.9, 4.7.
Fails with mesa-84b437 on Intel Sandybridge.
CC: Matt Turner matts...@gmail.com
---
tests/spec/gles-2.0/CMakeLists.gles2.txt |2 +
tests/spec/gles-2.0/invalid-es3-queries.c | 103 +
2 files changed, 105 insertions(+), 0 deletions(-)
create mode 100644 tests/spec/gles-2.0/invalid-es3-queries.c
diff --git
---
v2: - don't use GLint64/glGetInteger64v which don't exist in ES 2
- glGetIntegerv should fail with INVALID_ENUM (not INVALID_OPERATION)
- prefix test name with gles2-
tests/spec/gles-2.0/CMakeLists.gles2.txt |2 +
tests/spec/gles-2.0/invalid-es3-queries.c | 103
Reviewed-by: Eric Anholt e...@anholt.net (v2)
---
tests/spec/gles-2.0/CMakeLists.gles2.txt |2 +
tests/spec/gles-2.0/invalid-es3-queries.c | 138 +
2 files changed, 140 insertions(+), 0 deletions(-)
create mode 100644 tests/spec/gles-2.0/invalid-es3-queries.c
On Thu, Dec 20, 2012 at 10:54 AM, Tom Gall tom.g...@linaro.org wrote:
A few variations are commented out due to results that are
incorrect and need to be followed up with Mesa, such as modifying
the buffer even tho the format is invalid. There are cases where
the returned data is incorrectly
---
tests/all.tests|1 +
.../spec/arb_transform_feedback2/CMakeLists.gl.txt |1 +
.../arb_transform_feedback2/istransformfeedback.c | 91
3 files changed, 93 insertions(+), 0 deletions(-)
create mode 100644
---
tests/all.tests|4
tests/spec/arb_vertex_array_object/isvertexarray.c | 18 --
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/tests/all.tests b/tests/all.tests
index 589c4cc..fd061f9 100644
--- a/tests/all.tests
On Thu, Dec 20, 2012 at 6:23 PM, Tom Gall tom.g...@linaro.org wrote:
Small update based on feedback from Ian, Matt and Eric. Format
fixes and failing variations are no longer commented out.
Ehh, still lots of problems from a cursory glance.
Ian found problems here:
On Thu, Dec 20, 2012 at 5:06 PM, Tom Gall tom.g...@linaro.org wrote:
Hi Eric,
On Thu, Dec 20, 2012 at 6:30 PM, Eric Anholt e...@anholt.net wrote:
Matt Turner matts...@gmail.com writes:
On Thu, Dec 20, 2012 at 10:54 AM, Tom Gall tom.g...@linaro.org wrote:
A few variations are commented out
On Fri, Dec 21, 2012 at 5:18 PM, Carl Worth cwo...@cworth.org wrote:
Without this, the tests silently do nothing on my Thinkpad X220.
---
With this they all fail silently on Ivy Bridge though, don't they?
___
Piglit mailing list
. I'd give that a
Reviewed-by: Matt Turner matts...@gmail.com
___
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit
(
piglitutil_${piglit_target_api}
)
-piglit_add_executable(gles2-invalid-es3-queries invalid-es3-queries.c)
+piglit_add_executable(invalid-es3-queries_gles2 invalid-es3-queries.c)
# vim: ft=cmake:
--
1.7.10.4
Reviewed-by: Matt Turner matts...@gmail.com
) failed = true;
+
+ gl_FrontColor = failed ? vec4(1.0, 0.0, 0.0, 1.0) : vec4(0.0, 1.0, 0.0,
1.0);
+}
+
+[fragment shader]
+void main()
+{
+ gl_FragColor = gl_Color;
+}
+
+[test]
+draw rect -1 -1 2 2
+probe all rgba 0.0 1.0 0.0 1.0
--
1.8.1
Reviewed-by: Matt Turner matts
,
GL_RENDERBUFFER_INTERNAL_FORMAT,
internalformat);
--
1.7.10.4
Reviewed-by: Matt Turner matts...@gmail.com
___
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit
The spec's not vague, it's just stupid. glIsBuffer should return false
between the time a buffer name is generated and first bound.
---
tests/general/isbufferobj.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tests/general/isbufferobj.c b/tests/general/isbufferobj.c
On Fri, Jan 25, 2013 at 9:35 AM, Eric Anholt e...@anholt.net wrote:
Matt Turner matts...@gmail.com writes:
The spec's not vague, it's just stupid. glIsBuffer should return false
between the time a buffer name is generated and first bound.
---
tests/general/isbufferobj.c | 6 ++
1 file
This uses the existing pack/unpack testing infrasturcture for GLSL ES
3.0 and adds support for testing pack/unpack 4x8 operations.
Generate the following test files:
{const,vs,fs}-{pack,unpack}{Snorm,Unorm}{2x16,4x8}.shader_test
{const,vs,fs}-{pack,unpack}Half2x16.shader_test
---
,
deref);
fs = piglit_compile_shader_text(GL_FRAGMENT_SHADER, fs_source);
--
1.7.11.7
Both are Reviewed-by: Matt Turner matts...@gmail.com
___
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit
On Mon, Jan 28, 2013 at 2:09 PM, Ian Romanick i...@freedesktop.org wrote:
These changes seem innocuous enough.
Reviewed-by: Ian Romanick ian.d.roman...@intel.com
They are... but 2/3 and 3/3 are adding unreachable return statements
after switches with a default case that asserts. Kind of bogus.
On Mon, Jan 28, 2013 at 5:11 PM, Tom Gall tom.g...@linaro.org wrote:
Sure, but tell that to the compiler.
It is bad form to not have a return at the end of a function which is
supposed to return something. The other way perhaps is just knock out
the default case and return that. Either way.
to create a 2.x context, then the test failed. This patch changes it to
skip.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59510
Reported-by: Lu Hua huax...@intel.com
CC: Matt Turner matts...@gmail.com
Signed-off-by: Chad Versace chad.vers...@linux.intel.com
---
tests/egl/spec
*is* required to succeed. This patch adds comments explaining why,
CC: Matt Turner matts...@gmail.com
Signed-off-by: Chad Versace chad.vers...@linux.intel.com
---
tests/egl/spec/egl_khr_create_context/default-major-version-gles.c | 3 +++
tests/egl/spec/egl_khr_create_context/default-minor-version
On Tue, Jan 29, 2013 at 6:41 PM, Eric Anholt e...@anholt.net wrote:
Matt Turner matts...@gmail.com writes:
Thy all seem to already print what error was expected, though not what
was generated.
glDrawPixels(1, 1, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT_24_8_EXT, p);
- if (glGetError
... by using piglit_check_gl_error.
---
v2: Fix copy'n'paste error. Leave existing error messages in place.
tests/glean/tdepthstencil.cpp |9 +
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/glean/tdepthstencil.cpp b/tests/glean/tdepthstencil.cpp
index
On Wed, Jan 30, 2013 at 11:04 AM, Matt Turner matts...@gmail.com wrote:
Subject: glean/tdepthstencil: Print what error was expected
s/expected/generated/. gah.
___
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman
Caused the shader_runner tests generated from that template to be
indented.
---
generated_tests/gen_builtin_packing_tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generated_tests/gen_builtin_packing_tests.py
b/generated_tests/gen_builtin_packing_tests.py
index
On Fri, Feb 1, 2013 at 3:06 PM, Tom Gall tom.g...@linaro.org wrote:
This are Adrian M Negreanu's changes for piglit to support Android.
These are included in this patch series for the purposes of completeness.
Signed-off-by: Tom Gall tom.g...@linaro.org
In that case he should be set as the
---
See associated Mesa patch:
mesa: Allow glGet* queries of MAX_VARYING_COMPONENTS in ES 3
tests/spec/gles-2.0/invalid-es3-queries.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tests/spec/gles-2.0/invalid-es3-queries.c
On Fri, Feb 8, 2013 at 5:31 PM, Eric Anholt e...@anholt.net wrote:
diff --git a/tests/spec/gles-2.0/glsl-fs-pointcoord.c
b/tests/spec/gles-2.0/glsl-fs-pointcoord.c
new file mode 100644
index 000..a2404bc
--- /dev/null
+++ b/tests/spec/gles-2.0/glsl-fs-pointcoord.c
@@ -0,0 +1,141 @@
On Mon, Feb 11, 2013 at 11:32 PM, Alexander Monakov amona...@gmail.com wrote:
Hello,
I think there is a problem in piglit implementation that breaks some
tests on nvidia proprietary drivers, for instance textureSize 140 fs
sampler2D -auto -fbo produces:
piglit: info: Failed to create GL 3.1
On Mon, Mar 4, 2013 at 2:43 PM, Anuj Phogat anuj.pho...@gmail.com wrote:
Signed-off-by: Anuj Phogat anuj.pho...@gmail.com
---
tests/spec/gles-3.0/CMakeLists.gl.txt | 5 +
tests/spec/gles-3.0/oes_compressed_etc2_texture-miptree.c | 4
2 files changed, 9
For each sampler data type, generate a test for
(vertex, fragment) shader;
(glsl-4.00, glsl-1.30 + ARB_texture_query_lod).
The vertex shader tests confirm that textureQueryLod is not available in
the the vertex shader.
---
generated_tests/CMakeLists.txt |4 +
---
.../fs-textureQueryLod-nearest.shader_test | 192
1 files changed, 192 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_texture_query_lod/execution/fs-textureQueryLod-nearest.shader_test
diff --git
---
.../fs-textureQueryLod-no-mipmap.shader_test | 121
1 files changed, 121 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_texture_query_lod/execution/fs-textureQueryLod-no-mipmap.shader_test
diff --git
---
tests/shaders/shader_runner.c |5 +
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 7f3ddbb..002cf72 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1577,6 +1577,11 @@
---
.../fs-textureQueryLod-nearest-biased.shader_test | 182
1 files changed, 182 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_texture_query_lod/execution/fs-textureQueryLod-nearest-biased.shader_test
diff --git
---
.../fs-textureQueryLod-linear.shader_test | 132
1 files changed, 132 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_texture_query_lod/execution/fs-textureQueryLod-linear.shader_test
diff --git
---
tests/all.tests |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/all.tests b/tests/all.tests
index 1dccd9a..f0cdc91 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -1162,6 +1162,12 @@ arb_texture_buffer_range['dlist'] =
);
+ piglit_report_result(PIGLIT_SKIP);
+#endif
} else {
fprintf(stderr, unknown texture parameter in `%s'\n, line);
piglit_report_result(PIGLIT_FAIL);
--
1.8.2
Oh, indeed. I didn't think of this. Thanks, I've learned something new.
Reviewed-by: Matt Turner matts
With the patch series on mesa-dev, these tests can run on i965 by setting
MESA_GL_VERSION_OVERRIDE=3.2
MESA_GLSL_VERSION_OVERRIDE=150
MESA_EXTENSION_OVERRIDE=GL_ARB_gpu_shader5
The tests cover bitCount, findMSB, findLSB, bitfieldReverse,
bitfieldExtract, and bitfieldInsert.
The series is
---
.../built-in-functions/fs-findLSB.shader_test | 71
1 files changed, 71 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-findLSB.shader_test
diff --git
---
.../fs-bitfieldReverse.shader_test | 69
1 files changed, 69 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-bitfieldReverse.shader_test
diff --git
---
.../fs-bitfieldExtract.shader_test | 109
1 files changed, 109 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-bitfieldExtract.shader_test
diff --git
---
.../built-in-functions/vs-bitCount.shader_test | 74
1 files changed, 74 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/vs-bitCount.shader_test
diff --git
---
.../vs-bitfieldReverse.shader_test | 73
1 files changed, 73 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/vs-bitfieldReverse.shader_test
diff --git
---
.../built-in-functions/vs-findMSB.shader_test | 95
1 files changed, 95 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/vs-findMSB.shader_test
diff --git
---
.../built-in-functions/vs-findLSB.shader_test | 75
1 files changed, 75 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/vs-findLSB.shader_test
diff --git
---
.../vs-bitfieldExtract.shader_test | 113
1 files changed, 113 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/vs-bitfieldExtract.shader_test
diff --git
---
.../built-in-functions/const-findLSB.shader_test | 67
1 files changed, 67 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/const-findLSB.shader_test
diff --git
---
.../built-in-functions/const-findMSB.shader_test | 64
1 files changed, 64 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/const-findMSB.shader_test
diff --git
---
.../const-bitfieldExtract.shader_test | 60
1 files changed, 60 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/const-bitfieldExtract.shader_test
diff --git
---
.../const-bitfieldInsert.shader_test | 56
1 files changed, 56 insertions(+), 0 deletions(-)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/const-bitfieldInsert.shader_test
diff --git
---
tests/all.tests |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/all.tests b/tests/all.tests
index 8d067be..0721f0b 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -1075,6 +1075,12 @@ for backing_type in ('texture', 'renderbuffer'):
not be dead code eliminated
+ break;
+ f = 0.5;
+ }
+ gl_FragColor = vec4(1.0 - f, f, 0.0, 1.0);
+}
+
+[test]
+clear color 0.0 0.0 0.0 0.0
+clear
+
+draw rect -1 -1 2 2
+probe all rgba 0.0 1.0 0.0 1.0
--
1.8.2.1
Reviewed-by: Matt Turner matts
v2: Subtract return value from 31 to get the count in LSB terms.
---
.../built-in-functions/fs-findMSB.shader_test | 91 ++
1 file changed, 91 insertions(+)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/fs-findMSB.shader_test
diff --git
v2: Call nonexistent bad_constant_folding() function if test fails.
---
.../built-in-functions/const-bitCount.shader_test | 59 ++
1 file changed, 59 insertions(+)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/const-bitCount.shader_test
diff
v2: Call nonexistent bad_constant_folding() function if test fails.
---
.../built-in-functions/const-findLSB.shader_test | 59 ++
1 file changed, 59 insertions(+)
create mode 100644
tests/spec/arb_gpu_shader5/execution/built-in-functions/const-findLSB.shader_test
diff
v2: Subtract return value from 31 to get the count in LSB terms.
Call nonexistent bad_constant_folding() function if test fails.
---
.../built-in-functions/const-findMSB.shader_test | 58 ++
1 file changed, 58 insertions(+)
create mode 100644
1 - 100 of 392 matches
Mail list logo