• Home
  • Raw
  • Download

Lines Matching refs:bt

708                            const struct crocus_binding_table *bt)  in crocus_print_binding_table()  argument
716 uint32_t size = bt->sizes[i]; in crocus_print_binding_table()
719 compacted += util_bitcount64(bt->used_mask[i]); in crocus_print_binding_table()
737 uint64_t mask = bt->used_mask[i]; in crocus_print_binding_table()
752 rewrite_src_with_bti(nir_builder *b, struct crocus_binding_table *bt, in rewrite_src_with_bti() argument
756 assert(bt->sizes[group] > 0); in rewrite_src_with_bti()
762 bti = nir_imm_intN_t(b, crocus_group_index_to_bti(bt, group, index), in rewrite_src_with_bti()
768 assert(bt->used_mask[group] == BITFIELD64_MASK(bt->sizes[group])); in rewrite_src_with_bti()
769 bti = nir_iadd_imm(b, src->ssa, bt->offsets[group]); in rewrite_src_with_bti()
775 mark_used_with_src(struct crocus_binding_table *bt, nir_src *src, in mark_used_with_src() argument
778 assert(bt->sizes[group] > 0); in mark_used_with_src()
782 assert(index < bt->sizes[group]); in mark_used_with_src()
783 bt->used_mask[group] |= 1ull << index; in mark_used_with_src()
786 bt->used_mask[group] = BITFIELD64_MASK(bt->sizes[group]); in mark_used_with_src()
805 struct crocus_binding_table *bt, in crocus_setup_binding_table() argument
813 memset(bt, 0, sizeof(*bt)); in crocus_setup_binding_table()
819 bt->sizes[CROCUS_SURFACE_GROUP_RENDER_TARGET] = num_render_targets; in crocus_setup_binding_table()
821 bt->used_mask[CROCUS_SURFACE_GROUP_RENDER_TARGET] = in crocus_setup_binding_table()
828 bt->sizes[CROCUS_SURFACE_GROUP_RENDER_TARGET_READ] = num_render_targets; in crocus_setup_binding_table()
829 bt->used_mask[CROCUS_SURFACE_GROUP_RENDER_TARGET_READ] = in crocus_setup_binding_table()
833 bt->sizes[CROCUS_SURFACE_GROUP_CS_WORK_GROUPS] = 1; in crocus_setup_binding_table()
839 bt->sizes[CROCUS_SURFACE_GROUP_SOL] = BRW_MAX_SOL_BINDINGS; in crocus_setup_binding_table()
840 bt->used_mask[CROCUS_SURFACE_GROUP_SOL] = (uint64_t)-1; in crocus_setup_binding_table()
844 bt->sizes[CROCUS_SURFACE_GROUP_TEXTURE] = BITSET_LAST_BIT(info->textures_used); in crocus_setup_binding_table()
845 bt->used_mask[CROCUS_SURFACE_GROUP_TEXTURE] = info->textures_used[0]; in crocus_setup_binding_table()
848 bt->sizes[CROCUS_SURFACE_GROUP_TEXTURE_GATHER] = BITSET_LAST_BIT(info->textures_used); in crocus_setup_binding_table()
849 bt->used_mask[CROCUS_SURFACE_GROUP_TEXTURE_GATHER] = info->textures_used[0]; in crocus_setup_binding_table()
852 bt->sizes[CROCUS_SURFACE_GROUP_IMAGE] = info->num_images; in crocus_setup_binding_table()
861 bt->sizes[CROCUS_SURFACE_GROUP_UBO] = num_cbufs + 1; in crocus_setup_binding_table()
863 bt->sizes[CROCUS_SURFACE_GROUP_SSBO] = info->num_ssbos; in crocus_setup_binding_table()
866 assert(bt->sizes[i] <= SURFACE_GROUP_MAX_ELEMENTS); in crocus_setup_binding_table()
880 bt->used_mask[CROCUS_SURFACE_GROUP_CS_WORK_GROUPS] = 1; in crocus_setup_binding_table()
885 mark_used_with_src(bt, &intrin->src[0], in crocus_setup_binding_table()
905 mark_used_with_src(bt, &intrin->src[0], CROCUS_SURFACE_GROUP_IMAGE); in crocus_setup_binding_table()
909 mark_used_with_src(bt, &intrin->src[0], CROCUS_SURFACE_GROUP_UBO); in crocus_setup_binding_table()
913 mark_used_with_src(bt, &intrin->src[1], CROCUS_SURFACE_GROUP_SSBO); in crocus_setup_binding_table()
931 mark_used_with_src(bt, &intrin->src[0], CROCUS_SURFACE_GROUP_SSBO); in crocus_setup_binding_table()
943 bt->used_mask[i] = BITFIELD64_MASK(bt->sizes[i]); in crocus_setup_binding_table()
952 if (bt->used_mask[i] != 0) { in crocus_setup_binding_table()
953 bt->offsets[i] = next; in crocus_setup_binding_table()
954 next += util_bitcount64(bt->used_mask[i]); in crocus_setup_binding_table()
957 bt->size_bytes = next * 4; in crocus_setup_binding_table()
960 crocus_print_binding_table(stderr, gl_shader_stage_name(info->stage), bt); in crocus_setup_binding_table()
999 …crocus_group_index_to_bti(bt, is_gather ? CROCUS_SURFACE_GROUP_TEXTURE_GATHER : CROCUS_SURFACE_GRO… in crocus_setup_binding_table()
1024 rewrite_src_with_bti(&b, bt, instr, &intrin->src[0], in crocus_setup_binding_table()
1029 rewrite_src_with_bti(&b, bt, instr, &intrin->src[0], in crocus_setup_binding_table()
1034 rewrite_src_with_bti(&b, bt, instr, &intrin->src[1], in crocus_setup_binding_table()
1040 rewrite_src_with_bti(&b, bt, instr, &intrin->src[0], in crocus_setup_binding_table()
1060 rewrite_src_with_bti(&b, bt, instr, &intrin->src[0], in crocus_setup_binding_table()
1222 struct crocus_binding_table bt; in crocus_compile_vs() local
1223 crocus_setup_binding_table(devinfo, nir, &bt, /* num_render_targets */ 0, in crocus_compile_vs()
1274 num_cbufs, &bt); in crocus_compile_vs()
1420 struct crocus_binding_table bt; in crocus_compile_tcs() local
1429 crocus_setup_binding_table(devinfo, nir, &bt, /* num_render_targets */ 0, in crocus_compile_tcs()
1462 memset(&bt, 0, sizeof(bt)); in crocus_compile_tcs()
1463 bt.sizes[CROCUS_SURFACE_GROUP_UBO] = 1; in crocus_compile_tcs()
1464 bt.used_mask[CROCUS_SURFACE_GROUP_UBO] = 1; in crocus_compile_tcs()
1465 bt.size_bytes = 4; in crocus_compile_tcs()
1500 num_cbufs, &bt); in crocus_compile_tcs()
1600 struct crocus_binding_table bt; in crocus_compile_tes() local
1601 crocus_setup_binding_table(devinfo, nir, &bt, /* num_render_targets */ 0, in crocus_compile_tes()
1645 num_cbufs, &bt); in crocus_compile_tes()
1740 struct crocus_binding_table bt; in crocus_compile_gs() local
1741 crocus_setup_binding_table(devinfo, nir, &bt, /* num_render_targets */ 0, in crocus_compile_gs()
1786 num_cbufs, &bt); in crocus_compile_gs()
1877 struct crocus_binding_table bt; in crocus_compile_fs() local
1878 crocus_setup_binding_table(devinfo, nir, &bt, in crocus_compile_fs()
1918 num_cbufs, &bt); in crocus_compile_fs()
2087 struct crocus_binding_table bt; in crocus_compile_clip() local
2088 memset(&bt, 0, sizeof(bt)); in crocus_compile_clip()
2094 NULL, NULL, 0, 0, &bt); in crocus_compile_clip()
2242 struct crocus_binding_table bt; in crocus_compile_sf() local
2243 memset(&bt, 0, sizeof(bt)); in crocus_compile_sf()
2248 NULL, NULL, 0, 0, &bt); in crocus_compile_sf()
2335 struct crocus_binding_table bt; in crocus_compile_ff_gs() local
2336 memset(&bt, 0, sizeof(bt)); in crocus_compile_ff_gs()
2339 bt.sizes[CROCUS_SURFACE_GROUP_SOL] = BRW_MAX_SOL_BINDINGS; in crocus_compile_ff_gs()
2340 bt.used_mask[CROCUS_SURFACE_GROUP_SOL] = (uint64_t)-1; in crocus_compile_ff_gs()
2342 bt.size_bytes = BRW_MAX_SOL_BINDINGS * 4; in crocus_compile_ff_gs()
2349 NULL, NULL, 0, 0, &bt); in crocus_compile_ff_gs()
2563 struct crocus_binding_table bt; in crocus_compile_cs() local
2564 crocus_setup_binding_table(devinfo, nir, &bt, /* num_render_targets */ 0, in crocus_compile_cs()
2593 num_cbufs, &bt); in crocus_compile_cs()