summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-04-03arb_direct_state_access: Add a compatibility-profile draw testarb-direct-state-accessFredrik Höglund3-0/+173
This test verifies that changes to vaobj=0 are applied to the default vertex array object, and not to the currently bound vertex array object. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-04-03arb_direct_state_access: Add a compatibility-profile testFredrik Höglund3-0/+201
This tests behavior specific to the compatibility profile. v2: Fix compiler warnings. Remove a double-negative in a comment. Whitespace fixes. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-04-03arb_direct_state_access: Add a core-profile testFredrik Höglund3-0/+188
This tests behavior specific to the core profile. v2: Fix compiler warnings. Remove a double-negative in a comment. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-04-03arb_direct_state_access: Add a test for glGetVertexArray*ivFredrik Höglund3-0/+287
This test verifies that glGetVertexArrayiv, glGetVertexArrayIndexediv, and glGetVertexArrayIndexed64iv work as expected. v2: Fix the name of the ARB_vertex_attrib_64bit extension. Fix compiler warnings.
2015-04-03arb_direct_state_access: Add a test for glVertexArrayVertexBuffersFredrik Höglund3-0/+370
This test verifies that glVertexArrayVertexBuffers works as expected. v2: Don't query GL_MAX_VERTEX_ATTRIB_STRIDE when GL < 4.4. Add a spec citation explaining per-binding. Update the page numbers to the current version of the GL 4.5 spec. Remove a redundant call to glGetIntegerv. Delete all the buffers at the end of the test.
2015-04-03arb_direct_state_access: Add a test for glVertexArrayVertexBufferFredrik Höglund3-0/+143
This test verifies that glVertexArrayVertexBuffer works as expected. v2: Fix an off-by-one in the MAX_VERTEX_ATTRIB_STRIDE test.
2015-04-03arb_direct_state_access: Add a test for glVertexArrayElementBufferFredrik Höglund3-0/+125
This test verifies that glVertexArrayElementBuffer works as expected. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-04-03arb_direct_state_access: Add a test for glVertexArrayBindingDivisorFredrik Höglund3-0/+121
This test verifies that glVertexArrayBindingDivisor works as expected. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-04-03arb_direct_state_access: Add a test for glVertexArrayAttribBindingFredrik Höglund3-0/+135
This test verifies that glVertexArrayAttribBinding works as expected. v2: Update the page numbers to the current version of the GL 4.5 spec. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-04-02arb_direct_state_access: Add a test for glVertexArrayAttrib[I|L]FormatFredrik Höglund3-0/+807
This test verifies that glVertexArrayAttribFormat, glVertexArrayAttribIFormat and glVertexArrayAttribLFormat work as expected. v2: Update the page numbers to the current version of the GL 4.5 spec. Fix the attribindex parameter in a call to reset_attrib_format(). Fix the name of the ARB_vertex_attrib_64bit extension. Whitespace fixes.
2015-04-02arb_direct_state_access: Add a test for glEnable/DisableVertexArrayAttribFredrik Höglund3-0/+129
This test verifies that glEnableVertexArrayAttrib() and glDisableVertexArrayAttrib() work as expected. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-04-02arb_direct_state_access: Add a test for glCreateVertexArraysFredrik Höglund3-0/+150
This test verifies that glCreateVertexArrays works as expected. v2: Update the page numbers to the current version of the GL 4.5 spec. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net> (v1)
2015-04-02dsa/utils: Add check_vbo_binding()Fredrik Höglund2-0/+27
This function returns true if the VBO binding of the given index matches the expected values, and false otherwise. An error message is printed if the actual parameter values don't match the expected values. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-04-02dsa/utils: Add check_indexed_vao_param()Fredrik Höglund2-0/+24
This function returns true if the given parameter matches the expected value, and false otherwise. An error message is printed if the parameter value doesn't match the expected value. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
2015-03-31glsl-1.10: Add vec4 test for gl_FrontFacing ternary usage.Tapani Pälli1-0/+24
Test try_opt_frontfacing_ternary optimization when type is vec4, this test fails with current Mesa HEAD (ce83a6e). Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2015-03-30cl: Enable required extension before using double typeJan Vesely2-4/+4
Fixes failures on OCL-1.1 implementations that provide cl_khr_fp64 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-03-30tests/all: Fix Windows exclusion of GLX tests.Jose Fonseca1-2/+1
Trivial.
2015-03-30glsl-1.50: don't do link check in gs-also-uses-smooth-flat-noperspective.geomSamuel Iglesias Gonsalvez1-1/+1
From GLSL 1.50 spec, section 4.3.4 "Inputs": "Only the input variables that are actually read need to be written by the previous stage" [...] "Geometry shader input variables get the per-vertex values written out by vertex shader output variables of the same names." As there is not vertex shader that defines the respective output variables, this test should fail when linking. However, as it is checking that smooth and flat interpolation qualifiers are allowed in geometry shaders, this patch disables link checking. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2015-03-30arb_arrays_of_arrays: fix output sizeTimothy Arceri1-2/+3
Fix array sizes so that the arrays are not larger than the minimum implementation requirement of GL_MAX_VERTEX_ATTRIBS. Also assign something to the output so that its marked as used. The minumum for GL_MAX_VERTEX_ATTRIBS is 64. Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2015-03-30glsl-es-1.00: add test for constant-index-expression indexingTapani Pälli1-0/+24
v2: array size is 2, not 1 (Matt Turner) This test fails with current Mesa HEAD (6264348), see bug https://bugs.freedesktop.org/show_bug.cgi?id=84225. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2015-03-28glsl-1.50: check read only interfaces are read onlyTimothy Arceri4-0/+80
Test results: AMD Radeon HD 6670 - Catalyst 14.501.1003 OpenGL 4.4 interface-block-instance-name-input-read-only.frag - pass interface-block-input-read-only.frag - pass interface-block-instance-name-uniform-read-only.frag - fail interface-block-uniform-read-only.frag - fail Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Mark Janes <mark.a.janes@intel.com>
2015-03-26gl-2.0: port const vertex attrib webgl test to piglitIlia Mirkin3-0/+138
This is a rip off of: https://www.khronos.org/registry/webgl/conformance-suites/1.0.2/conformance/attribs/gl-vertex-attrib-render.html Which presently fails with gallium drivers. The logic is identical, just ported to GL and piglit infra. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-03-26glsl-1.20: add test to tickle copy propagation bug in st/mesaIlia Mirkin1-0/+99
The copy propagation pass didn't properly deal with arrays, which caused it to merge b[1] and a[1] even though a[1] is modified after the initial assignment. Test taken verbatim from https://www.khronos.org/registry/webgl/conformance-suites/1.0.2/conformance/ogles/GL/functions/array_float_frag.frag Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
2015-03-26cl: add atan2pi testJan Vesely1-0/+11
copied from atan2 tested on clover and intel ocl-sdk Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-03-26cl: add asinpi testJan Vesely1-0/+10
copied from asin tested on clover and intel ocl Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-03-26cl: add acospi testJan Vesely1-0/+10
copied from acos. tested on clover and intel ocl Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-03-26igt.py: don't check the environment when in dry-run modeThomas Wood1-1/+1
Don't exit during the pre-run hook if the environment check fails and dry-run mode is enabled. Signed-off-by: Thomas Wood <thomas.wood@intel.com> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2015-03-26profile.py: pass options to the pre-run and post-run hooksThomas Wood3-6/+10
Signed-off-by: Thomas Wood <thomas.wood@intel.com> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2015-03-25arb_color_buffer_float: Don't try to use MRT if number of draw buffers is 1.Eric Anholt1-5/+13
The ARB_draw_buffers spec allows GL_MAX_DRAW_BUFFERS == 1, which means that our GL_COLOR_ATTACHMENT1 usage will throw a GL error. Fixes ARB_color_buffer_float/GL_RGBA8-queries on VC4. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-03-25arb_color_buffer_float: Actually use the enum names.Eric Anholt1-6/+10
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-03-25variable-indexing: Re-run code generation and commit.Eric Anholt216-0/+216
2015-03-25variable-index-read/write.sh: Emit requirements for varying floats.Eric Anholt2-0/+17
48 of the generated tests were linker-error failing on vc4 due to trying to use too many varying components.
2015-03-25variable-index-read/write.sh: Add a script for regenerating all of them.Eric Anholt1-0/+12
Manually running the command 4 times every time you want to touch the scripts is terrible.
2015-03-25shader_runner: Add support for checking for max varying components.Eric Anholt1-0/+11
2015-03-25shader_runner: Generalize the check for vert/frag uniform components.Eric Anholt1-22/+29
I was going to have to copy/paste the same code for varying components.
2015-03-25tex-miplevel-selection: Fix textureProj failures due to precision errorsIago Toral Quiroga1-4/+4
The textureProj tests multiply expected texture coordinates by the projector in advance so that when the driver does the division we obtain the same coordinates. However, the division can lead to small rounding errors that can affect the selected layer and fail the tests. This is currently happening on Intel hardware for all projector tests involving 3D textures. When we test a 3D texture for texture level 0 we have 32 layers, which means that each layer takes 1/32 = 0.03125 space in the [0, 1] texture coordinate space. The test uses 0.5 for the Z coordinate, which is exactly the boundary between layers 15 and 16 (16 * 0.03125 = 0.5). Because we first multiply 0.5 by the projector in CPU and then we divide the coordinate by the driver in the GPU, the result may be subject to rounding/precision errors and if the result of this operation is even slighly smaller than 0.5 the hardware will select layer 15 instead of layer 16, leading to the test failures we currently see, at least on Intel hardware, for all piglit tests that involve textureProj with 3D textures. The patch prevents this rounding from affecting the result of the test by using 0.51 as the target texture coordinates instead of 0.5. Because 0.51 is 0.01 into layer 16, we are giving a small room for rounding/precision errors that won't lead the hardware to select a different layer. This fixes all projector tests on Intel hardware: bin/tex-miplevel-selection *ProjGradARB 3D -fbo -auto bin/tex-miplevel-selection *ProjLod 3D -fbo -auto bin/tex-miplevel-selection textureProj 3D -fbo -auto bin/tex-miplevel-selection textureProjGrad 3D -fbo -auto bin/tex-miplevel-selection textureProjGradOffset 3D -fbo -auto bin/tex-miplevel-selection textureProjOffset 3D -fbo -auto bin/tex-miplevel-selection "textureProj(bias)" 3D -fbo -auto bin/tex-miplevel-selection "textureProjOffset(bias)" 3D -fbo -auto Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81405
2015-03-24arb_direct_state_access: Remove unused variables.Vinson Lee1-2/+0
Fix Clang unused-const-variable warnings. gettransformfeedback.c:84:22: warning: unused variable 'out1_ret' [-Wunused-const-variable] static const GLfloat out1_ret[NUM_INPUTS] = { 0.0, 1.0, 2.0, 4.0}; ^ gettransformfeedback.c:85:22: warning: unused variable 'out2_ret' [-Wunused-const-variable] static const GLfloat out2_ret[NUM_INPUTS] = {-2.0, 0.0, 2.0, 6.0}; ^ Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-24fs-discard-exit-2: Fix Clang absolute-value warnings.Vinson Lee1-2/+2
fs-discard-exit-2.c:118:13: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value] int dx = fabs(sx - x / 8); ^ fs-discard-exit-2.c:118:13: note: use function 'abs' instead int dx = fabs(sx - x / 8); ^~~~ abs fs-discard-exit-2.c:119:13: warning: using floating point absolute value function 'fabs' when argument is of integer type [-Wabsolute-value] int dy = fabs(sy - y / 8); ^ fs-discard-exit-2.c:119:13: note: use function 'abs' instead int dy = fabs(sy - y / 8); ^~~~ abs Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-24arb_pipeline_statistics_query-comp: Fix out-of-bounds reads.Vinson Lee1-3/+3
Fix out-of-bounds read defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-24arb_direct_state_access: Ignore scanf return value.Vinson Lee1-1/+1
Silence unchecked return value from library defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-24glsl-1.50-geometry-primitive-id-restart: Add NORETURN attribute to ↵Vinson Lee1-1/+1
print_usage_and_exit. Fix uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-24util/ktx: Remove stray semicolon.Vinson Lee1-1/+1
Fix stray semicolon defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2015-03-24glsl-1.50/execution/geometry: Fix out-of-bounds read.Vinson Lee1-1/+1
Fix out-of-bounds read defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2015-03-24backends_tests.py: Skip tests that require lxml if lxml isn't installedDylan Baker1-0/+3
Trivial. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-24Fix shader test for gl_FragCoord redeclarationGuo, Johney1-4/+2
V2 by Anuj Phogat: Changed the subject of patch and modified the comment in test case. Khronos Bug# 12957 Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2015-03-24framework: Use GLUT_3_2_CORE_PROFILE on MacOSX.Jose Fonseca1-1/+21
Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-24framework: Don't warn about using deprecated GLUT functions on MacOSX.Jose Fonseca1-0/+5
Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-24cmake: Silence CMP0042 warnings on MacOSX.Jose Fonseca1-0/+5
Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-24samplers: add a test that has a sampler array inside of a structIlia Mirkin1-0/+39
Based on in-parameter-struct-array. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
2015-03-24glsl-1.20: test intrastage linking with const arraysTapani Pälli1-0/+22
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>