From 2e123e1a25182c2e43bf8de1b7911fa6ffc00ae1 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 4 Apr 2016 11:54:22 -0400 Subject: [PATCH] glsl: use has_shader_storage_buffer_objects helper Replaces open-coded logic with existing helper. Signed-off-by: Ilia Mirkin Reviewed-by: Timothy Arceri Reviewed-by: Iago Toral Quiroga --- src/compiler/glsl/lower_ubo_reference.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/glsl/lower_ubo_reference.cpp b/src/compiler/glsl/lower_ubo_reference.cpp index 3155ab6225e..1a0140fad15 100644 --- a/src/compiler/glsl/lower_ubo_reference.cpp +++ b/src/compiler/glsl/lower_ubo_reference.cpp @@ -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 -- 2.30.2