mesa: add missing stencil formats to _mesa_is_stencil_format

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13070
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34931>
(cherry picked from commit 720dae85f2)
This commit is contained in:
Tapani Pälli 2025-05-12 17:56:58 +03:00 committed by Eric Engestrom
parent 7605ff03d6
commit 139c068957
2 changed files with 5 additions and 1 deletions

View file

@ -474,7 +474,7 @@
"description": "mesa: add missing stencil formats to _mesa_is_stencil_format",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1223,6 +1223,10 @@ _mesa_is_stencil_format(GLenum format)
{
switch (format) {
case GL_STENCIL_INDEX:
case GL_STENCIL_INDEX1:
case GL_STENCIL_INDEX4:
case GL_STENCIL_INDEX8:
case GL_STENCIL_INDEX16:
return GL_TRUE;
default:
return GL_FALSE;