st/mesa: Use {Num}UniformBlocks instead of {Num}BufferInterfaceBlocks
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 16 Oct 2015 09:40:52 +0000 (11:40 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 19 Oct 2015 06:20:40 +0000 (08:20 +0200)
The latter holds both UBOs and SSBOs, but here we only want UBOs.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_constbuf.c

index 69e26cb6c261e74a5b81142114e0c48ae8fddcd0..acaa85d9356477ffe30ed2756e91ae44f3026033 100644 (file)
@@ -234,11 +234,11 @@ static void st_bind_ubos(struct st_context *st,
    if (!shader)
       return;
 
-   for (i = 0; i < shader->NumBufferInterfaceBlocks; i++) {
+   for (i = 0; i < shader->NumUniformBlocks; i++) {
       struct gl_uniform_buffer_binding *binding;
       struct st_buffer_object *st_obj;
 
-      binding = &st->ctx->UniformBufferBindings[shader->BufferInterfaceBlocks[i].Binding];
+      binding = &st->ctx->UniformBufferBindings[shader->UniformBlocks[i]->Binding];
       st_obj = st_buffer_object(binding->BufferObject);
 
       cb.buffer = st_obj->buffer;