• Home
  • Raw
  • Download

Lines Matching refs:const_state

853                       struct ir3_const_state *const_state)  in ir3_setup_const_state()  argument
857 memset(&const_state->offsets, ~0, sizeof(const_state->offsets)); in ir3_setup_const_state()
859 ir3_nir_scan_driver_consts(compiler, nir, const_state); in ir3_setup_const_state()
862 const_state->num_driver_params = in ir3_setup_const_state()
863 MAX2(const_state->num_driver_params, IR3_DP_VTXCNT_MAX + 1); in ir3_setup_const_state()
866 const_state->num_ubos = nir->info.num_ubos; in ir3_setup_const_state()
868 debug_assert((const_state->ubo_state.size % 16) == 0); in ir3_setup_const_state()
869 unsigned constoff = const_state->ubo_state.size / 16; in ir3_setup_const_state()
872 if (const_state->num_ubos > 0) { in ir3_setup_const_state()
873 const_state->offsets.ubo = constoff; in ir3_setup_const_state()
874 constoff += align(const_state->num_ubos * ptrsz, 4) / 4; in ir3_setup_const_state()
877 if (const_state->image_dims.count > 0) { in ir3_setup_const_state()
878 unsigned cnt = const_state->image_dims.count; in ir3_setup_const_state()
879 const_state->offsets.image_dims = constoff; in ir3_setup_const_state()
883 if (const_state->num_driver_params > 0) { in ir3_setup_const_state()
889 const_state->num_driver_params = align(const_state->num_driver_params, 4); in ir3_setup_const_state()
892 (const_state->num_driver_params >= IR3_DP_VTXID_BASE)) { in ir3_setup_const_state()
900 const_state->offsets.driver_param = constoff; in ir3_setup_const_state()
902 constoff += align(const_state->num_driver_params / 4, upload_unit); in ir3_setup_const_state()
907 const_state->offsets.tfbo = constoff; in ir3_setup_const_state()
913 const_state->offsets.primitive_param = constoff; in ir3_setup_const_state()
919 const_state->offsets.primitive_param = constoff; in ir3_setup_const_state()
920 const_state->offsets.primitive_map = constoff + 5; in ir3_setup_const_state()
924 const_state->offsets.primitive_param = constoff; in ir3_setup_const_state()
925 const_state->offsets.primitive_map = constoff + 1; in ir3_setup_const_state()
932 const_state->offsets.immediate = constoff; in ir3_setup_const_state()