mesa/st: consider NumUniformBlocks instead of num_ubos when binding
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 29 Apr 2020 10:29:46 +0000 (12:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 May 2020 09:17:51 +0000 (09:17 +0000)
commit354474b9e5a9e9fdbba1b113f36d7d119d4187c0
treec7ee55fdb1c6e9bc2d0c075be55254fb127cecdc
parent8471f7a5fa1d5c00de9f314eaccd23dd0e62e71b
mesa/st: consider NumUniformBlocks instead of num_ubos when binding

This is the number of uniform blocks at linking time, not after
finalizing shaders.

Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4734>
src/mesa/state_tracker/st_atom_constbuf.c
src/mesa/state_tracker/st_draw_feedback.c