summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-05-19stencil_texturing: Add test for layered miptreestencil_textureTopi Pohjolainen3-0/+272
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2016-05-19stencil_texturing: Use piglit_depth_texture()Topi Pohjolainen1-34/+6
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2016-05-19util: Add stencil support to piglit_depth_texture()Topi Pohjolainen4-13/+34
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2016-05-19util: Add support for vertical gradient in piglit_depth_texture()Topi Pohjolainen4-15/+63
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2016-05-19util: Refactor depth level setupTopi Pohjolainen1-38/+49
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2016-05-19util: Refactor data generation for depth levelsTopi Pohjolainen1-17/+25
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2016-05-19stencil_texturing: Allow testing of texelFetch alsoTopi Pohjolainen2-9/+43
CC: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2016-05-19texsubimage-depth-formats: Check for missing float depth support.Eric Anholt1-4/+10
Fixes spurious failure on vc4, which only does unorm depth. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-05-19shader_runner: Initialize gl_max_varying_components more often.Eric Anholt1-1/+2
Back in the day it was called MAX_VARYING_FLOATS, which is an alias for MAX_VARYING_COMPONENTS. Fixes a bunch of varying-components tests skipping on vc4. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-05-19arb_enhanced_layouts: fix component layout tests for structsTimothy Arceri2-2/+2
2016-05-19arb_enhanced_layouts: test layout componet qualifier between multiple stages ↵Timothy Arceri1-0/+106
with SSO
2016-05-19arb_uniform_buffer_object: Add AoA support to random test generation scriptTimothy Arceri2-82/+144
Cc: Ian Romanick <ian.d.romanick@intel.com>
2016-05-19arb_enhanced_layouts: vertex shader input component layout qualifier testTimothy Arceri1-0/+57
Test results: Nvidia GeForce 840M - NVIDIA 352.41: fail Using the component qualifier on a vertex input array seems to uncover a nasty bug on the Nvidia driver. The explict location ends up getting changed for some reason.
2016-05-17xor-copypixels: simple test of glCopyPixels in XOR modeBrian Paul3-0/+134
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2016-05-17framework: Don't report an error message for fast skippingDylan Baker1-2/+4
Piglit has a number of mechanisms for fast skipping, some for GL features, some for platform support, and some other things. It puts a nice little message in stdout to let the developer know why it skipped, but currently that message includes something to the effect of "This is an unhandled exception", which it isn't it's being handled appropriately. This patch fixes that. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-05-17util: Suppress OpenCL deprecation warningsDylan Baker1-0/+5
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Serge Martin <edb+piglit@sigluy.net>
2016-05-17tests/cl: Fix pointer warningDylan Baker1-1/+2
clCreatProgramWithBinary expects a "const unsigned char **", but the code passes an "unsighed char **". This is a particular kind of messiness that is hard to fix, so just cast when passing into clCreateProgramWithBinary. Thanks to idr and Matt for help getting this right. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Serge Martin <edb+piglit@sigluy.net>
2016-05-17spec/glsl-es-1.00/linker: test pass cases for invariant conditionsLars Hamre2-0/+55
These test the cases where gl_FragCoord and gl_PointCoord are allowed to be declared invariant. Signed-off-by: Lars Hamre <chemecse@gmail.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2016-05-17cl: add global offset testJan Vesely1-0/+85
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Serge Martin <edb+piglit@sigluy.net>
2016-05-17cl: add support for global offsetJan Vesely11-15/+56
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Serge Martin <edb+piglit@sigluy.net>
2016-05-17util: Add array_index support to [vertex data] (v2)Andres Gomez1-34/+133
This allows data to be set for arbitrary array sized attributes in shader runner. For example to set mat2x3[2]: attname[0]/mat2x3/3/1 attname[0]/mat2x3/3/2 attname[1]/mat2x3/3/1 attname[1]/mat2x3/3/2 The syntax has been extended so the recommended type to specify in the [vertex data] header line is the GLSL corresponding one, not just "float", "double", "int" or "uint". In any case, the extended syntax is backward compatible so it is still possible to specify a vec3 attribute like: attname/float/3 In addition to the now recommended format: attname/vec3/3 v2: Added more verbose comments and documentation as requested by Alejandro Piñeiro. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Signed-off-by: Andres Gomez <agomez@igalia.com>
2016-05-16glslparsertest: Handle compute and tessellation shaders in ES.Kenneth Graunke1-23/+18
We apparently have some generated parser tests for ES 3.x extensions that use compute shaders. These didn't work because glslparsertest didn't actually support these features. For example, spec/oes_sample_variables/preprocessor/enabled-es.comp failed as soon as I enabled the OES_sample_variables extension. v2: Use 40, not 43 for tessellation versions (thanks Ilia!) Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2016-05-16framework/results: Fix subtests masking crashesDylan Baker1-2/+5
In piglit when a test generates subtests we treat the "worst" subtest as the test status, and in most cases this works as expected. There is at least one case where this is not correct, and that is the case of crash. There are a couple of reasons that crash should not be masked. One is that it is generated by the framework when the test binary hits an assert or segfaults, or any number of similar cases. The second is that it may mean that all of the subtests did not run, as such we don't want the status to be masked by the "worst" subtest which would be fail at worst. This is maybe not the strictly correct way to handle this. Probably the better solution is to include the overall result in the max call if the overall result is not NOTRUN. But this fixes the problem and that can be done later. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Brian Paul <brianp@vmware.com>
2016-05-16unittests: Add a test case to ensure subtests don't mask crashesDylan Baker1-0/+13
Currently a test can crash, but if some subtests have a better status then the status will be the worst of the subtests. This isn't correct behavior because 'crash' is a framework generated status, not a status that the runner itself generates. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Brian Paul <brianp@vmware.com>
2016-05-15arb_gpu_shader_fp64: Fix "undeclared identifier 'uint'" build error.Vinson Lee2-4/+4
vs-non-uniform-control-flow-packing.c:91:2: error: use of undeclared identifier 'uint'; did you mean 'rint'? uint d0[2] = {0x0, 0x40000000}; ^~~~ rint /usr/include/math.h:482:15: note: 'rint' declared here extern double rint(double); ^ Fixes: c956a3ff3243 ("arb_gpu_shader_fp64: Add tests to check non-uniform-control-flow writes") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
2016-05-14arb_gpu_shader_fp64: Add tests to check non-uniform-control-flow writesSamuel Iglesias Gonsálvez12-0/+1610
They are use to detect if a bug in i965 driver related to operations working with doubles under non-uniform control flow is still happening. v2: - Remove empty lines, fix GLSL versions and minor changes (Andrés) Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Andres Gomez <agomez@igalia.com>
2016-05-13Add more ARB_cull_distance testsKristian Høgsberg Kristensen14-153/+441
This adds a handful simpler tests for ARB_cull_distance. Instead of the uncessarily complicated math in the old tests, we just set the distances based on gl_VertexID. That way we can reliably select which triangles to cull and/or clip and where we clip them. We also replace fs-cull-and-clip-distance-exceed-max.shader_test with a C test so we can properly catch the specified compile or link error when one of the array sizes or the sum of their sizes exceed the limits. Reviewed-by: Dave Airlie <airlied@redhat.com>
2016-05-13generators: gen_extensions_defined.py: fix typo in extension nameDylan Baker1-1/+1
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-05-13arb_cull_distance: fix tests after my last changes.Dave Airlie2-2/+2
I think we probably need to rework these tests and make sure they are testing what they say. Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-05-13arb_cull_distance: simplify tests.Dave Airlie6-15/+10
Some of these now fail on r600 before I implement cull distances
2016-05-12Require ARB_shader_precision in ARB_shader_precision tests.Kenneth Graunke6-0/+6
These require GLSL 400 + ARB_shader_precision. They could instead required GLSL 410. But only requiring GLSL 400 doesn't do what you want. Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-05-12.gitignore: add compile_commands.jsonDylan Baker1-0/+1
Which can be generated by cmake and used by clang_check.
2016-05-11arb_gpu_shader_fp64: Adds conversion tests generatorAndres Gomez26-195/+942
Also, removed 5 redundant tests replaced by the generator. Reviewed-by: Antia Puentes <apuentes@igalia.com> Acked-by: Dylan Baker <baker.dylan.c@gmail.com> Signed-off-by: Andres Gomez <agomez@igalia.com>
2016-05-10arb_query_buffer_object: Fix format-security warning.Vinson Lee1-1/+1
qbo.c: In function ‘run_subtest_and_present’: qbo.c:269:2: warning: format not a string literal and no format arguments [-Wformat-security] piglit_report_subtest_result(r, subtest_name); ^ Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2016-05-10multisample/formats: Check for spec-complient integer resolvesJason Ekstrand1-41/+157
The i965 driver has historically done integer multisample resolves with a sort of integer averaging operation. The spec used to not really say anything at all about integer formats when discussing multisampling. Since the tests were written, the spec has been substantially clerified. The new rule is that integer MSAA resolves are supposed to pick a single arbitrary sample for each texel rather than trying to combine them in any way. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-05-10util/fbo: Add support for textures with target GL_TEXTURE_2DJason Ekstrand2-7/+15
We used to always use GL_TEXTURE_RECTANGLE which we may not actually want. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-05-10piglit-print-commands: Add --format optionDylan Baker1-2/+20
This option allows the format of the output string to be modified by passing a command line argument. This allows for specialized formats to be printed for other uses than the original usage that print-commands was designed for. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2016-05-10framework: Add piglit-print-commands to the piglit commandDylan Baker3-84/+119
This is mostly just restructuring code so that piglit-print-command works like the other piglit-* commands, calling back into the same module that the main piglit application does. This allows the addition of the 'piglit print-cmds' for those who prefer that (or who use an installed piglit and don't have piglit-*. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2016-05-10framework/profile: Fail gracefully when reordering of tests failDylan Baker1-2/+9
Currently if a test name is passed that doesn't exist in the first profile a stack trace will be generated. This isn't necessary, since it's an expected behavior that reordering fails when asked to order a test not contained in the profile. Instead just fail gracefully with a helpful message. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2016-05-10tests/sanity: Make test group and name match the one in all.pyDylan Baker1-1/+1
This test has an extra instance of it's name in the sanity profile when compared to the all profile. Make them the same between the two profiles. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2016-05-10tests: Silence unused variable warningDylan Baker1-1/+1
vs and fs are unused in this function. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2016-05-09arb_shader_storage_buffer_object: memory qualifier tests for named blocksEduardo Lima Mitev4-0/+60
There are missing tests to check for readonly and writeonly memory qualifiers on a named interface block. And Mesa is actually failing to apply these qualifiers right now. v2: (Ilia Mirkin) Put each test case into its own shader file. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-05-09Fix asprintf warningsMarek Olšák78-158/+158
2016-05-09util: fix warningsMarek Olšák3-1/+8
2016-05-09util: fix regression with ubyte probingMarek Olšák1-5/+18
clearbuffer-mixed-format regressed, because GL_RED_BITS doesn't have anything to do with the read buffer.
2016-05-09cl: check for image support using util/ functionsSerge Martin5-79/+5
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2016-05-09cl: add image support checking functionsSerge Martin2-0/+46
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2016-05-06framework/backends/junit: Fix invalid JUnit outputDylan Baker1-2/+2
In commit b0d05323e code was added to produce clearer error messages for tests who's status changed from crash to fail and vice versa. There is a not so subtle bug in that patch, it adds a "crash" element, but that element should be an "error" element. This patch fixes that bug. cc: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Mark Janes <mark.a.janes@intel.com> Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com
2016-05-06cl: Fix cl_khr_fp64 checksJan Vesely2-3/+6
v2: fix sizeof test v3: OCL1.0 is OK with extension : enable Signed-off-by: Jan Vesely <jano.vesely@gmail.com> Reviewed-by: Serge Martin <edb+piglit@sigluy.net>
2016-05-05Revert "tests/all.py: Use TESTS_DIR for functions that don't have it"Dylan Baker1-31/+27
This reverts commit 0d3742cde7a46446cdbc75c1444c32feb15baa80. This breaks because the C and python layers fight for who does what.