mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
mesa: Make _mesa_choose_tex_format() handle stencil textures.
This is necessary for ARB_texture_stencil8 support on classic drivers. Presumably Gallium works because it implements its own ChooseTexFormat. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
ef1b397b07
commit
15cd3ebede
1 changed files with 5 additions and 0 deletions
|
|
@ -765,6 +765,11 @@ _mesa_choose_tex_format(struct gl_context *ctx, GLenum target,
|
|||
RETURN_IF_SUPPORTED(MESA_FORMAT_B8G8R8A8_UNORM);
|
||||
break;
|
||||
|
||||
case GL_STENCIL_INDEX:
|
||||
case GL_STENCIL_INDEX8:
|
||||
RETURN_IF_SUPPORTED(MESA_FORMAT_S_UINT8);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* For non-generic compressed format we assert two things:
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue