Mesa (master): mesa: add GL_SR8_EXT, GL_SRG8_EXT for color/srgb format queries
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 21 06:00:52 UTC 2021
Module: Mesa
Branch: master
Commit: 4f97b42f3e24b0915bad107f471cf356e1627844
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4f97b42f3e24b0915bad107f471cf356e1627844
Author: Tapani Pälli <tapani.palli at intel.com>
Date: Tue Jan 19 14:51:11 2021 +0200
mesa: add GL_SR8_EXT, GL_SRG8_EXT for color/srgb format queries
This makes glGetInternalformati64v queries work correctly.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4120
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8575>
---
src/mesa/main/glformats.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index 34f930751bf..3d34a226fbd 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -1074,6 +1074,8 @@ _mesa_is_color_format(GLenum format)
case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
case GL_COMPRESSED_RGB_FXT1_3DFX:
case GL_COMPRESSED_RGBA_FXT1_3DFX:
+ case GL_SR8_EXT:
+ case GL_SRG8_EXT:
case GL_SRGB_EXT:
case GL_SRGB8_EXT:
case GL_SRGB_ALPHA_EXT:
@@ -1421,6 +1423,8 @@ GLboolean
_mesa_is_srgb_format(GLenum format)
{
switch (format) {
+ case GL_SR8_EXT:
+ case GL_SRG8_EXT:
case GL_SRGB:
case GL_SRGB8:
case GL_SRGB_ALPHA:
More information about the mesa-commit
mailing list