mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
mesa: handle GL_UNSIGNED_INT64_ARB properly (v2)
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@lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
(cherry picked from commit a8e1413876)
This commit is contained in:
parent
df303adc29
commit
e3897b667a
2 changed files with 3 additions and 1 deletions
|
|
@ -563,6 +563,8 @@ _mesa_bytes_per_vertex_attrib(GLint comps, GLenum type)
|
|||
return sizeof(GLuint);
|
||||
else
|
||||
return -1;
|
||||
case GL_UNSIGNED_INT64_ARB:
|
||||
return comps * 8;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,8 +97,8 @@ vbo_attrtype_to_double_flag(GLenum format)
|
|||
case GL_FLOAT:
|
||||
case GL_INT:
|
||||
case GL_UNSIGNED_INT:
|
||||
case GL_UNSIGNED_INT64_ARB:
|
||||
return GL_FALSE;
|
||||
case GL_UNSIGNED_INT64_ARB:
|
||||
case GL_DOUBLE:
|
||||
return GL_TRUE;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue