summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-02-12xts.py: Hide unfixable pylint errorsDylan Baker1-5/+5
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-02-12xts.py: Use __future__ functionsDylan Baker1-1/+2
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-02-12all.py: fix misnamed testsDylan Baker1-2/+2
At some point OpenGL 3.2 was shortened to OpenGL, which is clearly wrong Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-02-12tests/utils.py: Add a Test derived class for unit testsDylan Baker1-0/+16
This adds a very basic Test class that works for apis that use Test, but provides only no-op implementations. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-02-12test_lists.py: add tests for the cpu and llvmpipe profiles.Dylan Baker1-1/+1
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-02-12test_lists.py: remove tests for r300, r500, and all_cl which are goneDylan Baker1-2/+2
Reviewed-by: Vinson Lee <vlee@freedesktop.org>
2015-02-12vbo parser: add double support to parser code.Dave Airlie1-6/+33
This just adds support for the ARB_vertex_attrib_64bit interface. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-02-10shader_runner: fix dvec ubo uploadsIlia Mirkin1-1/+1
The number of elements is at index 4, not 3 (like in vec) Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
2015-02-10shader_runner: fix parsing float/double hex valuesIlia Mirkin1-4/+4
It seems like when parsing a value like 0xc0d1cbdd371d381f with strtoll, it returns 0x7fffffffffffffff, presumably because it goes out of bounds. I guess this issue didn't happen with float, but seems safe to fix it as well. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
2015-02-09gbm: Limit libcaca size for small testsJordan Justen1-2/+8
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2015-02-09gbm: Use libcaca to determine console resolutionJordan Justen1-0/+9
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2015-02-09gbm: Attempt to size libcaca output to fit the console windowJordan Justen1-4/+37
Take into account the aspect ratio of piglit_width to piglit_height. The assumption is made that the console window is 80 x 24. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2015-02-06gl-1.0-blend: print current blend state if probe failsBrian Paul1-2/+18
Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-02-06cl: Fix tolerance for division in scalar arithmetic testJan Vesely1-7/+7
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-02-05cl: fix clCompileProgram compil error with CL1.1EdB1-0/+6
This fix https://bugs.freedesktop.org/show_bug.cgi?id=86361 Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2015-02-05arb_gpu_shader_fp64: make fs-modf-double require GLSL 1.50Ilia Mirkin1-6/+13
Mesa only exposes fp64 on core profiles. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
2015-02-04cmake: Fix if-command logic on non MSVC.Jose Fonseca1-2/+4
Trivial.
2015-02-04Revert "arb_shader_image_load_store: fix MSVC build"Jose Fonseca2-24/+20
This reverts commit 897b549c0f793385d49f8227e2fe28109a8be74e. Not necessary with MSVC 2013 U4. Reviewed-by: Francisco Jerez <currojerez@riseup.net>
2015-02-04cmake: Require MSVC 2013 Update 4.Jose Fonseca1-3/+3
It has importants fixes to C parser. Reviewed-by: Francisco Jerez <currojerez@riseup.net>
2015-02-03arb_shader_precision: set tolerance for div/assign-divIlia Mirkin1-1/+4
This makes the relevant tests pass on nvc0. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2015-02-03arb_shader_image_load_store: fix MSVC buildBrian Paul2-20/+24
MSVC doesn't seem to like function calls inside struct initializers. Reviewed-by: Francisco Jerez <currojerez@riseup.net>
2015-02-03arb_shader_image_load_store: Import test for atomics with unused result.Francisco Jerez3-0/+180
Test all image atomic built-in functions without using their return value to make sure that they aren't optimized out by the compiler accidentally and because some implementations may use different hardware instructions for the same atomic operation depending on whether the return value of the built-in is used or not.
2015-02-03arb_shader_image_load_store: Import image unit and uniform state tracking tests.Francisco Jerez3-0/+482
Test the image unit and image uniform binding commands and then check that the state query APIs return the expected values for all bound image units.
2015-02-03arb_shader_image_load_store: Import shader memory barrier tests.Francisco Jerez4-0/+226
Test the relative ordering of memory transactions before and after a call to the memoryBarrier() GLSL built-in. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Import built-in semantics tests.Francisco Jerez4-0/+401
Test that image built-in functions do what they are supposed to do by comparing their results with a simulation run on the CPU with similar inputs. The test is repeated for all built-ins, shader stages, formats and texture targets either sequentially or combinatorially depending on the --quick flag.
2015-02-03arb_shader_image_load_store: Import image aliasing test.Francisco Jerez3-0/+181
Test if the implementation is incorrectly assuming that different image uniforms point to disjoint locations in memory, which could lead to incorrect code transformations and break valid GLSL programs.
2015-02-03arb_shader_image_load_store: Import memory access qualifier test.Francisco Jerez3-0/+192
Test that no changes are observed when an optional image qualifier is omitted (e.g. access qualifiers may be omitted, format qualifiers may be omitted when the "writeonly" qualifier is present), and test several combinations of binding access modes and access qualifiers.
2015-02-03arb_shader_image_load_store: Import minimum maximum test.Francisco Jerez3-0/+78
2015-02-03arb_shader_image_load_store: Import test for the maximum texture size.Francisco Jerez4-0/+201
Test that images work as expected up to the maximum texture dimensions reported by the implementation for each target. The test is carried out one dimension at a time to avoid creating huge textures (a 16Kx16K RGBA32F texture is already 4GB), but this is not always possible because e.g. both dimensions of a cubemap necessarily have to be equal. There is a hard-coded limit for the total texture size (which is especially stringent in quick mode) to make sure that the implementation doesn't make us do anything stupid like creating a 32 GB cubemap array texture.
2015-02-03arb_shader_image_load_store: Import tests for the maximum of supported images.Francisco Jerez3-0/+276
Test that the limits of supported image units (GL_MAX_IMAGE_UNITS), per-shader image uniforms (GL_MAX_*_IMAGE_UNIFORMS), and combined image uniforms (GL_MAX_COMBINED_IMAGE_UNIFORMS) are true by setting up a GL pipeline that reaches some of the limits and checking that it renders as expected. v2: Don't assume that the implementation supports images on the vertex/tesselation/geometry shader.
2015-02-03arb_shader_image_load_store: Import test for mipmap level binding.Francisco Jerez3-0/+197
Test that image loads and stores land in the correct mipmap level of the texture when a level other than the first is bound to an image unit.
2015-02-03arb_shader_image_load_store: Import tests for layered and unlayered binding.Francisco Jerez3-0/+223
Test binding of individual layers from a layered texture and the simultaneous binding of all layers (layered binding). For textures targets that don't have multiple layers we just test that the layered and unlayered binding modes have no effect as required by the spec.
2015-02-03arb_shader_image_load_store: Import invalid and undefined image access tests.Francisco Jerez3-0/+487
Test a number of cases like reading or writing outside the limits of the image that the spec defines as being invalid either return zero or have no effect depending on the specific built-in. In addition test that other cases that according to the spec cause undefined results don't lead to program termination.
2015-02-03arb_shader_image_load_store: Import image array indexing test.Francisco Jerez3-0/+176
Test that indexing of image arrays using dynamically uniform expressions works as expected. v2: Add support for shader stages other than fragment.
2015-02-03arb_shader_image_load_store: Import host memory barrier tests.Francisco Jerez4-0/+1067
Add tests for the glMemoryBarrier() API which provides a way to serialize shader memory transactions issued by previous drawing commands with respect to subsequent GL commands. v2: Skip indirect draw and transform feedback tests when the extensions they rely on are not supported. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Import early_fragment_tests test.Francisco Jerez3-0/+300
The extension defines an input layout qualifier that allows the application to force early fragment tests for a specified shader program. This has several consequences that are verified by this test, including that the fragment shader is guaranteed not to be executed if the depth test fails, that the depth value computed by the fragment shader is ignored, and that fragments discarded during or after fragment shader execution are nevertheless counted by occlusion queries. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Import dead fragments test.Francisco Jerez3-0/+251
Test that image stores and atomics have no effect when called from fragment shader invocations that aren't covered by a primitive or have been discarded. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Import memory coherency test.Francisco Jerez4-1/+236
Test the cache coherency of images declared as "coherent" or "volatile" when accessed from different combinations of dependent shader stages. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Import image format bitcasting test.Francisco Jerez3-0/+176
The ARB_shader_image_load_store extension allows the reinterpretation of the binary contents of an existing image as an image of a different compatible format. The resulting values should be predictable and are defined in terms of the usual GL pixel transfer operations. v2: Actually bind the image with the bitcasted format. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Import atomicity image built-in tests.Francisco Jerez3-0/+369
Import a number of tests intended to check if the read-modify-write built-in functions defined by the spec are carried out atomically. v2: Disable the locking imageAtomicExchange test and use a lockless algorithm instead to test the built-in. Avoids GPU hang on Intel hardware. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Add misc. image manipulation code and hook up ↵Francisco Jerez6-0/+784
to the build system. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Import grid execution helpers.Francisco Jerez2-0/+605
Define helper functions that are able to run a piece of GLSL code on an arbitrary shader stage (as of now VS, TCS, TES, GS, FS and CS are supported) for a given execution size. This makes every shader stage expose a consistent interface that looks like a sort of primitive two-dimensional compute grid, with the peculiarity that you can run several stages at the same time and chain the results of one stage into the arguments of the next. This is useful in cases where one needs to run the exact same test on a number of shader stages and using code generators or duplicating code would be inconvenient. v2: Fix crash when generate_program() is called with unsupported shader stage arguments. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03arb_shader_image_load_store: Add common image metadata.Francisco Jerez2-0/+1129
Define helper data structures and functions to query several kinds of information for any supported image format, target or shader stage, like the matching pixel transfer type and format for a given image format, GLSL type information, error tolerance, maximum supported dimensions and samples for a given image dimensionality, number of supported image uniforms for a given shader stage, etc. This also defines the image_info data structure that aggregates some combination of image target, format and dimensions in a single object to avoid having to repeat the same three arguments constantly when working with images. v2: Encode per-image base datatype information in a struct instead of having separate switch-case statements spread over several query functions. Add comment explaining the reason why there are no specific semantics attached to image dimensions. (Ian) Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-03util/shader: Define "nothrow" variant of piglit_compile_shader_text().Francisco Jerez2-2/+19
Define a variant of piglit_compile_shader_text() that doesn't call piglit_report_result() on failure killing the program, which is quite annoying for tests that expect a compilation to fail and for tests that are structured in a number of subtests, because a single sub-test failing to compile a shader will prevent the remaining tests from running. I guess this would ideally be the default behavior of piglit_compile_shader_text(), but with >300 callers in tree it seems rather difficult to change at this stage. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-02ext_polygon_offset_clamp: add simple draw testIlia Mirkin6-0/+336
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2015-02-02add missing whitespace if waffle was not found by cmake (trivial)Felix Schwarz1-1/+1
Reviewed-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-01-30gbm: Use caca_flop to vertically flop the outputJordan Justen1-18/+2
Ken pointed out cucul_flop in the original libcaca patch, but going back to 2008-09-27, r2821, http://caca.zoy.org/browser/libcaca/trunk/caca/caca.h?rev=2821#L251 caca_flop seems to be preferred. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
2015-01-30gbm: Fix off by 1 error in libcaca image flopJordan Justen1-2/+2
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
2015-01-30sso: consume error in active-sampler-conflictTapani Pälli1-0/+2
Test currently fails because INVALID_OPERATION generated by program_pipeline_check_status is not read and piglit_check_gl_error is called for another call later. This change makes the test pass as expected. Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
2015-01-28gen_dispatch.py: silence errorDylan Baker1-1/+1
This script manipulates the python path to get at some modules, because of this pylint gives an error (as opposed to a warning) about not being able to import that module. This patch silences that error. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>