radeonsi: remove redundant si_shader_info::const_buffers_declared
[mesa.git] / src / gallium / drivers / radeonsi / si_shader_llvm_resources.c
index c78e77b187dfa28b2f5fbfac3b6c992d249d7ea7..9ba8e187ad04b2c60ae49d149e0fa2a643ccc29e 100644 (file)
@@ -93,7 +93,7 @@ static LLVMValueRef load_ubo(struct ac_shader_abi *abi, LLVMValueRef index)
 
    LLVMValueRef ptr = ac_get_arg(&ctx->ac, ctx->const_and_shader_buffers);
 
-   if (sel->info.const_buffers_declared == 1 && sel->info.base.num_ssbos == 0) {
+   if (sel->info.base.num_ubos == 1 && sel->info.base.num_ssbos == 0) {
       return load_const_buffer_desc_fast_path(ctx);
    }