mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
ttn: set ->info->num_ubos
For dealing w/ 32b vs 64b gpu addresses, I need to rework how we pass UBO buffer addresses to shader, and knowing up front the # of UBOs is useful. But I noticed ttn wasn't setting this. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
d6545f2345
commit
859cb24d94
1 changed files with 4 additions and 1 deletions
|
|
@ -314,8 +314,11 @@ ttn_emit_declaration(struct ttn_compile *c)
|
|||
file == TGSI_FILE_CONSTANT);
|
||||
|
||||
/* nothing to do for UBOs: */
|
||||
if ((file == TGSI_FILE_CONSTANT) && decl->Declaration.Dimension)
|
||||
if ((file == TGSI_FILE_CONSTANT) && decl->Declaration.Dimension) {
|
||||
b->shader->info->num_ubos =
|
||||
MAX2(b->shader->info->num_ubos, decl->Dim.Index2D);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((file == TGSI_FILE_INPUT) || (file == TGSI_FILE_OUTPUT)) {
|
||||
is_array = (is_array && decl->Declaration.Array &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue