Lines Matching refs:const_state
632 struct ir3_const_state *const_state) in ir3_setup_const_state() argument
636 memset(&const_state->offsets, ~0, sizeof(const_state->offsets)); in ir3_setup_const_state()
638 ir3_nir_scan_driver_consts(nir, const_state); in ir3_setup_const_state()
642 const_state->num_driver_params = in ir3_setup_const_state()
643 MAX2(const_state->num_driver_params, IR3_DP_VTXCNT_MAX + 1); in ir3_setup_const_state()
646 const_state->num_ubos = nir->info.num_ubos; in ir3_setup_const_state()
649 const_state->num_driver_params = align(const_state->num_driver_params, 4); in ir3_setup_const_state()
651 debug_assert((const_state->ubo_state.size % 16) == 0); in ir3_setup_const_state()
652 unsigned constoff = const_state->ubo_state.size / 16; in ir3_setup_const_state()
655 if (const_state->num_ubos > 0) { in ir3_setup_const_state()
656 const_state->offsets.ubo = constoff; in ir3_setup_const_state()
657 constoff += align(const_state->num_ubos * ptrsz, 4) / 4; in ir3_setup_const_state()
660 if (const_state->ssbo_size.count > 0) { in ir3_setup_const_state()
661 unsigned cnt = const_state->ssbo_size.count; in ir3_setup_const_state()
662 const_state->offsets.ssbo_sizes = constoff; in ir3_setup_const_state()
666 if (const_state->image_dims.count > 0) { in ir3_setup_const_state()
667 unsigned cnt = const_state->image_dims.count; in ir3_setup_const_state()
668 const_state->offsets.image_dims = constoff; in ir3_setup_const_state()
672 if (const_state->num_driver_params > 0) { in ir3_setup_const_state()
676 const_state->offsets.driver_param = constoff; in ir3_setup_const_state()
678 constoff += const_state->num_driver_params / 4; in ir3_setup_const_state()
683 const_state->offsets.tfbo = constoff; in ir3_setup_const_state()
689 const_state->offsets.primitive_param = constoff; in ir3_setup_const_state()
695 const_state->offsets.primitive_param = constoff; in ir3_setup_const_state()
696 const_state->offsets.primitive_map = constoff + 5; in ir3_setup_const_state()
700 const_state->offsets.primitive_param = constoff; in ir3_setup_const_state()
701 const_state->offsets.primitive_map = constoff + 1; in ir3_setup_const_state()
708 const_state->offsets.immediate = constoff; in ir3_setup_const_state()