summaryrefslogtreecommitdiff
path: root/tests/all.py
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2016-01-12 16:01:03 -0800
committerIan Romanick <ian.d.romanick@intel.com>2016-01-20 16:35:32 -0800
commit3af6e2c6127c723d93e54574d38a967eaf105812 (patch)
tree3a8d32f0c10a9cab41df7bed06cb512eae8dea60 /tests/all.py
parent9bd8454a24304eabadcc4a5f6766158bbb8eb508 (diff)
arb_stencil_texturing: Verify that glBlitFramebuffer does not corrupt state
I recently found (by inspection) that glBlitFramebuffer(GL_STENCIL_BUFFER_BIT) from a GL_READ_FRAMEBUFFER with a GL_TEXTURE_RECTANGLE target stencil texture would corrupt the GL_DEPTH_STENCIL_TEXTURE_MODE. NOTE: The GL_TEXTURE_RECTANGLE subtest fails on GEN8+. v2: Remove all mention of GL_TEXTURE_3D. Ilia pointed out that even GL_STENCIL_INDEX is never allowed for GL_TEXTURE_3D targets. GL_ARB_texture_stencil8 allows GL_STENCIL_INDEX8 with glTexImage3D only for the array-like texture targets. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'tests/all.py')
-rw-r--r--tests/all.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/all.py b/tests/all.py
index 3184b6e29..f57d20552 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -1829,6 +1829,13 @@ with profile.group_manager(
grouptools.join('spec', 'ARB_stencil_texturing')) as g:
g(['arb_stencil_texturing-draw'], 'draw')
+with profile.group_manager(
+ PiglitGLTest,
+ grouptools.join('spec', 'ARB_stencil_texturing', 'glBlitFramebuffer corrupts state')) as g:
+ for t in ['1D', '2D', 'CUBE_MAP', '1D_ARRAY', '2D_ARRAY', 'CUBE_MAP_ARRAY', '2D_MULTISAMPLE', '2D_MULTISAMPLE_ARRAY', 'RECTANGLE']:
+ target = 'GL_TEXTURE_' + t
+ g(['arb_stencil_texturing-blit_corrupts_state', target], target)
+
# Group ARB_sync
with profile.group_manager(
PiglitGLTest, grouptools.join('spec', 'ARB_sync')) as g: