aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-15Slight Android.mk improvements for generated files with some dependency ↵androidRoss Oldfield
tracking. Generates the JSON and dispatch files under /out rather than in tree.
2013-04-23Initial simple shell script to convert frag and vert testsTom Gall
so they can be used for glslparstertest_gles2
2013-04-23Add tests/spec/glsl-es-1.00/compiler/shaders and associatedTom Gall
tests. These tests are a processed copy of tests/glslparsertest/shaders to support glsl es 1.00.
2013-04-23Add tests/spec/glsl-es-1.00/compiler/glsl2 directoryTom Gall
and associated testcases which are modified copies of tests/glslparsertest/glsl2 to support glsl es 1.00.
2013-04-23In tests/specs/gles-2.0, add glsl-fs-pointcoord multiple-shader-objectsTom Gall
to the tests built.
2013-04-23Update test data files with a rerun of variable-index-read.sh andTom Gall
variable-index-write.sh. Default precision added.
2013-04-23Add maximums and variable-index test data files to packaging forTom Gall
Android into the data partition.
2013-04-23update variable-index-read.sh and variable-index-write.sh toTom Gall
support android with precision default settings and glsl es 1.00
2013-04-23Move packaging of glsl2 and shader test files toTom Gall
tests/spec/glsl-es-1.00/compiler/Android.mk
2013-03-25Fix a bug where blank line was at EOF. This anoys git.Tom Gall
2013-03-25add variable index read and write tests. These are script generatedTom Gall
by variable-index-read.sh & variable-index-write.sh
2013-03-25shader_runner: port/adapt variable-index read and write scriptsTom Gall
2013-03-25Android: glslparser - build for Android and package dataTom Gall
files onto the data partition.
2013-03-25Android: Add Android.mk to build invalid-es3-queries & minmaxTom Gall
Adds Android.mk to build invalid-es3-queries & minmax. Test binaries are installed into /system/xbin/piglit/
2013-03-25Android: add glsl es 1.00 sanity.shader_test to /dataTom Gall
Adds Android.mk to copy the glsl es 1.00 shader test sanity.shader_test to /data/shader-data/execution/
2013-03-25Android: build shader_runner with Android.mkTom Gall
Adds Android.mk to build shader_runner.
2013-03-25Android: Build libpiglitutil_gles2 in Android.mkTom Gall
Adds Android.mk to build libpiglitutil_gles2 as well as autogenerate config.h, and generated_dispatch.ch
2013-03-25Android: Add Adrian M Negreanu's initial android supportTom Gall
This are Adrian M Negreanu's changes for piglit to support Android. These are included in this patch series for the purposes of completeness.
2013-03-25Android: add tests/Android.mkTom Gall
2013-03-25Android: add top level Android.mkTom Gall
Add top of the tree Android.mk, sets piglit_top
2013-03-25glsl2 tests: remove #version tags.Tom Gall
2013-03-25android: add strchrnul to shader_runner.cTom Gall
strchrnul is used in shader_runner.c (and no where else in all of piglit). Unfortunately bionic, Android's c library does not include this function. I've writen an implementation of strchrnul which is only used when compiling for Android.
2013-03-25android: file compile errors w shader_runner.cTom Gall
On Android -Werror=return-type is set for C code, as such there are two cases were I've added a return 0 after an assert.
2013-03-24glsl-fs-main-return-conditional: Test for using return in mainRoland Scheidegger
Similar to glsl-fs-main-return (and glsl-vs-main-return), this is testing using return in main. Contrary to the these other tests, this hits both the cases where the return path is and is NOT taken (the gallivm code got it wrong and always did an early exit which got unnoticed by the existing tests, see https://bugs.freedesktop.org/show_bug.cgi?id=62357). v2: use mod() instead of integer arithmetic suggested by Ian Romanick. This gets rid of the glsl 1.30 requirement. And do minor simplifications. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
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-22texelFetch: require ALPHA in the visualDave Airlie
VISUAL_RGBA is apparantly lies
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-20glean/tfpexceptions: disable unused print_float() functionRico Schüller
It's only called from main(), which was already disabled. Signed-off-by: Brian Paul <brianp@vmware.com>
2013-03-19glx-query-drawable: Remove unused window variable.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-19fbo-clear-formats: clean up error handlingBrian Paul
Use piglit_check_gl_error(). Note: we're getting an INVALID_OPERATION error from glBlitFramebuffer() with NVIDIA's driver. That'll be investigated/fixed separately. At least the test now reports FAIL instead of dying on an assertion. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-03-19rg-teximage: remove large stack allocationsBrian Paul
Don't allocate 1MB arrays on the stack. Use heap allocations instead. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-03-19texunits: clean-up GL error checking codeBrian Paul
Use piglit_check_gl_error(). Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-03-19texunits: increase size of arrays to fix crashBrian Paul
NVIDIA's later GPUs/drivers report 192 combined texture units. This causes us to read outside the too-small arrays and segfault. Increase the array sizes and add a check for the future. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-03-18add Python Mako module to the list of prerequisitesBrian Paul
2013-03-14depthstencil-render-miplevels: Add test for size 273.Paul Berry
When a mipmapped depth texture's size satisfies size > 1 and (size % 16) == 1, this causes miplevel 1 to have a size that is a multiple of 8, but not to be aligned on a multiple of 8 boundary. This turns out to be an important corner case for the i965 driver. Note: in an ideal world, I'd modify depthstencil-render-miplevels to simply test every possible buffer size from 1 to some reasonably large size (perhaps 256), but this would produce an impractically large number of test cases. So instead I'm just testing the sizes that have been known to cause problems.
2013-03-14Eliminate code duplication in all.tests for depthstencil-render-miplevelsPaul Berry
No functional change. Reviewed-by: Eric Anholt <eric@anholt.net>
2013-03-12Plug the built-in test generator to the CL test list [v2]Aaron Watry
v2: - Generate tests in the generated_tests directory tree at compile time
2013-03-12Add a python generator for integer builtin function tests [v2]Aaron Watry
Functions tested: abs, abs_diff, add_sat, hadd, rhadd, clz, clamp, mad_hi, mad_sat, max, min, mul_hi, rotate, sub_sat, upsample, mad24, mul24 Data Types tested: char, uchar, short, ushort, int, uint, long, ulong Sizes tested: Scalar, Vector sizes 2/4/8/16 v2: - Move file into generated_tests and rename to generate-cl-int-builtins.py - Generate tests in cl/builtin/int (creating dir if necessary)
2013-03-11fbo-maxsize: use piglit_get_gl_enum_name()Brian Paul
2013-03-11fbo-maxsize: minor test improvementsBrian Paul
Clear the large FBO to a non-black color and probe for it in the final test. This uncovers a bug in Mesa's llvmpipe driver where we ran out of bin commmand memory and skipped some tiles, leaving them black. Setting the clear color to white (and actually clearing the FBO) helps to detect that.
2013-03-11framework: document return value of ExecTest::run()Brian Paul
2013-03-11framework: add a few more stderr strings to ignoreBrian Paul
2013-03-10Move re.compile for regex into CoreDylan Baker
Move the re.compile into the core.Enivironment constructor, which reduces code duplication. It also allows us to pass environment data on initilization of the object, rather that having edit it's attributes individually. V2: - Does not remove deprecated options, only marks them as such V3: - Fixes deperecated warning for tests from V2 always being triggered Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-10Replaces getopt with argparseDylan Baker
This change gets us cleaner, more readable argument parsing code. Another advantage of this approach is that it automatically generates help menus, which means options will not be implemented without a help entry (like --resume) V2: - Does not remove deprecated options, only marks them as deprecated V3: - Fixes deprecated warning for tests from V2 always being triggered Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>