mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-28 03:28:10 +02:00
glsl: do not try to reserve explicit locations for buffer variables
Explicit locations are only used with uniform variables. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
96bbb3707f
commit
1f48ea1193
1 changed files with 2 additions and 2 deletions
|
|
@ -3114,8 +3114,8 @@ check_explicit_uniform_locations(struct gl_context *ctx,
|
|||
|
||||
foreach_in_list(ir_instruction, node, sh->ir) {
|
||||
ir_variable *var = node->as_variable();
|
||||
if (var && (var->data.mode == ir_var_uniform || var->data.mode == ir_var_shader_storage) &&
|
||||
var->data.explicit_location) {
|
||||
if (var && (var->data.mode == ir_var_uniform &&
|
||||
var->data.explicit_location)) {
|
||||
bool ret;
|
||||
if (var->type->is_subroutine())
|
||||
ret = reserve_subroutine_explicit_locations(prog, sh, var);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue