glsl: use has_shader_storage_buffer_objects helper
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 4 Apr 2016 15:54:22 +0000 (11:54 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 6 Apr 2016 00:27:32 +0000 (20:27 -0400)
Replaces open-coded logic with existing helper.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/lower_ubo_reference.cpp

index 3155ab6225e3bd0351b7cc1ee507fcb6f22cf978..1a0140fad152a225d78d6c47102a8b3da361497b 100644 (file)
@@ -372,8 +372,7 @@ lower_ubo_reference_visitor::ubo_load(void *mem_ctx,
 static bool
 shader_storage_buffer_object(const _mesa_glsl_parse_state *state)
 {
-   return state->ARB_shader_storage_buffer_object_enable ||
-      state->is_version(430, 310);
+   return state->has_shader_storage_buffer_objects();
 }
 
 uint32_t