main: Use NumUniformBlocks to count UBOs
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 16 Oct 2015 09:16:46 +0000 (11:16 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 19 Oct 2015 06:20:40 +0000 (08:20 +0200)
commitfba582efc7d66140b5c18ada4d5cd93c9c1e5967
treef55dfa83cf3decb98dc206ed452979f7fb2eafe0
parent86ccb2a16f6d21be29cd99d38831eab6079ce107
main: Use NumUniformBlocks to count UBOs

Now that we have separate index spaces for UBOs and SSBOs we do not need
to iterate through BufferInterfaceBlocks any more, we can just take the
UBO count directly from NumUniformBlocks.

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