aboutsummaryrefslogtreecommitdiff
path: root/tests/spec
AgeCommit message (Collapse)Author
2013-04-25Merge branch 'more-glsl-es-compiler' into gles2-allgles2-allTom Gall
Conflicts: generated_tests/CMakeLists.txt
2013-04-24Add outerProduct existance test for glsl es 1.00Tom Gall
outerProduct is available with glsl es 3.00 but not with glsl es 1.00. http://www.khronos.org/opengles/sdk/docs/manglsl/xhtml/outerProduct.xml
2013-04-22Merge branch 'glsl-es-100-variable-index' into gles2-allTom Gall
2013-04-22shader_runner: port glsl 1.20 versions of tests to glsl es 1.00Tom Gall
2013-04-22gles2: glslparser tests ported to glsl es 1.00Tom Gall
2013-04-22gles2: glslparser tests ported to glsl es 1.00Tom Gall
2013-04-22gles2: glslparser tests ported to glsl es 1.00 from glsl 1.10Tom Gall
2013-04-22gles2: glslparser tests ported to glsl es 1.00 from glsl 1.10Tom Gall
2013-04-21remote variable-indexing tests from glsl-1.10 and glsl-1.20Tom Gall
As these tests are now autogenerated in generated_tests by variable-index-read.sh and variable-index-write, remove them.
2013-04-20move variable-index-read.sh and variable-index-write.sh to generated_testsTom Gall
2013-04-20variable-index-write.sh: extend to support glsl es 1.00Tom Gall
From tests/spec/glsl-1.10 extend variable-index-write.sh so that it can also correctly generates variable index write tests that support glsl-es-1.00. 1.00 added as a valid parameter to generated tests for glsl-es-1.00. For 1.00 tests in the vertex shader an orthographic projection is applied since ortho during the test portion isn't supported on OpenGL ES. For 1.00 tests the fragent shader specifies default precision. For 1.00 tests emit in the [require] section the correct GLSL ES and GL ES settings.
2013-04-20variable-index-read.sh: extend to support glsl es 1.00Tom Gall
From tests/spec/glsl-1.10 extend variable-index-read.sh so that it can also correctly generates variable index read tests that support glsl-es-1.00. 1.00 added as a valid parameter to generated tests for glsl-es-1.00. For 1.00 tests the vertex shader an orthographic projection is applied since ortho during the test portion isn't supported on OpenGL ES. For 1.00 tests the fragent shader specifies default precision. For 1.00 tests emit in the [require] section the correct GLSL ES and GL ES settings.
2013-04-19arb_texture_multisample: add test to check sample positions v3Christoph Bumiller
v3: Made more readable, report observed sample positions of failure.
2013-04-19ARB_ubo/maxuniformblocksize: unmap buffer before drawing with itChristoph Bumiller
From the description of glMapBuffer: "A mapped data store must be unmapped with glUnmapBuffer before its buffer object is used. Otherwise an error will be generated by any GL command that attempts to dereference the buffer object's data store."
2013-04-18arb_internalformat_query-minmax: initialise buffer_size_in_elementsDave Airlie
Since we never bail on the first failure in this test, we can return from the GetInternalformativ without buffer_size_in_elements ever being touched, due to misc GL error (mesa_base_fbo_format fails), this then causes us to loop a lot later and print error messages than make piglit eat all the pies^WRAM. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-04-16Rework the PIGLIT_GL_VISUAL flags, fix RGB vs RGBA vs ALPHA confusionMarek Olšák
Changes: - SINGLE is removed, because its value was 0 - ALPHA is removed, because it becomes redundant with this change - RGB asks for an RGB visual - RGBA asks for an RGBA visual - if RGB and RGBA are unset, it asks for a visual without RGB(A) Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> v2: fix glut
2013-04-13glsl-1.30: add test for default in switch not after all case statementsRoland Scheidegger
By the looks of it "default" is not required to appear as last statement in a switch expression, and c rules should be followed (which is probably a mess to implement thanks to fallthrough). Seems to fail with mesa glsl compiler (at least with tgsi translation). Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-10Test interaction of primitive restart and transform feedback.Paul Berry
v2: Fix "written" subtest (which was testing the wrong query). Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-09glsl-es-1.00: sanity.shader_test fragment needs default precisionTom Gall
GLSL ES 1.00 spec 4.5.3 page 36: "The fragment language has no default precision qualifier for floating point types." Adding default precision for float in the fragment shader so this sanity testcase doesn't error out. mediump is choosen since according to 4.5.2 page 34: "The fragment language requires any uses of lowp and mediump to compile without error. Support for highp is optional." Signed-off-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2013-04-09Test that transform feedback works with non-flat integers.Paul Berry
Commit 0fac0a6 (Modify tests for error checking on "flat" keyword to match updated specs) adopted the GLSL 1.50 rules for "flat" varyings for all desktop GL tests (the rationale was that this change likely reflects a bug fix rather than a deliberate behavioural difference). The GLSL 1.50 rules allow a vertex shader output to be a non-flat integer provided that it isn't consumed by the fragment shader. In particular, this means that a non-flat integer may be used with transform feedback. This test verifies that transform feedback works correctly for all integral types, even if they are not declared as "flat". Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-04-06gl-1.0: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06arb_vertex_buffer_object: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06arb_framebuffer_object: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06arb_shader_objects: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06arb_sampler_objects: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-05arb_shader_texture_lod-texgradcube: Test explicit derivatives for cube mapsRoland Scheidegger
Similar to arb_shader_texture_lod-texgrad, but using cube maps instead. Given the somewhat undefined behavior of explicit gradients with cube maps, the main purpose of the test is really to test that those work at all, as there doesn't seem to be any other test covering this. That said, drivers which simply drop explicit derivatives on the floor (like softpipe) pass this perfectly as it simply compares implicit vs. explicit behavior (which, given the fuzzy specification, might not be really required to be the same here, though given the chosen values, that is the major axis derivatives being zero, it might seem like a reasonable assumption). I guess something which would also test that the implementation is really using explicit derivatives instead of implicit ones would also be desirable, but I'll leave that for now, I couldn't really come up with something. Reviewed-by: Brian Paul <brianp@vmware.com>
2013-04-01amd_performance_monitor: s/__func__/__FUNCTION__/Vinson Lee
__func__ is not available on MSVC. Signed-off-by: Vinson Lee <vlee@freedesktop.org>
2013-04-01Add tests for the GL_AMD_performance_monitor extension.Kenneth Graunke
One of the challenging aspects of testing this extension is that it defines an implementation-specific set of groups and counters. Many of the tests here arbitrarily operate on the counters in the first group, while a few sanity check all counters in all groups. All tests pass on AMD's Catalyst 12.06 driver on a Radeon 3650, except for: test_number_of_groups_partial_array, test_delete_monitor_invalid, and test_get_counter_data_byte_size. I believe the first two are legitimate bugs in AMD's implementation, and the latter is a disagreement about the associativity of text within a paragraph. Still, these are minor details and I believe the tests are valid. v2: Actually set the test name for the second test. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2013-03-29arb_texture_query_lod: Test textureQueryLOD with linear filtering.Matt Turner
v2: Use textureQueryLOD instead of textureQueryLOD.
2013-03-29arb_texture_query_lod: Test textureQueryLOD with lod-biasing.Matt Turner
v2: Use textureQueryLOD instead of textureQueryLOD.
2013-03-29arb_texture_query_lod: Test textureQueryLOD with no mipmapping.Matt Turner
v2: Use textureQueryLOD instead of textureQueryLOD.
2013-03-29arb_texture_query_lod: Test textureQueryLOD with nearest filtering.Matt Turner
v2: Use textureQueryLOD instead of textureQueryLOD.
2013-03-28arb_texture_multisample: add new negative-max-samples testChris Forbes
This covers the sample count limits for both renderbuffers and multisample textures, when ARB_texture_multisample is supported. Skips if ARB_internalformat_query is supported, since that extension allows the overall sample count limits to be exceeded on a per-internalformat basis. V2: - Emit a useful message when skipping. V3: - Style nits Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-03-28ext_framebuffer_multisample: skip negative-max-samplesChris Forbes
If ARB_texture_multisample or ARB_internalformat_query are supported, the limits and/or errors generated are different, so skip this test. V2: - Emit a useful message when skipping. V3: - Indentation Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-03-26primgen: new test for PRIMITIVES_GENERATED queryMarek Olšák
v2: cosmetic changes as suggested by Eric
2013-03-22shader_runner: remove explicit #version from outerProduct generated tests.Stuart Abercrombie
It will be added based on the GLSL requirement instead. Also make it clearer that these shader_test files are automatically generated. Same number of passes on Sandy Bridge running all.tests without glean. v2: Add missing comment # Signed-off-by: Stuart Abercrombie <sabercrombie@chromium.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-22glsl-1.50: add complex VS+FS interface blocks execution testJordan Justen
This test provides a complex test of using interface blocks. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org>
2013-03-22glsl-1.50: add more negative tests for interface block linkingJordan Justen
A few tests to make sure that interface blocks are defined the same during intrastage and interstage linking. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org>
2013-03-20glsl-1.40: Add a simple test of math on uniform buffer loads.Eric Anholt
Catches an assertion failure/rendering failure in i965.
2013-03-20GL_ARB_fragment_program/sparse-samplers: Test for a bug in i965.Eric Anholt
2013-03-20Add tests/spec/glsl-es-1.00/execution/maximums shader testsTom Gall
Adds gl_MaxCombinedTextureImageUnits.shader_test gl_MaxDrawBuffers.shader_test gl_MaxFragmentUniformVectors.shader_test gl_MaxTextureImageUnits.shader_test gl_MaxVaryingVectors.shader_test gl_MaxVertexAttribs.shader_test gl_MaxVertexTextureImageUnits.shader_test gl_MaxVertexUniformVectors.shader_test These check the built-in constants of the same name from section 7.4 of the glsl es 1.0.17 spec. v2: squash patch, address one by one spec reference. Signed-off-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Eric Anholt <eric@anholt.net>
2013-03-20glx_arb_create_context: Remove unused variables.Rico Schüller
Signed-off-by: Brian Paul <brianp@vmware.com>
2013-03-19Fix etc2 test for format=COMPRESSED_R11_EACAnuj Phogat
waffles-decompressed-etc2-r11-64x32-miptree.ktx contains per pixel RGBA data generated by ericsson's etcpack tool. While generating decompressed image for COMPRESSED_R11_EAC format, RED color data for each pixel is copied to GREEN and BLUE channels as well. Using this image for texturing in OpenGL ES 3.0 (internalFormat=GL_R8) causes GL_INVALID_OPERATION. This is because glTexImage2D() in GL ES 3.0 doesn't allow internalFormat = GL_R8 with format= GL_RGBA. To workaround this issue use internalFormat = GL_RGBA and mask all color channels except Red. Other option is to edit the waffles-decompressed-etc2-r11-64x32-miptree.ktx file and set all GREEN, BLUE components to zero. Considering the hassle involved in editing image file, I won't prefer that. This fixes the piglit failure on gles3 with COMPRESSED_R11_EAC format. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
2013-03-09oes_compressed_etc2_texture-miptree: Fix build.José Fonseca
Mimic others CMakeLists.gl.txt
2013-03-08Enable etc2 tests on gl contexts that support GL_ARB_ES3_compatibility extensionAnuj Phogat
V2: Enable the test to choose core/compat GL context at run time. Add GL version of test to all.tests. Use VAO to enable the test run on core context. Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-03-08glx_arb_create_context: Add current-no-framebuffer testAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-03-06glsl-1.30: add basic test for testing textureOffset functionality.Roland Scheidegger
This is pretty rough and doesn't really test all that much (just textureOffsetLod, but there's other texturing functions with offsets), doesn't test different wrap modes, NPOT sizes etc., but there's no other test using "ordinary" texture opcodes and texel offsets, so it's a start (and in fact it exposed a bug in the mesa state tracker). Tested with llvmpipe (pass) and softpipe (fail) which is as expected - hopefully the math is ok... Inspired from fs-texelFetchOffset. v2: some minor comment and code fixes Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-03-03arb_texture_multisample: Avoiding C99-style struct initializers.José Fonseca
In order to fix the build on MSVC, which does not support them.
2013-03-03arb_texture_multisample: add new test for errorsChris Forbes
Tests that glFramebufferTextureLayer produces the correct error for layer < 0 when used with GL_TEXTURE_2D_MULTISAMPLE_ARRAY. This was overlooked in the initial mesa implementation of ARB_texture_multisample, and crashed deep in the driver instead. V3: - Don't set the window size, we don't care. V4: - Add missing copyright notice. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
2013-03-03arb_texture_multisample: new tests for sample maskChris Forbes
Adds tests for sample mask: - Initial state - Fetching of each sample mask word - Execution test via rendering with various masks to a multisample FBO, then downsampling via glBlitFramebuffer and checking the result. V2: - Don't specify window size when we don't care. V4: - Add missing copyright notice. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>