[Mesa-dev] [PATCH 1/2] mesa: handle GL_UNSIGNED_INT64_ARB in _mesa_bytes_per_vertex_attrib
Marek Olšák
maraeo at gmail.com
Fri May 25 21:03:17 UTC 2018
From: Marek Olšák <marek.olsak at amd.com>
Bindless texture handles can be passed via vertex attribs using this type.
This fixes a bunch of bindless piglit tests on radeonsi.
Cc: 18.0 18.1 <mesa-stable at lists.freedesktop.org>
---
src/mesa/main/glformats.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index cba5e670db0..667020c193c 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -556,20 +556,22 @@ _mesa_bytes_per_vertex_attrib(GLint comps, GLenum type)
case GL_UNSIGNED_INT_2_10_10_10_REV:
if (comps == 4)
return sizeof(GLuint);
else
return -1;
case GL_UNSIGNED_INT_10F_11F_11F_REV:
if (comps == 3)
return sizeof(GLuint);
else
return -1;
+ case GL_UNSIGNED_INT64_ARB:
+ return comps * 8;
default:
return -1;
}
}
/**
* Test if the given format is unsized.
*/
GLboolean
_mesa_is_enum_format_unsized(GLenum format)
--
2.17.0
More information about the mesa-dev
mailing list