summaryrefslogtreecommitdiff
path: root/tests/asmparsertest
AgeCommit message (Collapse)AuthorFilesLines
2014-09-23asmparsertest: add new SWZ test to exercise Mesa bug/assertionBrian Paul1-0/+8
The Mesa program optimizer was failing some assertions because of the SWZ 0, 1 terms. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
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>
2014-06-03asmparsertest: print error if unable to open fileBrian Paul1-0/+1
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-03-22Remove asmparsertest/shaders/ARBvp1.0/address-06.txtMarek Olšák1-11/+0
This test cannot pass with Mesa because Mesa allows greater relative offsets, because some apps use them and proprietary drivers allow them too. Reviewed-by: Brian Paul <brianp@vmware.com>
2014-01-13asmparsertest: Silence uninitialized variable warning.Vinson Lee1-0/+1
Fix GCC maybe-uninitialized warning. asmparsertest.c: In function 'piglit_init': asmparsertest.c:243:10: warning: 'target' may be used uninitialized in this function [-Wmaybe-uninitialized] compile(argv[i], target, use_ARB); ^ Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-05-24ARB_fp: invert expected result for duplicate precision hint testsChris Forbes2-2/+0
The ARB_fragment_program spec, 3.11.4.5.2 says: "Only one precision control option may be specified by any given fragment program. A fragment program that specifies both the "ARB_precision_hint_fastest" and "ARB_precision_hint_nicest" program options will fail to load. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
2013-04-16Rework the PIGLIT_GL_VISUAL flags, fix RGB vs RGBA vs ALPHA confusionMarek Olšák1-1/+1
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
2012-12-06Fix shell scripts that claim to run with /bin/sh but actually need /bin/bash.Stuart Abercrombie2-2/+2
With this change they run on, for instance the last 6 years of Ubuntu. Signed-off-by: Stuart Abercrombie <sabercrombie@chromium.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
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-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-28cmake: Move piglitutil library to piglitutil_glBlaž Tomažič1-1/+1
Build gl utilities to piglitutil_gl library insted of piglitutil. As a result all executables linking to piglitutil library now link to piglitutil_gl. Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com> Reviewed-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-2/+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-05-23tests: Remove glutExtensionSupportedChad Versace1-8/+1
Replace it with piglit_is_extension_supported or piglit_require_extension, as appropriate. Reviewed-by: Pauli Nieminen <pauli.nieminen@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-05-23cmake: Relocate all GLUT directives into single locationChad Versace1-2/+0
Nearly all CMakeLists.gl.txt contained the following: include_directories(${GLUT_INCLUDE_DIR}) link_libraries(${GLUT_glut_LIBRARY}) This patch relocates them to cmake/target_api/gl/CMakeLists.txt. Reviewed-by: Pauli Nieminen <pauli.nieminen@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-03-23cmake: Replace calls to add_{executable,library} with wrappersChad Versace1-1/+1
Replace add_executable -> piglit_add_executable add_library -> piglit_add_library For now, each wrapper function trivially wraps the function it replaces, and so this patch changes no behavior. This commit was created using the command: sed -i -e "s/add_executable/piglit_add_executable/" -e "s/add_library/piglit_add_library/" $(find src/ tests/ -name "*CMakeLists*") Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-03-03don't write generated header to the source directoryDylan Noblesmith1-1/+0
It was impossible to have the source directory read-only. Also add the include_directories() directive for tests/util in just one place, under tests/, so that all subdirectories inherit it. A bunch of CMakeLists.txt files duplicate it, so delete those redundant include flags: sed -i -e "/^\t\${piglit_SOURCE_DIR}\/tests\/util/ d" \ `grep piglit_SOURCE_DIR -rl tests/ | grep "CMakeLists\.gl"`
2012-02-25Convert older tests to use piglit-framework.cPaul Berry1-25/+19
This patch converts the following tests to use the main() function in piglit-framework.c rather than define their own main() function. - asmparsertest - fdo14575 - fdo20701 - fdo22540 - fdo31934 - glslparsertest - texunits Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-02-20asmparsertest: Cast isspace input to int to silence compiler warning.Vinson Lee1-1/+1
Fixes this GCC warning on Cygwin. asmparsertest.c: In function ‘compile’: asmparsertest.c:136:4: warning: array subscript has type ‘char’ Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-29Rename PIGLIT_SUCCESS and PIGLIT_FAILURE to PIGLIT_PASS and PIGLIT_FAIL, resp.Marek Olšák1-5/+5
2011-03-07cmake: Allow GL/glext.h to be specified separately.José Fonseca1-0/+1
glext.h is not bundled on MSVC, so its path needs to be included separately. It might be also useful on other platforms to override the system's glext.h with a more recent one.
2011-02-25cmake: Each CMakeLists.txt that produces a target, rename to CMakeLists.gl.txtChad Versace2-14/+17
In preparation for adding GLES2 targets to Piglit, it is necessary to compartmentalize the GL targets and the GLES2 targets (of which none yet exist) in API-specific CMake files. Since all CMake targets currently use the OpenGL API, achieving compartmentalization is as simple as renaming each CMakeLists.txt. Note: This belongs to a series that adds GLES2 support to Piglit. Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25cmake: Don't add source dirs as link dirsChad Versace1-4/+0
This fixes out-of-source builds, and does not harm in-source builds. CMake is intelligent enough to add the appropriate link directories itself. Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-17Import GLEWMarek Olšák1-2/+0
Discussed on IRC. Finally we have headers for OpenGL 4.1 and all the extensions released to this day.
2010-12-04asmparsertest: Print out missing extension on skipped tests.Vinson Lee1-0/+1
2009-10-15asmparsertest: Add tests for NV_vp2 result.clip[] (clip distances)Ian Romanick4-0/+33
2009-10-15asmparsertest: Fix typographical error in ARBvp1./result-0[12].txtIan Romanick2-2/+2
2009-10-05asmparsertest: Add a few tests for NV_vp2 ARA instructionIan Romanick4-0/+28
2009-10-02asmparsertest: Add some more ARL testsIan Romanick5-0/+33
2009-10-01asmparsertest: Additional GL_NV_vertex_program3 texturing testsIan Romanick29-7/+296
2009-10-01asmparsertest: Add PUSHA and POPA tests for GL_NV_vertex_program3Ian Romanick9-0/+101
2009-10-01NV vp3: Add a bunch of GL_NV_vertex_program3 texture testsIan Romanick113-0/+850
2009-10-01asmparsertest: Run tests with -autoIan Romanick1-1/+1
The make_test_list.sh script has already paid off! One must be careful to NOT run the script with uncommitted test shaders laying around...
2009-10-01asmparsertest: Add a script to generate the list of all tests.Ian Romanick1-0/+48
This will make it much easier to add large groups of tests at one time.
2009-09-30NV vp2: Add a bunch of GL_NV_vertex_program2_option testsIan Romanick25-0/+154
Also, make sure all the tests in asmparsertest/shaders are listed in the all.tests.
2009-09-29Replace the copy-and-pasted header setup with consistent use of piglit-util.h.Eric Anholt1-9/+0
2009-09-16asmparsertest: Use vertex program reserved words in a fragment programIan Romanick1-0/+46
2009-09-04asmparsertest: Add tests for NV_fp_o size specifiersIan Romanick88-0/+500
2009-09-03asmparsertest: Add missing space before 'FAIL'Ian Romanick1-1/+1
2009-09-03asmparsertests: Add tests for absolute value operator from NV_fp_optionIan Romanick2-0/+15
2009-09-03asmparsertests: Rename ARBfp1.0 test abs.txt to abs-01.txtIan Romanick1-0/+0
2009-09-03asmparsertests: Add tests for the COS instructionIan Romanick5-0/+24
cos-05.txt also tests the differing behavior of scalar constants between ARB_fragment_program and NV_fragment_program_option.
2009-09-03asmparsertest: Remove erroneous constant testsIan Romanick2-10/+0
2009-09-01NV fp: Add tests for differing scalar constant behavior with ARBfpIan Romanick2-0/+10
2009-08-31NV fp: Add a few tests for 'OPTION NV_fragment_program' shadersIan Romanick8-0/+53
Tests for a few trivial bits of new functionality added by the GL_NV_fragment_program_option extension. More tests are on the way.
2009-08-31asmparsertest: Add test for invalid program OPTION stringIan Romanick2-0/+10
2009-08-23Compile tests using both DOS and Unix line endings.Ian Romanick1-25/+105
2009-07-30asmparsertest: Add SWZ tests for fp that use RGBAIan Romanick2-0/+7