summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Wollny <gert.wollny@collabora.com>2023-06-28 08:25:00 +0200
committerMarge Bot <emma+marge@anholt.net>2023-06-29 05:21:51 +0000
commitae3e0cf076113b927cf6547c129574603c65b36e (patch)
tree9364b0cd515e520920627e31cd66234e7a17c190
parent53d9e2214649a9ef8ef17666846dc1836044deba (diff)
vrend: Add mapping for Alpha 16F and Alpha 32F TBO format
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1174>
-rw-r--r--src/vrend_renderer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index b88c075..033c231 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -3549,6 +3549,8 @@ static GLenum vrend_get_arb_format(enum virgl_formats format)
case VIRGL_FORMAT_A8_UNORM: return GL_R8;
case VIRGL_FORMAT_A8_SINT: return GL_R8I;
case VIRGL_FORMAT_A8_UINT: return GL_R8UI;
+ case VIRGL_FORMAT_A16_FLOAT: return GL_R16F;
+ case VIRGL_FORMAT_A32_FLOAT: return GL_R32F;
case VIRGL_FORMAT_L8_UNORM: return GL_R8;
case VIRGL_FORMAT_L8_SINT: return GL_R8I;
case VIRGL_FORMAT_L8_UINT: return GL_R8UI;