mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
glsl: Allow explicit binding on atomics again
As of 943b2d52bf, layout(binding) on an atomic would fail the assertion
here.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
7489f3eeda
commit
92840aabf7
1 changed files with 3 additions and 1 deletions
|
|
@ -296,8 +296,10 @@ link_set_uniform_initializers(struct gl_shader_program *prog)
|
|||
linker::set_block_binding(prog, iface_type->name,
|
||||
var->data.binding);
|
||||
}
|
||||
} else if (type->contains_atomic()) {
|
||||
/* we don't actually need to do anything. */
|
||||
} else {
|
||||
assert(!"Explicit binding not on a sampler or UBO.");
|
||||
assert(!"Explicit binding not on a sampler, UBO or atomic.");
|
||||
}
|
||||
} else if (var->constant_value) {
|
||||
linker::set_uniform_initializer(mem_ctx, prog, var->name,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue