On 01/13/2016 09:02 AM, Ilia Mirkin wrote: > On Wed, Jan 13, 2016 at 4:08 AM, Ian Romanick <i...@freedesktop.org> wrote: >> From: Ian Romanick <ian.d.roman...@intel.com> >> >> 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. >> >> I was not able to fully test the GL_TEXTURE_3D mode. If I set >> MESA_EXTENSION_OVERRIDE=+GL_ARB_texture_stencil8 to test 3D textures, >> the test fails due to a GL error in glTexImage3D: >> >> Mesa: User error: GL_INVALID_OPERATION in glTexImage3D(bad target for >> depth texture) > > I don't think 3D textures are ever legal for depth (and thus, > presumably, stencil)... are they?
You are correct. I saw in the "New Tokens" section of GL_ARB_texture_stencil8 that GL_STENCIL_INDEX8 is accepted by glTexImage3D, but I didn't check the set of targets. glTexImage3D accepts it only for cube maps and the various array texture targets. I'll pull GL_TEXTURE_3D support out of the patch. That will simplify things a bit. > -ilia _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit