summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2012-11-12Skip testing textures with depth-stencil formats in glGenerateMipmapAnuj Phogat1-4/+18
depth-stencil formats are disallowed in glGenerateMipmap because the stencil component is not filterable. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
2012-11-11glsl-arb-fragment-coord-conventions: fix window size regressionBrian Paul1-13/+31
The test requires a 100x100 rendering. Adjust the viewport and probes to accomodate larger window sizes. Reviewed-by: Marek Olšák <maraeo@gmail.com> Tested-by: Marek Olšák <maraeo@gmail.com>
2012-11-11glsl-orangebook-ch06-bump: fix regression after default window size changeBrian Paul1-3/+14
The pixel probing is very sensitive to the size of the rendering so limit it to 100x100 regardless of window size. Reviewed-by: Marek Olšák <maraeo@gmail.com> Tested-by: Marek Olšák <maraeo@gmail.com>
2012-11-11glsl-kwin-blur: fix regressions after default window size changeBrian Paul2-20/+38
These tests probe specific pixel locations so the 100x100 size can't be changed. Let the window be larger, but just draw to a 100x100 region. Reviewed-by: Marek Olšák <maraeo@gmail.com> Tested-by: Marek Olšák <maraeo@gmail.com>
2012-11-11push-pop-texture-state: a replacement for the fdo9833 testBrian Paul4-16/+8
This updates and renames the fdo9833.c test. Reviewed-by: Eric Anholt <eric@anholt.net>
2012-11-09arb_texture_cube_map_array: add shadow sampler for textureSizeDave Airlie1-1/+1
missed this the first time around. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-09Revert "arb_texture_cube_map_array: textureSize only applies to ↵Dave Airlie1-1/+1
samplerCubeArray." This reverts commit ccde8c37c2c1eb7d1b1b7451677b9f6ce9237591. after talking to Kayden we should always test for this. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-09cubemap-shader: add a cubemap test that checks for lod related issuesDave Airlie3-0/+403
While adding cube map arrays to r600g I noticed no test actually tested whether the explicit lod or lod bias on cubemaps was actually being used. This test is a variant on the cubemap test that contains 3 variants, plain cubemap with shader, cubemap sampling with lod bias cubemap sampling with explicit lod. This test currently fails on r600g due to the bug, which I shall fix soon. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-06ext_texture_array: remove config.window_width/height linesBrian Paul1-2/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06arb_sampler_objects: remove config.window_width/height linesBrian Paul2-4/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06arb_texture_storage: remove config.window_width/height linesBrian Paul1-2/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06ext_fog_coord: remove config.window_width/height linesBrian Paul1-2/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06arb_texture_float: remove config.window_width/height linesBrian Paul1-2/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06arb_map_buffer_range: remove config.window_width/height linesBrian Paul2-4/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06arb_copy_buffer: remove config.window_width/height linesBrian Paul8-16/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06bugs: remove config.window_width/height linesBrian Paul13-26/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06shaders: remove config.window_width/height = 100 linesBrian Paul27-54/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06shaders: remove config.window_width/height = 100 linesBrian Paul65-129/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06security/initialized-vbo: remove config.window_width/heightBrian Paul1-2/+0
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06fbo-gl_pointcoord: remove config.window_width/height and fix asst. bugsBrian Paul1-8/+15
The size of the window and the size of the FBO were mixed up in a few places. Add missing FBO binding calls so the window can be resized. Use an rb_size variable instead of hard-coded 100. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06fbo: remove config.window_width/height assignmentsBrian Paul21-42/+0
Instead of sizes less than 150x150. No regressions seen with new size. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06texturing: remove config.window_width/height assignmentsBrian Paul12-24/+0
Use the default window size. No regressions seen with new size. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06lodclamp-between: set window size to 200x200Brian Paul1-1/+1
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06general: remove more config.window_width/height linesBrian Paul16-32/+0
These tests had window sizes other than 100x100. No regressions seen with new size. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06general: remove config.window_width/height = 100 linesBrian Paul33-66/+0
Use the default from piglit-framework-gl.h No regressions seen with new size. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06util/gl: add default window config of 150 x 150 pixelsBrian Paul1-0/+8
On Win7 windows get resized to the min size of 116x100 pixels (which might depend on the Aero theme, etc). This resize is detected by the piglit framework: Got spurious window resize in automatic run (100,100 to 116,100) PIGLIT: {'result': 'warn'} so we get a 'warn' result instead of actually running the test. This sets a default window size of 150x150 pixels. Next, we'll remove the "config.window_width/height = 100" lines from a bunch of tests. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06piglit: add cube map array compiler tests to all.testsDave Airlie1-0/+3
2012-11-06arb_texture_cube_map_array: textureSize only applies to samplerCubeArray.Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-06arb_texture_cube_map_array: test lod behaviour with cube map arrayDave Airlie3-0/+381
In order to implement cube map array texture sampling, lod and explicit lod need to go via a different route in the driver than normal (at least for gallium drivers, we needed new opcodes). This tests both explicit lod and lod bias shader forms, and checks across two layers. Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-06arb_texture_cube_map_array: sample-cube-map-array-shadow sample from second ↵Dave Airlie1-10/+20
layer This test wasn't actually testing array behaviour at all, so wouldn't catch the case where the layer was getting lost. This modifies the test so that it samples from the second layer, and makes the contents of the first layer incorrect to catch this case. Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-05attribs: Avoid FLOAT/UINT/INT symbols.Vinson Lee1-82/+82
These symbols are defined in the Windows header windef.h. Signed-off-by: Vinson Lee <vlee@freedesktop.org>
2012-11-05util: Fix visual selection when using waffleChad Versace2-6/+13
Only request a visual with alpha if the test requests PIGLIT_GL_VISUAL_ALPHA. When I wrote the waffle backend, I misunderstood the meaning of GLUT_RGBA. I interpreted GLUT_RGBA to indicate a request for a visual with all of RGBA channels present. Actually, it just indicates a request for a visual with RGBA color model, as opposed to GLUT_LUMINANCE and GLUT_INDEX. Fixes regression in fs-texelFetchOffest-2D. Reported-by: Marek Olšák <maraeo@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06attribs: new generic extendable test for immediate-mode style commandsMarek Olšák3-0/+547
This covers some commands from GL2, GL3 (glVertexAttribI*) and GL_ARB_vertex_type_2_10_10_10_rev. Vertex arrays, immediate mode and display lists are tested. Adding test cases for GL_ARB_vertex_attrib_64bit should be easy.
2012-11-05triangle-rasterization(-overdraw): Fix indentation.José Fonseca2-556/+559
Pure white-space change.
2012-10-31crossbar: Replace strtof with strtod.Vinson Lee1-1/+1
MSVC does not have strtof. Signed-off-by: Vinson Lee <vlee@freedesktop.org>
2012-10-31cmake: Build crossbar on all platforms.Vinson Lee1-3/+1
crossbar was converted to piglit framework in commit 968fb70497d37cf0a51fa9d8485287b63d33bf7e. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-31glean: Test glStencilMaskSeparate too.José Fonseca2-22/+151
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-31arb_uniform_buffer_object/deletebuffers: fix the test if UBO isn't supportedMarek Olšák1-2/+2
2012-10-31draw-vertices-2101010: fix testing the alpha channelMarek Olšák1-2/+2
According to the equation from the GL spec: (2c + 1)/(2^b - 1) The signed normalize alpha of zero should be: (2*0 + 1)/(2^2 - 1) = 1/3 = 0.333...
2012-10-30point-line-no-cull: fix array index typoBrian Paul1-1/+1
2012-10-30draw-vbo-bounds: fix comment typoBrian Paul1-1/+1
2012-10-29fp-fragment-position: use auto mipmap generation instead of gluBuild2DMipmaps()Brian Paul1-4/+5
To remove dependency on glu.h Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-29clip-flag-behavior: use piglit_check_gl_error() function instead of local codeBrian Paul1-26/+12
To remove dependency on glu.h Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-29texgrad: use glFrustum() instead of gluPerspective()Brian Paul1-2/+1
To remove dependency on glu.h Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-29util/gl: Fix support for GL 3.1 core contextsChad Versace1-1/+1
Piglit's support for running tests under a GL 3.1 core context never worked. A little typo rendered it broken.
2012-10-29draw-vertices-2101010: test the alpha channel tooMarek Olšák1-12/+13
2012-10-29Add a test for ARB_map_buffer_alignmentMarek Olšák5-0/+111
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-27readpix-z: asst. test improvementsBrian Paul1-16/+100
1. Test glReadPixels(depth) immediately after glClear(depth). 2. Display the depth buffer contents as a grayscale image when not running in automatic mode to aid debugging. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-10-26Add a new GLSL parser test for ? : at global scope.Kenneth Graunke1-0/+8
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-10-26GLX_OML_sync_control: Add new tests.Eric Anholt9-0/+505
I was going to go touch this code in Mesa, then I realised that we didn't have a single test for it. v2: Rebase on Chad's BUILD_* sedjob, and explicitly test various swap intervals. v3: Rewrite wrapping loops. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>