mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
nir/linker: add ubo/ssbo to the program resource list
v2: "nir/linker: Use the stageref when adding UBO/SSBO resources"
squashed on this one (Timothy)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
parent
a638971929
commit
691cee751a
1 changed files with 14 additions and 0 deletions
|
|
@ -65,5 +65,19 @@ nir_build_program_resource_list(struct gl_context *ctx,
|
|||
}
|
||||
|
||||
|
||||
for (unsigned i = 0; i < prog->data->NumUniformBlocks; i++) {
|
||||
if (!link_util_add_program_resource(prog, resource_set, GL_UNIFORM_BLOCK,
|
||||
&prog->data->UniformBlocks[i],
|
||||
prog->data->UniformBlocks[i].stageref))
|
||||
return;
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < prog->data->NumShaderStorageBlocks; i++) {
|
||||
if (!link_util_add_program_resource(prog, resource_set, GL_SHADER_STORAGE_BLOCK,
|
||||
&prog->data->ShaderStorageBlocks[i],
|
||||
prog->data->ShaderStorageBlocks[i].stageref))
|
||||
return;
|
||||
}
|
||||
|
||||
_mesa_set_destroy(resource_set, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue