summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-07-29arb_clear_texture: add tolerance to clear-max-level.c testHEADmasterYu Wang1-1/+1
Since we're querying a ubyte image as float values we can't expect exact matches. Reviewed-by: Brian Paul <brianp@vmware.com>
2015-07-29clearbuffer-invalid-drawbuffer: Fix test cases calling glClearBufferiv with ↵Eduardo Lima Mitev1-12/+18
depth buffers Page 497 of the PDF, section '17.4.3.1 Clearing Individual Buffers' of the OpenGL 4.5 spec states: "An INVALID_ENUM error is generated by ClearBufferiv and ClearNamedFramebufferiv if buffer is not COLOR or STENCIL." The affected test is not complying with this wording, and is expecting a GL_INVALID_VALUE when glClearBufferiv is called with a depth buffer but, due to other constrain.
2015-07-29arb_shader_storage_buffer_object: modify tests to use gl_core_version = 32Samuel Iglesias Gonsalvez10-21/+33
Recently, some of them were returning errors on glGetIntegerv() calls for shader storage buffer constants in Mesa because they used GL compat 1.0 version. Some shaders were modified to avoid "GL_INVALID_OPERATION in glDrawArray(No VAO bound)" Mesa errors when calling piglit_draw_rect() with this config. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
2015-07-29arb_arrays_of_arrays: fix simple atomic counters execution testTimothy Arceri1-13/+13
The test was always passing because the if statemants used AND rather than OR. Also some of the array indexes were wrong.
2015-07-29arb_arrays_of_arrays: basic image store execution testsTimothy Arceri2-0/+159
Test results: Nvidia GeForce 840M - NVIDIA 346.47 basic-imageStore-const-uniform-index.shader_test - pass basic-imageStore-non-const-uniform-index.shader_test - pass
2015-07-29arb_arrays_of_arrays: add some sampler indexing execution testsTimothy Arceri18-0/+1117
Test results: Nvidia GeForce 840M - NVIDIA 346.47 fs-const-index-three-dimensions.shader_test - pass fs-const-index.shader_test - pass fs-initializer-const-index.shader_test - fail fs-initializer-non-const-index.shader_test - fail fs-mixed-const-and-non-const-index.shader_test - pass fs-mixed-const-and-non-const-index2.shader_test - fail fs-non-const-index.shader_test - pass fs-struct-const-index-sampler-const-index.shader_test - pass fs-struct-const-index.shader_test - pass fs-struct-non-const-index-const-index.shader_test - pass fs-struct-non-const-index-sampler-non-const-index.shader_test - pass fs-struct-non-const-index.shader_test - pass vs-const-index-three-dimensions.shader_test - pass vs-const-index.shader_test - pass vs-non-const-index.shader_test - pass vs-struct-nonconst-sampler-const.shader_test - pass vs-struct-nonconst-sampler-nonconst.shader_test - pass vs-struct-nonconst.shader_test - pass V3: add missing AoA extensions requirement to some of the tests V2: add vertex shader tests, add most struct tests
2015-07-29arb_arrays_of_arrays: add simple atomic counters execution testTimothy Arceri1-0/+119
Test results: Nvidia GeForce 840M - NVIDIA 346.47: pass
2015-07-29arb_gpu_shader_fp64: test glGetUniformdv interfaceDave Airlie3-0/+201
I must have forgot this way back when, this just ports the getuniform02.c test to glsl 1.50 and tests the fp64 interface. Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au> Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-07-28ext_image_dma_buf: Add tests for R8 and GR88 formats (v2)Chad Versace3-0/+305
Add test that transcodes NV12 to RGBA8 by importing the Y plane as DRM_FORMAT_R8 and importing the UV plane as DRM_FORMAT_GR88. v2: Delete commented-out code. CC: Peter Frühberger <peter.fruehberger@gmail.com> Cc: Rainer Hochecker <rainer.hochecker@onlinehome.de>
2015-07-28arb_get_texture_sub_image-errors: test getting zero-sized imagesBrian Paul1-0/+60
An additional set of checks for: Getting 0x0 image from a 8x8 source. Getting 0x0 image from a 0x0 source. Getting offset+width > texwidth when width==0. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2015-07-28arb_sampler_objects: use piglit_check_gl_error()Brian Paul1-16/+4
Instead of a local helper function. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2015-07-28arb_clear_texture-simple: remove glDeleteTextures()Brian Paul1-1/+0
If the piglit_display() function was called more than once, we'd try to use deleted textures and generate a bunch of GL errors. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2015-07-28GL_ARB_texture_multisample: Test using glClear with a ms render targetNeil Roberts3-1/+226
This creates a mulitsample texture and tries clearing it with glClear via a framebuffer. One of the clears covers the entire texture and the other is clipped to the right half of the texture using a scissor. On the i965 driver the clear that covers the whole of the texture wasn't working in Mesa before commit 765efeef883cdbb86e052acd887e0c3. https://bugs.freedesktop.org/show_bug.cgi?id=79729
2015-07-28point-vertex-id: Test using an instanced attributeNeil Roberts2-12/+67
Adds an option to use an instanced attribute so that it can be tested in combination with glPolygonMode. This demonstrates a bug on the Mesa i965 driver on BDW which was reported as bug #91292. The ‘divisor’ argument can be added in addition to any of the other arguments so that all of the combinations can be test.
2015-07-28point-vertex-id: Additionally test with gl_InstanceIDNeil Roberts2-52/+133
The point-vertex-id test was originally created to test gl_VertexID in combination with glPolygonMode(GL_POINT) because of a bug with the i965 driver in Mesa. The same bug exists with gl_InstanceID and the code for BDW has some extra complications in this case so I think it's worth extending the test to check that as well. The test now takes a command line argument to specify which builtin to test. It can also take both arguments to generate a shader which relies on both.
2015-07-27compressedteximage: bump the texture size to reproduce a radeonsi bug (v2)Marek Olšák1-1/+4
v2: for some reason, the bigger size has more precision issues Reviewed-by: Brian Paul <brianp@vmware.com>
2015-07-27arb_shader_image_load_store/host-mem-barrier: Skip UBO/RaW test if the ↵Francisco Jerez1-1/+10
required UBO size is unsupported. This test assumes it can bind a UBO of size larger than the minimum maximum guaranteed by the GL standard, what recently started causing failures unrelated to ARB_shader_image_load_store since Mesa became more strict about shaders declaring UBOs of unsupported size (f734d2556013e9239e91f43b563b5b1d8f03ada4). Skip it if the implementation doesn't support the size we want. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-07-27arb_tessellation_shader/invalid-primitive: fix the test (missing TCS or TES)Marek Olšák1-16/+4
2015-07-27arb_tessellation_shader/invalid-get-program-params: fix it (missing TCS or TES)Marek Olšák1-8/+7
2015-07-27arb_tessellation_shader/get-tcs-params: fix the testMarek Olšák1-0/+9
2015-07-27arb_tessellation_shader: Add tests for gl_out[] redeclarationChris Forbes4-0/+49
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-07-27arb_tessellation_shader: split barrier-switch testChris Forbes2-0/+45
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-07-27arb_tessellation_shader: test that redeclared barrier() is unrestrictedChris Forbes1-0/+44
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-07-27arb_tessellation_shader: Test array requirements for inputs and outputsChris Forbes10-0/+141
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-07-27arb_tessellation_shader: Add tests for TCS output l-value indexingChris Forbes7-0/+159
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-07-27generated_tests: Test tessellation control shader input.Chris Forbes2-0/+305
for every GLSL variable type, generate two tests. One passes a varying of said type as a scalar from the vertex to the tessellation control shader and one that passes a two-element array. Fill the varying in the vertex shader from a uniform and compare it against the uniform in the tessellation control shader. Draw 4 patches, tessellate each into a quad that fills a quarter of the screen. Also test core profile built-in varyings.
2015-07-27generated_tests: Test tessellation evaluation shader input.Fabian Bieler2-0/+334
For every GLSL variable type, generate four tests. One passes a per-vertex and one a per-patch varying of said type as a scalar from the tessellation control to the tessellation evaluation shader. The two other tests do the same for a two-element array of that type. The varying gets filled in the tessellation control shader from a uniform and compared against the same uniform in the tessellation evaluation shader. Every test draws 4 patches, each of which gets tessellated into a quad that fills a quarter of the screen. Also test core profile built-in varyings in gl_PerVertex.
2015-07-27arb_tessellation_shader: Test global layout qualifiers.Fabian Bieler3-0/+262
Test declaring layout qualifiers in multiple shader objects and check for linking arrays if qualifiers mismatch. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-07-27arb_blend_func_extended: output-location api testTapani Pälli3-0/+94
Linking should fail, test passes on NVIDIA's proprietary driver version 346.59 but crashes currently on i965 driver. v2: include test in all.py Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
2015-07-27arb_gpu_shader_fp64: add test for aligning doubles in transform feedbackDave Airlie3-0/+196
The spec states we must manually align using ARB_transform_feedback3 skips if necessary, so test that works by forcing a double after a float + a skip. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-07-27arb_gpu_shader_fp64: test interleaved transform feedback for doublesDave Airlie3-0/+219
This is based on the interleaved test but adds some doubles to the mix. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-07-27arb_gpu_shader_fp64: check GetTransformFeedbackVaryings returns the correct ↵Dave Airlie3-0/+135
types This just tests we get back the correct GL types from the query. This passes on mesa currently. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-07-27arb_gpu_shader_fp64: add separate transform feedback test.Dave Airlie5-0/+194
Based on the current EXT_transform_feedback/separate.c test this just adds some doubles to the mix. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-07-27piglit/util: add support for probing doubles in a buffer.Dave Airlie2-1/+26
This is needed to test transform feedback with FP64. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-07-26arb_program_interface_query: add missing space to error messageTimothy Arceri1-1/+1
2015-07-23arb_get_texture_sub_image: new tests for GL_ARB_get_texture_sub_imageBrian Paul8-0/+1322
errors.c - test error detection get.c - test glGetTextureSubImage getcompressed.c - test glGetCompressedTextureSubImage cubemap.c - extra tests for getting cubemap images v2: move guts of the tests from piglit_display() to piglit_init(), test cube map arrays. test a few more error cases. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2015-07-23framework: Don't add extra '.' to xz compressed files on shell pathDylan Baker2-2/+5
This modifies a unit test to catch that a test name ends with '.' when it shouldn't, which in turn demonstrates a bug in the xz shell path, where it adds an extra '.' to the end of a filename. This patch fixes that bug as well. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Michel Dänzer <michel.daenzer@amd.com>
2015-07-23framework: fix handling of files with a '.' in the name of the fileDylan Baker2-1/+18
This adds a test and fixes it, so that when specifying a filename like 'foo.json..gz' it will work. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Michel Dänzer <michel.daenzer@amd.com>
2015-07-23framework: add --force to xz compress lineDylan Baker2-1/+22
This adds a test for overwriting an xz file in the non-backports.lzma path, and a fix for overwriting an existing xz file. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Michel Dänzer <michel.daenzer@amd.com>
2015-07-23framework: hide stderr messages from xz binaryDylan Baker1-3/+8
When compressing, if there is an error it will be caught and handled by the framework, with a nice error message. Don't allow xz to spam stderr as well. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Michel Dänzer <michel.daenzer@amd.com>
2015-07-23Test that interpolateAtSample returns different resultsNeil Roberts3-0/+262
Adds a new test for interpolateAtSample which captures the results from the function with each different sample value and ensures that they are all different. This can be done either with a constant or non-constant value depending on whether a command line argument is given. The other tests for interpolateAtSample always use 0 as the sample ID so it's not very thorough. Using non-const sampler IDs isn't implemented in the i965 driver of Mesa but the other tests pass anyway on a release build because it is hardcoded to use sample 0. Reviewed-by: Dave Airlie <airlied@redhat.com>
2015-07-23arb_program_resource: don't try compute enum for tess testsDave Airlie1-1/+0
This fixes this test when run on current mesa. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-07-23arb_program_resource: add vs output to sub test for gsDave Airlie1-0/+2
This allows the program to link and the test to run. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-07-22arb_direct_state_access: allow tests to run with core profileBrian Paul5-0/+5
In Mesa, GL_ARB_direct_state_access is only available with core profile. But since these piglit tests didn't indicate support for core profile, they were skipped. With config.supports_gl_core_version = 31 piglit can create a core profile context and run the test. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2015-07-22ext_packed_float: fix getteximage-invalid-format-for-packed-type testBrian Paul1-1/+14
The GL spec doesn't explicitly say that glGetTexImage should generate GL_INVALID_OPERATION when attempting to retrieve a non-existant texture image, but that's what NVIDIA's driver does. The purpose of this test is to check the format/type parameters, so let's define a packed float texture to avoid the undefined texture situation. Test now passes with NVIDIA. v2: s/sizeof(float)/4/, per Jose Reviewed-by: José Fonseca <jfonseca@vmware.com>
2015-07-22glsl-1.10: exercise variable-indexed arraysBrian Paul1-0/+57
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2015-07-22tex3d-maxsize: print max 3D texture size that's found/testedBrian Paul1-0/+4
2015-07-22ARB_sample_shading: Add test for gl_SampleMask in combination with MRTs and ↵Francisco Jerez3-0/+196
alpha-to-coverage. This test currently fails on the i965 driver because when writing the color output to a non-zero RT it incorrectly passes the sample mask where the alpha component from the zeroth RT should be.
2015-07-22arb_gpu_shader5: Fix rounding instability in UBO and sampler indexing ↵Francisco Jerez2-48/+58
vs-nonuniform-control-flow tests. Fixes a rounding instability that would cause shader_runner to probe pixels offset by one for some points close to the right edge of the window on systems using x87 floating point arithmetic with certain compiler versions (the test seemed to work fine when built with GCC v5.1.0, but failed on some systems with GCC v4.9.2). The reason for the instability was that the default window height and width of 250 pixels was evenly divisible by all fractions used as point coordinates, what would cause the coordinates passed to relative rgba probes to lie precisely on the boundary between four pixels, giving unpredictable results in presence of the slightest rounding error. Instead use a coprime of 10 as window size to guarantee that there's always one fragment closer than the other three. The 1/250 half-pixel offset previously used in the vertex shader now becomes unnecessary because the different fragment locations are sufficient to guarantee consistent rasterization results. This gets rid of the points which had one of the coordinates equal to 0 and replaces them with points close to the top and right edges because they would have necessarily been at a half-integer distance from the closest fragments regardless of the window size. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90993 Reported-by: Mark Janes <mark.a.janes@intel.com> Tested-by: Mark Janes <mark.a.janes@intel.com>
2015-07-22arb_gpu_shader5: Reorder probes in UBO and sampler indexing ↵Francisco Jerez2-42/+42
vs-nonuniform-control-flow tests. So that the ordering of pixel probes matches the ordering of vertex arrays. This should make the next commit easier to review. Reviewed-by: Mark Janes <mark.a.janes@intel.com>