summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_ubo_reference.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-05 08:44:22 +1100
committerTimothy Arceri <[email protected]>2017-01-06 11:21:41 +1100
commitb792c3897927c1d89968bc0040faef02ec976184 (patch)
treec2de83abcdb6522dd42b2599127fbc1f1b2dccbe /src/compiler/glsl/lower_ubo_reference.cpp
parenta1da57c19c27505b9eab4792355f2f1b5c774a0a (diff)
st/mesa/glsl/i965: set num_ubos directly in shader_info
This also removes the duplicate field in gl_linked_shader, and gets num_ubos from shader_info instead. Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_ubo_reference.cpp')
-rw-r--r--src/compiler/glsl/lower_ubo_reference.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_ubo_reference.cpp b/src/compiler/glsl/lower_ubo_reference.cpp
index eafa1dd7525..985ecea554e 100644
--- a/src/compiler/glsl/lower_ubo_reference.cpp
+++ b/src/compiler/glsl/lower_ubo_reference.cpp
@@ -292,7 +292,7 @@ lower_ubo_reference_visitor::setup_for_load_or_store(void *mem_ctx,
num_blocks = shader->NumShaderStorageBlocks;
blocks = shader->ShaderStorageBlocks;
} else {
- num_blocks = shader->NumUniformBlocks;
+ num_blocks = shader->Program->info.num_ubos;
blocks = shader->UniformBlocks;
}
this->uniform_block = NULL;