[Mesa-dev] [PATCH 2/2] st/mesa: handle GL_UNSIGNED_INT64_ARB in st_pipe_vertex_format

Marek Olšák maraeo at gmail.com
Fri May 25 21:03:18 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/state_tracker/st_atom_array.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c
index 9a0935e21a5..76dc81975c8 100644
--- a/src/mesa/state_tracker/st_atom_array.c
+++ b/src/mesa/state_tracker/st_atom_array.c
@@ -292,20 +292,23 @@ st_pipe_vertex_format(const struct gl_array_attributes *attrib)
       assert(size == 3 && !integer && format == GL_RGBA);
       return PIPE_FORMAT_R11G11B10_FLOAT;
 
    case GL_UNSIGNED_BYTE:
       if (format == GL_BGRA) {
          /* this is an odd-ball case */
          assert(normalized);
          return PIPE_FORMAT_B8G8R8A8_UNORM;
       }
       break;
+
+   case GL_UNSIGNED_INT64_ARB:
+      return PIPE_FORMAT_R32G32_UINT;
    }
 
    index = integer*2 + normalized;
    assert(index <= 2);
    assert(type >= GL_BYTE && type <= GL_FIXED);
    return vertex_formats[type - GL_BYTE][index][size-1];
 }
 
 static void init_velement(struct pipe_vertex_element *velement,
                           int src_offset, int format,
-- 
2.17.0



More information about the mesa-dev mailing list