Commit
cf67ca9ffa9 made the layouting code pick a special layout for
1D images on Skylake. This should not be used for depth and stencil
buffers because these need to be treated as 2D tiled images. However
the patch was missing a check for images with a base format of
GL_STENCIL_INDEX. In practice I don't think it's currently possible to
hit this because Mesa doesn't support GL_ARB_texture_stencil8 and it's
not possible to create a 1D renderbuffer, but it'll be good to be
ready for when the extension is supported.
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
GLenum base_format = _mesa_get_format_base_format(mt->format);
if (base_format != GL_DEPTH_COMPONENT &&
- base_format != GL_DEPTH_STENCIL)
+ base_format != GL_DEPTH_STENCIL &&
+ base_format != GL_STENCIL_INDEX)
return true;
}