summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-07-15util/ktx: Unify piglit_ktx_load_noncubeface() between GL and GLESChad Versace1-12/+7
Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. Piglit can make API-based decisions at runtime rather than buildtime. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/gl: Unify vertex_attrib_description::setup() amongs APIsChad Versace1-4/+2
Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. Piglit can make API-based decisions at runtime rather than buildtime. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/gl: Unify piglit_draw_rect_from_arrays() among APIsChad Versace1-21/+12
Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. Piglit can make API-based decisions at runtime rather than buildtime. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/gl: Define piglit_*ortho_uniform() functions in GL builds tooChad Versace1-2/+0
Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/gl: Unify piglit_get_compressed_block_size() between GL and GLESChad Versace1-4/+0
Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/gl: Unify extension detection between GL and GLESChad Versace1-10/+0
Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. This patch is safe for GLES because glGetStringi() is available in OpenGL ES 3.0. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/minmax: Remove all #ifdef PIGLIT_USE_OPENGL guardsChad Versace2-12/+0
Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/shader: Remove the last #ifdef PIGLIT_USE_OPENGL guardChad Versace1-2/+0
This patch removes the last #ifdef PIGLIT_USE_OPENGL guard in piglit-shader-.c. Now that piglit-dispatch supports every OpenGL API, this file no longer needs to provide separate implementations for GL and GLES. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/shader: Remove empty files piglit-shader-gl*.cChad Versace6-60/+2
These files are no longer used after moving all their functions to piglit-shader.c. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/shader: Unify some funcs between GL and GLESChad Versace3-121/+101
Move the implementations of the functions below from piglit-shader-gl.c into piglit-shader.c, and delete their stub implementations in piglit-shader-gles2.c. Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. This patch brings us one step closer to unifying Piglit's CMake files. piglit_require_GLSL piglit_require_vertex_shader piglit_require_fragment_shader piglit_program_pipeline_check_status piglit_program_pipeline_check_status_quiet Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util: Remove unsued file piglit-shader-gles1.cChad Versace1-65/+0
CMake never knew about this file, and now it never will. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/shader: Remove an unneeded #ifdef PIGLIT_USE_OPENGLChad Versace1-4/+0
The entire file piglit-shader-gl.c was protected by #ifdef PIGLIT_USE_OPENGL. This patch removes the #ifdef. Now that piglit-dispatch supports every OpenGL API, there is no longer a need for it. This patch brings us one step closer to unifying Piglit's CMake files. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/fbo: Don't re-initialize piglit-dispatch in fbo frameworkChad Versace1-2/+0
piglit_wfl_framework already initializes piglit-dispatch. Don't do it again. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util/fbo: Fix -Wunused-function warningsChad Versace1-5/+7
Fix the warnings below. piglit_fbo_framework.c:32:1: warning: ‘destroy’ defined but not used [-Wunused-function] destroy(struct piglit_gl_framework *gl_fw) ^ piglit_fbo_framework.c:44:1: warning: ‘run_test’ defined but not used [-Wunused-function] run_test(struct piglit_gl_framework *gl_fw, ^ piglit_fbo_framework.c:58:1: warning: ‘init_gl’ defined but not used [-Wunused-function] init_gl(struct piglit_wfl_framework *wfl_fw) ^ The problem was that most of the file was discarded by the preprocessor when building for ES1. Fix it by carefully moving the #ifdef PIGLIT_USE_OPENGL_ES1 guards. This patch shouldn't change any runtime behavior. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util: Fix an -Wabsolute-value warningChad Versace1-1/+1
To fix the warning below, replace fabs with abs. tests/util/piglit-util-gl-common.c:1240:9: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value] \ if (fabs(probe[p] - expected[p]) >= piglit_tolerance[p]) { ^ tests/util/piglit-util-gl-common.c:1240:9: note: use function 'abs' instead if (fabs(probe[p] - expected[p]) >= piglit_tolerance[p]) { ^~~~ abs Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util: Fix an -Wabsolute-value warningChad Versace1-1/+1
To fix the warning below, cast uint to int. tests/util/piglit-util-gl-common.c:1273:9: warning: taking the absolute value \ of unsigned type 'unsigned int' has no effect [-Wabsolute-value] if (fabs(probe[p] - expected[p]) >= piglit_tolerance[p]) { Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-15util: Fix a -Wtautological-compare warningChad Versace1-1/+1
tests/util/piglit-log.c: warning: comparison of unsigned enum \ expression < 0 is always false [-Wtautological-compare] return opt < 0 || opt > PIGLIT_LOG_OPT_MAX; ~~~ ^ ~ Fix the warning by removing the dead comparison. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-14arb_texture_multisample: add new texelFetch() testBrian Paul3-0/+319
A simple test to check that using texelFetch() to get individual samples from a MSAA texture really works. v2: rename "fetch texel" -> "texel fetch".
2014-07-14gl-3.0: add a test to stress the bound resource limitsMatthew McClure3-0/+1338
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-14tex-miplevel-selection: test all functions from ARB_texture_rectangleMarek Olšák2-0/+18
2014-07-14tex-miplevel-selection: test all texture functions from GLSL 1.2Marek Olšák2-5/+119
2014-07-14tex-miplevel-selection: test all functions from ARB_shader_texture_lodMarek Olšák2-15/+177
Except for textureCubeGradARB, which the test doesn't support yet.
2014-07-14tex-miplevel-selection: fix cubemap targets for texture() and texture(bias)Marek Olšák2-23/+37
2014-07-14tex-miplevel-selection: test all texture functions with Rect targetsMarek Olšák2-38/+135
+ off-by-one error fix in check_result
2014-07-14tex-miplevel-selection: test all variants of textureProjGradOffsetMarek Olšák2-4/+24
2014-07-14tex-miplevel-selection: test all variants of textureProjGradMarek Olšák2-3/+22
2014-07-14tex-miplevel-selection: test all variants of textureGradOffsetMarek Olšák2-18/+46
2014-07-14tex-miplevel-selection: test all variants of textureGradMarek Olšák2-7/+69
2014-07-14tex-miplevel-selection: test all variants of textureProjLodOffsetMarek Olšák2-15/+50
+ Use level 0 texture coordinates to really verify the Lod fetch works. It was using scaled coordinates, so textureLodOffset could have been replaced by textureOffset and the test would pass. Now the test will fail if drivers attempt to fake it that way.
2014-07-14tex-miplevel-selection: test all variants of textureProjLodMarek Olšák2-3/+22
2014-07-14tex-miplevel-selection: test all variants of textureLodOffsetMarek Olšák2-5/+26
2014-07-14tex-miplevel-selection: test all variants of textureProjOffset with biasMarek Olšák2-5/+30
+ a comment about offsets
2014-07-14tex-miplevel-selection: simplify shader code generationMarek Olšák1-234/+85
2014-07-14tex-miplevel-selection: test all variants of textureProjOffsetMarek Olšák2-3/+44
2014-07-14tex-miplevel-selection: test all variants of textureProj with biasMarek Olšák2-2/+43
2014-07-14tex-miplevel-selection: test all variants of textureProjMarek Olšák2-11/+98
2014-07-14tex-miplevel-selection: test all variants of textureOffset with biasMarek Olšák2-9/+65
+ some bug fixes
2014-07-14tex-miplevel-selection: test all variants of textureOffsetMarek Olšák2-86/+222
2014-07-14tex-miplevel-selection: test all variants of texture() with biasMarek Olšák2-46/+183
2014-07-14tex-level-selection: deduplicate code, improve outputMarek Olšák1-58/+115
2014-07-14all.py: mark old tex-miplevel-selection tests as concurrentMarek Olšák1-6/+6
2014-07-14tex-miplevel-selection: test all variants of textureLodMarek Olšák2-93/+468
2014-07-12Replace link-mismatch-layout-02 with shader testsChris Forbes6-98/+97
This is an old test from before shader_runner could express multi-shader cases, and a little broken. Replace it with shader_tests which exercise the linker. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-07-12Remove tests/shaders/link-mismatch-layout-0[13]Chris Forbes4-194/+0
These date back to a time before shader_runner was capable of testing this case. Now redundant. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-07-12shader_runner: Set uniform block bindings for multiple UBOsChris Forbes1-0/+2
glLinkProgram (re)sets all uniform block bindings to zero. If we want to actually use multiple uniform blocks, we need to call glUniformBlockBinding to specify which binding point goes with which uniform block. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2014-07-10tests/all.py: Fix built-in-constants* tests to use fullpath to shaders.Alan Hourihane1-10/+10
The built-in-constants tests have been crashing for me due to them not passing the full path as do other tests. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-07-10clipflat: fix 0/2 index typoBrian Paul1-1/+1
Spotted by Meng-Lin Wu. Reviewed-by: Matthew McClure <mcclurem@vmware.com>
2014-07-10arb_provoking_vertex/xfb-before-flatshading: use default window sizeBrian Paul1-2/+0
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2014-07-10arb_blend_func_extended: require GL 3.0Brian Paul2-2/+2
Since the test shaders require GLSL 1.30
2014-07-10oglconform.py: Use config file instead of symlinkDylan Baker1-2/+3
Instead of symlinking oglconform into the bin/ dir, edit piglit.conf and set the path key under the oglconform to the root of the oglconform dir. v2: - change config key 'bindir' to 'path' (chadv) Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>