summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-05-20egl/utils: Prepare egl_util_run to be called from piglit subtests.Sarah Sharp6-23/+52
For future EGL tests, I want to be able to use Chad's new piglit EGL subtest infrastructure, and use the EGL utilities convenience functions to set up a window, surface, and context. Currently, egl_util_run calls piglit_report_result() after calling test.draw. This means no other subtests get run. Add a new field in egl_test to specify whether piglit_report_result() should be called, and another field to store the result returned from test.draw. Make sure that egl_util_run() tears down the window, surface, and context. Previously it was relying on cleanup being done when the process died, which won't work if we want to run a second subtest in the same thread. TODO: There's still some work that could be done here to ensure the initialization steps in egl_util_run aren't done twice (e.g. calling XOpenDisplay, eglInitialize, etc.) However, the tests pass in their current state, so there's no reason they shouldn't be merged. Thanks a bunch to Chad Versace and Rob Bradford, who helped me debug this code! Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Cc: Rob Bradford <rob@linux.intel.com>
2014-05-19Auto-generate glsl-const-builtin-{equal, notEqual}-XX shader tests.Kenneth Graunke18-342/+0
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-05-19gen_equal_tests: Move to generated_tests directory.Kenneth Graunke1-105/+0
Rename to gen_const_builtin_equal_tests.py to better match the name of the tests it generates. This patch doesn't modify the contents. v2: - print name of test for CMake tracking (Dylan) Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-05-19gen_equal_tests: Update generator to match in-tree tests.Kenneth Graunke1-7/+2
Ian removed the GL >= 2.0 requirement in commit 38017752bca481d312de69cba5e334fd8c732a14. Matt removed the #version 120 lines in commit 67174fbcf797b4a129250db1a3c001974e7522ad. Matt dropped ortho/clear in commit: 2e5614458e566fb4353e92fc0b6407c12ee45c87 Now running gen_equal_tests.py produces equivalent results to the committed tests. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-05-19arb_texture_compression/internal-format-query: use piglit_get_gl_enum_name()Brian Paul1-8/+9
2014-05-19arb_occlusion_query: restore window size specificationBrian Paul1-0/+3
Commit ef4f461346d01a66 mistakenly removed the window size from this test, causing it to fail. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2014-05-16ext_framebuffer_multisample: Add testing for fast clear color pathAnuj Phogat1-4/+27
Test currently fails on i965's fast clear color path. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-05-16Add test to verify the values of gl_VertexID captured by transform feedbackAnuj Phogat3-0/+215
Test currently fails on Intel's open source linux drivers but passes on NVIDIA's proprietary linux drivers. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-05-16shader_runner: enable VAO for gl >= 31 before glDrawArraysJordan Justen1-6/+13
This fixes attributeless rendering on nvidia's binary driver and Mesa (as of 1afe3359258a9e89b62c8638761f52d78f6d1cbc). For example: * tests/spec/glsl-1.50/execution/geometry/point-size-out.shader_test Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77162 Tested-by: Anuj Phogat <anuj.phogat@gmail.com>
2014-05-14arb_texture_buffer_object: use default window sizeBrian Paul2-6/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14arb_timer_query: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14arb_vertex_program: use default window sizeBrian Paul3-9/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14ext_packed_depth_stencil: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14ext_timer_query: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14ext_packed_float: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14arb_occlusion_query2: use default window sizeBrian Paul2-6/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14ati_draw_buffers: use default window sizeBrian Paul3-9/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14nv_texture_barrier: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14glsl-1.10/execution/glsl-render-after-bad-attach: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14gl-1.0/front-invalidate-back: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14gl-3.2/layered-rendering_blit: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14arb_occlusion_query: use default window sizeBrian Paul4-12/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14arb_uniform_buffer_object: use default window sizeBrian Paul19-57/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14ext_texture_integer: use default window sizeBrian Paul3-9/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-14outerproduct_tests: generate testsDylan Baker99-5166/+3
This replaces outerProduct.sh and outerProduct-const.sh with a single python generator run at build time. This removes a significant amount of duplicate code that is otherwise checked into git, combines two generators that are largely the same, and being written in mako is easier to read and edit. v2: - fix some typos in a generated comment - preserve newline between probe and next uniform - fix a few other minor whitespace problems Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-05-14generators: Replace outerProduct-invalid-paramters.sh with pythonDylan Baker20-204/+3
This Adds a new python generator to replace the shell generator. The old generator was run once and the results were checked into git, the python generator on the other hand is run at build time. The tests are equivalent with only whitespace differences. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-05-14ARB_shader_texture_lod: Replace shell generator with python generatorDylan Baker49-1048/+1
This patch removes tests/spec/ARB_shader_texture_lod/compiler/*, which is a shell script that generates a number of tests, and 47 generated glsl parser tests. It replaces them with a python generator (require less code than the bash generator), that is run at build time by cmake. That means we don't need to check these simple generated tests in VCS. v2: - fix typo: replace ARG with ARB - fix typo: require_extension -> require_extensions - fix accidental replacement of varying with uniform Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-05-14remove old shell wrapperDylan Baker1-33/+0
This file was used before the new glsl parser was merged into mesa. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-05-14Remove old versions of make_tex_lod_tests.shDylan Baker2-113/+0
These are old partial versions of another test generator that is replaced later in this series Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-05-14make_test_list.sh: Remove rotten fileDylan Baker1-48/+0
This file hasn't worked for quite some time, and no one has bothered to fix it. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-05-13profile.py: stop exposing private methods of TestProfileDylan Baker1-1/+1
This patch stops exposing flatten_group_hierarchy and prepare_test_list by marking them with a leading underscore. These methods weren't meant to be called outside, and this is the pythonic way of letting users know that these are "private" methods. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-05-13gl-3.1: use default window sizeBrian Paul2-4/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13gl-3.0: use default window sizeBrian Paul1-2/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13gl-2.1: use default window sizeBrian Paul1-2/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13gl-2.0: use default window sizeBrian Paul2-4/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_vertex_program: use default window sizeBrian Paul1-2/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_vertex_array_object: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_uniform_buffer_object: use default window sizeBrian Paul2-4/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_texture_cube_map_array: use default window sizeBrian Paul1-2/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_multisample: use default window sizeBrian Paul2-4/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_framebuffer_srgb: use default window sizeBrian Paul2-4/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_fragment_program: use default window sizeBrian Paul1-2/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_es2_compatibility: use default window sizeBrian Paul2-4/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_draw_instanced: use default window sizeBrian Paul3-6/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_draw_elements_base_vertex: use default window sizeBrian Paul1-2/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_transform_feedback2: use default window sizeBrian Paul1-3/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_separate_shader_objects: use default window sizeBrian Paul3-9/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_texture_buffer_range: use default window sizeBrian Paul3-6/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13ext_transform_feedback: use default window sizeBrian Paul8-16/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2014-05-13arb_texture_buffer_object: use default window sizeBrian Paul7-14/+0
Reviewed-by: José Fonseca <jfonseca@vmware.com>