st/mesa/glsl/i965: set num_ssbos directly in shader_info
Here we also remove the duplicate field in gl_linked_shader and always get the value from shader_info instead. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
@@ -901,7 +901,7 @@ link_update_uniform_buffer_variables(struct gl_linked_shader *shader,
|
||||
var->data.mode == ir_var_shader_storage);
|
||||
|
||||
unsigned num_blocks = var->data.mode == ir_var_uniform ?
|
||||
shader->Program->info.num_ubos : shader->NumShaderStorageBlocks;
|
||||
shader->Program->info.num_ubos : shader->Program->info.num_ssbos;
|
||||
struct gl_uniform_block **blks = var->data.mode == ir_var_uniform ?
|
||||
shader->Program->sh.UniformBlocks : shader->ShaderStorageBlocks;
|
||||
|
||||
|
Reference in New Issue
Block a user