summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-uniform-out-of-bounds.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-15util/gl: Rename piglit-util-gl-common.hChad Versace1-1/+1
There are no longer any source files in tests/util that are specific to a particular OpenGL API. In other words, all OpenGL utility sources in tests/util are now "common" and shared by all OpenGL APIs. So remove the 'common' in filename 'piglit-util-gl-common.h'. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-11-06shaders: remove config.window_width/height = 100 linesBrian Paul1-2/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-09util: Add fields to piglit_gl_test_config for listing supported GL flavors (v2)Chad Versace1-0/+2
This patch has 3 interrelated components. 1) Add the following fields to piglit_gl_test_config: supports_gl_core_version supports_gl_compat_version supports_gl_es1 supports_gl_es2 These allow a test to specify what GL flavors under which it can run. For details, see the documentation for struct piglit_gl_test_config. 2. In tests/util/piglit-framework-gl, implement support for the new fields. 3. In each GL test source, add one of the new fields to the PIGLIT_GL_TEST_CONFIG_BEGIN/END block. For GLES1 tests, add `supports_gl_es1 = true`. For GLES2 tests, add `supports_gl_es2 = true`. For desktop GL tests, add `supports_gl_compat_version = 10`. For an explanation of why version 1.0 is used for desktop GL tests, see the documentation for supports_gl_compat_version. No tests yet require a GL core context. v2: Replace silly sum of booleans with a logical conjuction. For Anholt. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Tested-by: Paul Berry <stereotype441@gmail.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-09util: Convert GL tests to use PIGLIT_GL_CONFIG_BEGIN/ENDChad Versace1-4/+7
This patch has two components. 1. In tests/util/piglit-framework-gl.h, replace the definition of PIGLIT_GL_TEST_MAIN with the macro block PIGLIT_GL_CONFIG_BEGIN/END. The macro PIGLIT_GL_TEST_MAIN was very restrictive. It was a fixed-arity macro function that allowed a test to set only set 3 values: window width, height, and visual. It would have been difficult to shoehorn optional test attributes into such a fixed-arity macro function. Allowing optional attributes is an essential feature because a following commit adds optional fields to struct piglit_gl_test_config. The macro block PIGLIT_GL_TEST_CONFIG_BEGIN/END is more flexible. Within it the test is allowed to arbitrarilty modify the piglit_gl_test_config structure. 2. In each GL test source, replace PIGLIT_GL_TEST_MAIN with a PIGLIT_GL_TEST_CONFIG_BEGIN/END block. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Tested-by: Paul Berry <stereotype441@gmail.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-09tests: Remove direct includes of piglit-framework.hChad Versace1-1/+0
This prepares for the next commit, which renames piglit-framework.h. All modified files included piglit-framework.h transitively. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Paul Berry <stereotype441@gmail.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-09util,tests: Replace GLUT visual enums with PIGLTI_GL_VISUAL enums (v2)Chad Versace1-1/+1
I'm trying to transition Piglit from using GLUT to using Waffle. That requires either killing or wrapping all GLUT code. Define enum piglit_gl_visual in piglit-framework.h, of which each value matches its corresponding GLUT visual enum. Do the following substitution in all util and test sources: GLUT_RGB -> PIGLIT_GL_VISUAL_RGB GLUT_RGBA -> PIGLIT_GL_VISUAL_RGBA GLUT_DOUBLE -> PIGLIT_GL_VISUAL_DOUBLE GLUT_ACCUM -> PIGLIT_GL_VISUAL_ACCUM GLUT_ALPHA -> PIGLIT_GL_VISUAL_ALPHA GLUT_DEPTH -> PIGLIT_GL_VISUAL_DEPTH GLUT_STENCIL -> PIGLIT_GL_VISUAL_STENCIL v2: Remove GLUT_INDEX, for Ken. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Paul Berry <stereotype441@gmail.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-06-28util: Move piglit-util to piglit-util-gl-commonBlaž Tomažič1-1/+1
Move piglit-util.* to piglit-util-gl-common.* Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-06-20tests: Let each test define main()Chad Versace1-3/+4
Each test that did not define main() now does so using PIGLIT_GL_TEST_MAIN(). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-03-07Stop using GLEW extension macrosPaul Berry1-1/+1
Several tests were checking for the presence of GL extensions using GLEW macros. This patch changes the tests to use piglit_is_extension_supported(), which provides the same functionality in a way that is not dependent on GLEW. v2: Follow piglit convention of including "GL_" in the string passed to piglit_is_extension_supported(). Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-04-29Rename PIGLIT_SUCCESS and PIGLIT_FAILURE to PIGLIT_PASS and PIGLIT_FAIL, resp.Marek Olšák1-4/+4
2011-02-17Remove unnecessary OpenGL extension definesMarek Olšák1-5/+1
2010-08-23glsl-uniform-out-of-bounds: Make this test access the end of b[3].Eric Anholt1-2/+2
It was relying on Mesa's lack of trimming of uniform length (which is required by spec) so that b[2] existed and had a location. It's not clear to me what the desired testing was here (only b[0] being used but c[1..4] being used suggested that b[] was supposed to be testing this behavior, but b[] was the only one getting the array offset testing when it should only have succeeded on c[] suggests not). This is the minimal change to keep the test testing the same aspects of the API it was before.
2009-11-06glsl-uniform-out-of-bounds: Cast glGetError return values to void.Vinson Lee1-6/+6
The return values from glGetError are not being used.
2009-10-15Hide platform issues from tests.Ian Romanick1-8/+0
2009-10-07glsl-uniform-out-of-bounds: Fail harder on Mesa with incorrect handlingNicolai Hähnle1-11/+13
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-10-06Silence MSVC C4255 warnings.Vinson Lee1-1/+1
MSVC 4255 warning: 'function' : no function prototype given: converting '()' to '(void)'
2009-10-05glsl-uniform-out-of-bounds: Fix MSVC build.Vinson Lee1-1/+13
2009-10-03glsl-uniform-out-of-bounds: New testNicolai Hähnle1-0/+311
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>