summaryrefslogtreecommitdiff
path: root/tests/texturing
AgeCommit message (Collapse)AuthorFilesLines
2018-06-20getteximage-simple: Stress an i965 blitter pathNanley Chery1-8/+17
Change the dimension of the texture to test how i965 handles having a row pitch too large for the BLT engine. v2: Query the maximum supported texture width (Ilia Mirkin) Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2018-06-20getteximage-simple: Allow configurable texture parametersNanley Chery1-19/+35
We'd like to increase the pitch of the texture in the next patch. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2018-06-20getteximage-simple: Switch to parameter passingNanley Chery1-8/+7
This will enable dynamically allocating the texture data with variable texture dimensions. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2018-06-20getteximage-simple: Fix the coordinate printfNanley Chery1-1/+3
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2018-06-08textureGather: Use piglit_probe_rect_rgba_varyingJason Ekstrand1-6/+5
Instead of doing 900 piglit_proble_pixel_rgba calls (one for each pixel) which each call glReadPixels, use the new helper which only invokes glReadPixels once. Reviewed-by: Eric Anholt <eric@anholt.net>
2018-04-05tex-srgb: Drop unused variables and a stale commentNanley Chery1-13/+8
2018-04-05tex-srgb: Also test a cleared textureNanley Chery1-16/+29
Test sRGB texturing on a cleared texture. This case is of interest to Intel GPUs, which will fast-clear the texture.
2018-03-08s3tc-targeted: Execute every test caseNanley Chery1-4/+4
Continuing to run the tests after one fails provides helpful information when debugging. Suggested-by: Ian Romanick <idr@freedesktop.org> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2018-03-05s3tc-targeted: Reduce requirements to the minimal setNanley Chery1-4/+4
Enable this test to run on more system configurations. Suggested-by: Ian Romanick <idr@freedesktop.org> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
2018-01-11teximage-colors: accept -127 instead of -128 for exact snorm up/downloadRoland Scheidegger1-4/+36
-128 and -127 represent exactly the same value (-1.0) for snorm8 values, as do -32768/-32767 for snorm16. Therefore it seems quite reasonable that an implementation would return the other representation (in particular r600 will do this with a blit, and the snorm->float->snorm conversion implied by this will never return the -128/-32768 values). Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-04textureSize: add ability to test tess eval stageRoland Scheidegger3-7/+75
This is a problem of all texturing tests, they cannot exercise the tesselation stages. (But I'm too lazy to fix the others, and too lazy to hack something up for tcs stage, I only need it to verify a bug/fix with r600 buffer textures.) v2: add to all.py so it is actually run (all in all there's about 40 addtional tests run) Reviewed-by: Fabian Bieler <fabianbieler@fastmail.fm>
2018-01-03fbo-formats: Remove GLenum stringification macros.Fabian Bieler4-5/+8
Replace GLenum stringification macros with calls to piglit_get_gl_enum_name. V2: Make sure GL 1.0 legacy internal formats '3' and '4' are logged correctly. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-03util/sized-internalformats: Remove GLenum stringification macros.Fabian Bieler1-1/+2
Replace GLenum stringification macros with calls to piglit_get_gl_enum_name. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-03texturing-texwrap: Remove GLenum stringification macros.Fabian Bieler1-185/+185
Replace GLenum stringification macros with calls to piglit_get_gl_enum_name. Also replace string comparison between command line argument and GLenum name with call to piglit_get_gl_enum_from_name and integer comparision. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-03compressedteximage: Remove GLenum stringification macros.Fabian Bieler1-27/+28
Replace GLenum stringification macros with calls to piglit_get_gl_enum_name. Also replace string comparison between command line argument and GLenum name with call to piglit_get_gl_enum_from_name and integer comparision. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-03teximage-colors: Remove GLenum stringification macros.Fabian Bieler1-71/+70
Replace GLenum stringification macros with calls to piglit_get_gl_enum_name. Also replace string comparison between command line argument and GLenum name with call to piglit_get_gl_enum_from_name and integer comparision. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-03texture packed formats: Remove GLenum string literals.Fabian Bieler1-66/+48
Replace GLenum string literals with calls to piglit_get_gl_enum_name. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-03texture-al: Remove GLenum string literals.Fabian Bieler1-8/+11
Replace GLenum string literals with calls to piglit_get_gl_enum_name. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-03Remove GLenum string literals.Fabian Bieler1-27/+27
Replace GLenum string literals with calls to piglit_get_gl_enum_name. This commit modifies all tests were the replacement is simple and straightforward. Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-12textureGather: add new options for testing mirror address modesRoland Scheidegger1-1/+28
The existing repeat and clamp modes are easy to implement. The mirror_repeat (GL_MIRRORED_REPEAT) and mirror_clamp (GL_MIRROR_CLAMP_TO_EDGE) modes however have some very interesting differences to "gather is just the same as bilinear filtering without the actual filtering". In particular, a bilinear filter implementation can cut a lot of corners wrt texel selection as it doesn't need to maintain texel order (as long as the weights follow the same order) and can even pick different samples (as long as they have weight 0). So, test these modes too. I used this for fixing llvmpipe, passes with nvidia blob too (the test actually always hits exactly the cases where one texel would have weight 0). Reviewed-by: Brian Paul <brianp@vmware.com>
2017-08-28textureGather: correct expected result for ↵Neha Bhende1-19/+31
GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 1 Expected results were with respect to GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 4. This patch fixes it for GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 1 as well. Reviewed-by: Brian Paul <brianp@vmware.com>
2017-08-08texturing: set KHR_no_error statusTimothy Arceri67-48/+119
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2017-08-08texturing: remove empty testTimothy Arceri1-35/+0
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2017-08-08texelFetch: set KHR_no_error statusTimothy Arceri1-0/+1
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2017-06-07TexSubImage1D tests: set KHR_no_error statusTimothy Arceri2-0/+2
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2017-06-07texturing/tex3d-maxsize: set KHR_no_error statusTimothy Arceri1-0/+1
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2017-06-01teximage-errors: Fix comment formatting after previous commitIan Romanick1-7/+10
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-06-01teximage-errors: Only run the depth texture subtests when depth textures are ↵Ian Romanick1-14/+18
supported Fixes failure on radeon and probably others. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-06-01texsubimage-depth-formats: Require ARB_depth_textureIan Romanick1-0/+2
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-06-01getteximage-depth: Require ARB_depth_textureIan Romanick1-0/+2
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-05-18texturing: Add decompression test for S3TC DXT1Nanley Chery2-0/+97
v2: Remove ARB_texture_non_power_of_two requirement. Cc: Kenneth Graunke <kenneth@whitecape.org> Cc: Mark Janes <mark.a.janes@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100925 Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
2017-05-18KHR_no_error: set compatibility status for a bunch of glCompressedTex* testsTimothy Arceri3-0/+3
2017-05-18textureSamples: fix printfTimothy Arceri1-1/+1
2017-05-18tests: mark KHR_no_error compatible testsTimothy Arceri9-0/+9
There is still a huge number of tests to classify but this gives us a good number of tests to start testing with.
2017-05-18tests: mark KHR_no_error incompatible testsTimothy Arceri1-0/+1
There is still a huge number of tests to classify but this gives us a good number of tests to start testing with.
2017-01-30getteximage-formats: Disable dithering during glDrawPixelsChad Versace1-0/+25
The test generates a mipmap by "copying" a client-array of pixels to miplevel 0 with glDrawPixels, then calling glGenerateMipmap. The test expects the rendered level 0 to match the client-array source. Dithering during glDrawPixels inteferes with that expectation. Fixes on Intel Skylake: spec.ext_framebuffer_object.getteximage-formats init-by-clear-and-render spec.ext_framebuffer_object.getteximage-formats init-by-render Regressed by Mesa: commit c4b87f129eb036c9615df3adcc1cebd9df10fc84 Author: Chad Versace <chadversary@chromium.org> Subject: meta: Disable dithering during glGenerateMipmap Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99266 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Mark Janes <mark.a.janes@intel.com>
2017-01-03getteximage-depth: Fix failures on cubemap-supporting GL < 3.0.Eric Anholt1-1/+2
You don't get to specify depth cubes until 3.0 (GL_EXT_gpu_shader4 merge). Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
2016-12-14textureGather: replace gl_FragColor with user defined oneSebastian Olender1-2/+4
Use of gl_FragColor is deprecated since glsl 1.3 Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
2016-11-10texelFetch, textureSize: replace deprecated gl_FragColorSebastian Olender2-6/+12
According to GLSLLangSpec: Use of gl_FragData and gl_FragColor is deprecated in version 1.3, using user-defined out instead. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-09-17Fix "glCear" typo.Kenneth Graunke1-1/+1
2016-07-26tex3d-maxsize: rewrite to be more robust and do more testingBrian Paul1-74/+211
1. It seems with NVIDIA's driver that using a proxy texture isn't a sure fire way to know that a given texture format/size can actually be created. Update the find_max_tex3d_size() function to actually try creating a texture with glTexImage3D/glTexStorage3D and see if it works. 2. Improve the speed of texture initialization by copying the first 3D slice to the other slices with glCopyImageSubData(). 3. Use glTexStorage3D when GL_ARB_texture_storage is supported. 4. In addition to GL_RGBA8, test GL_INTENSITY8 and GL_RGBA32F formats. 5. Before testing the largest possible texture, try a couple smaller sizes as a sanity check. 6. Loosen the piglit probe tolerance by one bit to account for inaccuracy caused by GL_NEAREST filtering. Tested with NVIDIA driver, VMware driver and llvmpipe. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
2016-05-19texsubimage-depth-formats: Check for missing float depth support.Eric Anholt1-4/+10
Fixes spurious failure on vc4, which only does unorm depth. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-05-09Fix asprintf warningsMarek Olšák4-27/+27
2016-04-04texsubimage: Remove unnecessary clearTopi Pohjolainen1-1/+0
Not really needed as all the inspected pixels are overwritten after the clear but before getting read back. Allows one to reproduce 91926 on SKL with 100% probability: texsubimage pbo manual GL_TEXTURE_2D GL_RGB8 6 10 0 94 53 0 -auto -fbo 6,10,0: test = 40,12,0,255 ref = 12,0,40,255 (comparing 8 bits) texsubimage failed target: GL_TEXTURE_2D internal format: GL_RGB8 region: 6, 10 94 x 53 PIGLIT: {"result": "fail" } Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91926 Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-04-04texsubimage: Add option to run against fixed regionTopi Pohjolainen1-2/+69
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-04-04texsubimage: Move tex blit program setup higher in the dispatchTopi Pohjolainen1-31/+40
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-04-04texsubimage: Move sub-region selection higher in the dispatchTopi Pohjolainen1-33/+59
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-04-04texsubimage: Move texture size selection higher in the dispatchTopi Pohjolainen1-17/+25
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-04-04texsubimage: Refactor single round for fixed regionTopi Pohjolainen1-50/+74
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2016-04-02generatemipmap-base-change: replace assertion with printfBrian Paul1-2/+6
And require an argument of either 'size' or 'format'. Reviewed-by: Vinson Lee <vlee@freedesktop.org>