LLVMSetLinkage(vs, LLVMPrivateLinkage);
enum ac_arg_type const_desc_type;
- if (ctx->shader->selector->info.const_buffers_declared == 1 &&
+ if (ctx->shader->selector->info.base.num_ubos == 1 &&
ctx->shader->selector->info.base.num_ssbos == 0)
const_desc_type = AC_ARG_CONST_FLOAT_PTR;
else
unsigned enabled_images;
if (info) {
- enabled_constbuf = info->const_buffers_declared;
+ enabled_constbuf = u_bit_consecutive(0, info->base.num_ubos);
enabled_shaderbuf = u_bit_consecutive(0, info->base.num_ssbos);
enabled_samplers = info->base.textures_used;
enabled_images = u_bit_consecutive(0, info->base.num_images);
{
enum ac_arg_type const_shader_buf_type;
- if (ctx->shader->selector->info.const_buffers_declared == 1 &&
+ if (ctx->shader->selector->info.base.num_ubos == 1 &&
ctx->shader->selector->info.base.num_ssbos == 0)
const_shader_buf_type = AC_ARG_CONST_FLOAT_PTR;
else
ctx->shader = shader;
ctx->stage = sel->info.stage;
- ctx->num_const_buffers = util_last_bit(info->const_buffers_declared);
+ ctx->num_const_buffers = info->base.num_ubos;
ctx->num_shader_buffers = info->base.num_ssbos;
ctx->num_samplers = util_last_bit(info->base.textures_used);
ubyte color_interpolate_loc[2];
int constbuf0_num_slots;
- unsigned const_buffers_declared; /**< bitmask of declared const buffers */
ubyte num_stream_output_components[4];
uint num_memory_instructions; /**< sampler, buffer, and image instructions */
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);
}
}
info->constbuf0_num_slots = nir->num_uniforms;
- info->const_buffers_declared = u_bit_consecutive(0, nir->info.num_ubos);
-
info->num_written_clipdistance = nir->info.clip_distance_array_size;
info->num_written_culldistance = nir->info.cull_distance_array_size;
info->clipdist_writemask = u_bit_consecutive(0, info->num_written_clipdistance);
unsigned start, num_shaderbufs, num_constbufs, num_images, num_msaa_images, num_samplers;
num_shaderbufs = info->base.num_ssbos;
- num_constbufs = util_last_bit(info->const_buffers_declared);
+ num_constbufs = info->base.num_ubos;
/* two 8-byte images share one 16-byte slot */
num_images = align(info->base.num_images, 2);
num_msaa_images = align(util_last_bit(info->base.msaa_images), 2);