Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
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>
|
|
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.
|
|
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.
|
|
This test verifies that glVertexArrayVertexBuffer works as expected.
v2: Fix an off-by-one in the MAX_VERTEX_ATTRIB_STRIDE test.
|
|
This test verifies that glVertexArrayElementBuffer works as expected.
Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
|
|
This test verifies that glVertexArrayBindingDivisor works as expected.
Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
|
|
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>
|
|
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.
|
|
This test verifies that glEnableVertexArrayAttrib() and
glDisableVertexArrayAttrib() work as expected.
Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
|
|
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)
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Trivial.
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
|
|
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>
|
|
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
|
|
|
|
48 of the generated tests were linker-error failing on vc4 due to
trying to use too many varying components.
|
|
Manually running the command 4 times every time you want to touch the
scripts is terrible.
|
|
|
|
I was going to have to copy/paste the same code for varying components.
|
|
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
|
|
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>
|
|
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>
|
|
Fix out-of-bounds read defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
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>
|
|
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>
|
|
Fix stray semicolon defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
|
|
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>
|
|
Trivial.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
|
|
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>
|
|
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Based on in-parameter-struct-array.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
|
|
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
|