summaryrefslogtreecommitdiff
path: root/tests/texturing
AgeCommit message (Collapse)AuthorFilesLines
2009-02-14New test: getteximage-simpleNicolai Haehnle2-0/+133
Upload a texture with random data, use it in rendering, and attempt to read the texture data back with glGetTexImage. This catches yet another r300+bufmgr regression that was found via Sauerbraten. Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-14texdepth: Fix uninitialised variableNicolai Haehnle1-1/+1
This exceedingly silly bug caused false negatives in the test results... Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2008-12-17Test NPOT and rectangle texturesIan Romanick1-31/+120
2008-12-03Add a divided-into-quarters path to the copytexsubimage test.Eric Anholt1-37/+76
This catches issues with offset handling that were missed by the original path that copied the whole teximage at once.
2008-11-06Fixes for Cygwin by YaakovNicolai Haehnle1-2/+2
This patch fixes a few issues with piglet on Cygwin/X (which uses Mesa for OpenGL): 1) Cygwin requires that all dependencies be explicitly passed in dependency order during linking. This means that static libraries must precede the shared libraries on which they depend. 2) Cygwin defines log2 as a macro instead of a function. 3) Cygwin doesn't provide lspci(8).
2008-08-21New test: texturing/gen-teximage.Eric Anholt2-0/+210
Tests SGIS_generate_mipmap versus glTexImage2D. Catches a mesa bug with updating GL_GENERATE_MIPMAP state without flushing.
2008-08-21Clean up gen-texsubimage: remove sleep in auto case, and use probe util func.Eric Anholt1-33/+2
2008-08-20New test: texturing/gen-texsubimageEric Anholt2-0/+220
Tests that SGIS_generate_mipmap occurs after TexSubImage. Catches bug #17077.
2008-08-15New test: texturing/tex3dNicolai Haehnle2-0/+252
This is a very basic test that creates 3D textures of varying sizes, renders them and compares the results with expected results. It's still quite incomplete, e.g. a test for TexSubImage and mipmapped textures is still missing.
2008-08-08New test: texturing/texredefineNicolai Haehnle2-0/+256
Test some texture redefinition scenarios: Switching between different texture sizes & mipmapping enable/disable
2008-07-16Add a test for glCopyTexSubImage2D.Eric Anholt2-0/+170
Reveals problems on i965 accelerated copytexsubimage when using i915 code.
2008-07-04texturing/texdepth: Check that homogenous divide works as expected.Nicolai Haehnle1-22/+33
2008-06-30Cleanup/Code sharing: Use piglit-util functions in a number of placesNicolai Haehnle1-7/+1
2008-06-30texturing/lodbias: Aesthetics and a todo note (too lazy/tired right now).Nicolai Haehnle1-0/+6
2008-06-30New test: texturing/lodbiasNicolai Haehnle2-0/+346
Old implementation of r300 driver fails this test.
2008-06-20Various fixes by Brian Paul.Nicolai Haehnle2-3/+8
Quote from his description: In fp-fragment-position.c the 4th fragment program uses fragment.position to index a 2D texture. Since all the fragment positions are integers > 1 the default GL_REPEAT texture wrap mode converts all the texcoords to zero. Actually, though, that's not true. Because of the way texcoords are processed, the fractional part of the coords is not always zero but some epsilon value. That caused us to sample with different texcoords than the test expects. I think it's more useful to scale the fragment position to put it into the nominal [0,1] range to get a color that varies per pixel. My patch does that, and adds some assorted comments to the code. --- In fp-list-mask.c and texrect-many.c and texdepth.c I added GLUT_ALPHA to glutInitDisplayMode(). We had failures because GLUT was sometimes choosing visuals without an alpha channel. --- < The logic in vp-bad-program.c was incorrect. When glProgramString() is called with an invalid program, we raise an error, but the previous program (if any) stays in effect. So the subsequent glBegin() would never raise an error. The proper way to check for glBegin raising an error with an invalid program is to simply bind a non-existant program. I made the same fix in glean a while ago. There's still some other failures I need to look into (and I'm not sure where the faults are) but I need to move onto some other things now.
2008-06-13New test: texturing/texdepthNicolai Haehnle2-0/+423
Very basic test of - ARB_depth_texture - ARB_shadow - ARB_shadow_ambient - EXT_shadow_funcs
2008-06-07r300-specific test r300/cubemap-relaxNicolai Haehnle1-3/+11
Relaxed version of texturing/cubemap, intended to watch for major cubemap regressions until we can figure out how to pass the texturing/cubemap test.
2008-06-06texturing/cubemap: Control size and mipmapping in demo mode via keyboard.Nicolai Haehnle1-2/+31
2008-06-01New test: texturing/texrect-manyNicolai Haehnle2-0/+210
This test uses the maximum number of texture_rectangle textures simultaneously. The current R300 driver fails this test because it generates unnecessary texture indirections for rectangle textures.
2008-03-21Fix 1x1 size in the cube mapping test.Eric Anholt1-4/+8
2008-03-19Add a test for ARB_texture_cube_mapEric Anholt2-0/+396
This test has seen only limited testing. The GM945 driver fails in the expected way from code inspection. More concerning is that Mesa software appears to select a mipmap one level smaller than it should.