From: Jordan Justen Date: Tue, 17 Nov 2015 18:55:26 +0000 (-0800) Subject: glsl: Check for SSBO variable in check_for_ssbo_store X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=614ad9b40b9412e243f4d86bcd7cb0952c42c46f;p=mesa.git glsl: Check for SSBO variable in check_for_ssbo_store The compiler probably already blocks this earlier on, but we should be checking for an SSBO here. Signed-off-by: Jordan Justen Reviewed-by: Iago Toral Quiroga Reviewed-by: Kristian Høgsberg --- diff --git a/src/glsl/lower_ubo_reference.cpp b/src/glsl/lower_ubo_reference.cpp index e088f4624be..a172054bac8 100644 --- a/src/glsl/lower_ubo_reference.cpp +++ b/src/glsl/lower_ubo_reference.cpp @@ -723,7 +723,7 @@ lower_ubo_reference_visitor::check_for_ssbo_store(ir_assignment *ir) return; ir_variable *var = ir->lhs->variable_referenced(); - if (!var || !var->is_in_buffer_block()) + if (!var || !var->is_in_shader_storage_block()) return; /* We have a write to a buffer variable, so declare a temporary and rewrite