Home
last modified time | relevance | path

Searched refs:ir3_shader_variant (Results 1 – 25 of 76) sorted by relevance

1234

/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir.h47 struct ir3_shader_variant *v,
50 struct ir3_shader_variant *v);
51 void ir3_nir_lower_tess_ctrl(nir_shader *shader, struct ir3_shader_variant *v,
53 void ir3_nir_lower_tess_eval(nir_shader *shader, struct ir3_shader_variant *v,
68 void ir3_nir_lower_variant(struct ir3_shader_variant *so, nir_shader *s);
70 void ir3_setup_const_state(nir_shader *nir, struct ir3_shader_variant *v,
72 bool ir3_nir_lower_load_constant(nir_shader *nir, struct ir3_shader_variant *v);
73 void ir3_nir_analyze_ubo_ranges(nir_shader *nir, struct ir3_shader_variant *v);
74 bool ir3_nir_lower_ubo_loads(nir_shader *nir, struct ir3_shader_variant *v);
76 bool ir3_nir_opt_preamble(nir_shader *nir, struct ir3_shader_variant *v);
[all …]
Dir3_shader.h490 struct ir3_shader_variant { struct
506 struct ir3_shader_variant *binning; argument
507 struct ir3_shader_variant *nonbinning; argument
513 struct ir3_shader_variant *next; argument
542 #define VARIANT_CACHE_START offsetof(struct ir3_shader_variant, info) argument
545 (sizeof(struct ir3_shader_variant) - VARIANT_CACHE_START)
777 ir3_shader_stage(struct ir3_shader_variant *v) in ir3_shader_stage() argument
855 struct ir3_shader_variant *variants;
874 ir3_const_state(const struct ir3_shader_variant *v) in ir3_const_state()
884 ir3_max_const(const struct ir3_shader_variant *v) in ir3_max_const()
[all …]
Dir3_shader.c62 fixup_regfootprint(struct ir3_shader_variant *v) in fixup_regfootprint()
130 ir3_shader_assemble(struct ir3_shader_variant *v) in ir3_shader_assemble()
195 try_override_shader_variant(struct ir3_shader_variant *v, in try_override_shader_variant()
232 assemble_variant(struct ir3_shader_variant *v) in assemble_variant()
291 compile_variant(struct ir3_shader *shader, struct ir3_shader_variant *v) in compile_variant()
315 static struct ir3_shader_variant *
317 struct ir3_shader_variant *nonbinning, void *mem_ctx) in alloc_variant()
324 struct ir3_shader_variant *v = rzalloc_size(mem_ctx, sizeof(*v)); in alloc_variant()
389 needs_binning_variant(struct ir3_shader_variant *v) in needs_binning_variant()
396 static struct ir3_shader_variant *
[all …]
Dir3_disk_cache.c108 compute_variant_key(struct ir3_shader *shader, struct ir3_shader_variant *v, in compute_variant_key()
125 retrieve_variant(struct blob_reader *blob, struct ir3_shader_variant *v) in retrieve_variant()
146 store_variant(struct blob *blob, struct ir3_shader_variant *v) in store_variant()
166 struct ir3_shader_variant *
170 struct ir3_shader_variant *v = rzalloc_size(mem_ctx, sizeof(*v)); in ir3_retrieve_variant()
202 ir3_store_variant(struct blob *blob, struct ir3_shader_variant *v) in ir3_store_variant()
217 struct ir3_shader_variant *v) in ir3_disk_cache_retrieve()
256 struct ir3_shader_variant *v) in ir3_disk_cache_store()
Dir3_compiler.h231 struct ir3_shader_variant *ir3_retrieve_variant(struct blob_reader *blob,
234 void ir3_store_variant(struct blob *blob, struct ir3_shader_variant *v);
236 struct ir3_shader_variant *v);
238 struct ir3_shader_variant *v);
245 struct ir3_shader_variant *so);
Dir3_ra.h162 void ir3_calc_pressure(struct ir3_shader_variant *v, struct ir3_liveness *live,
165 bool ir3_spill(struct ir3 *ir, struct ir3_shader_variant *v,
171 void ir3_ra_validate(struct ir3_shader_variant *v, unsigned full_size,
174 void ir3_lower_copies(struct ir3_shader_variant *v);
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_program.h41 struct ir3_shader_variant *bs; /* binning pass vs */
42 struct ir3_shader_variant *vs;
43 struct ir3_shader_variant *hs;
44 struct ir3_shader_variant *ds;
45 struct ir3_shader_variant *gs;
46 struct ir3_shader_variant *fs;
69 static inline const struct ir3_shader_variant *
81 const struct ir3_shader_variant *so) assert_dt;
Dfd6_const.c38 const struct ir3_shader_variant *v, uint32_t regid, in fd6_emit_const_user()
69 const struct ir3_shader_variant *v, uint32_t regid, in fd6_emit_const_bo()
103 emit_const_ptrs(struct fd_ringbuffer *ring, const struct ir3_shader_variant *v, in emit_const_ptrs()
111 emit_stage_tess_consts(struct fd_ringbuffer *ring, struct ir3_shader_variant *v, in emit_stage_tess_consts()
166 struct ir3_shader_variant *prev; in fd6_build_tess_consts()
188 fd6_emit_ubos(struct fd_context *ctx, const struct ir3_shader_variant *v, in fd6_emit_ubos()
240 user_consts_cmdstream_size(struct ir3_shader_variant *v) in user_consts_cmdstream_size()
269 struct ir3_shader_variant *variants[] = { in fd6_build_user_consts()
341 fd6_emit_cs_consts(const struct ir3_shader_variant *v, in fd6_emit_cs_consts()
351 const struct ir3_shader_variant *v, in fd6_emit_immediates()
[all …]
Dfd6_emit.h108 struct ir3_shader_variant *bs;
109 struct ir3_shader_variant *vs;
110 struct ir3_shader_variant *hs;
111 struct ir3_shader_variant *ds;
112 struct ir3_shader_variant *gs;
113 struct ir3_shader_variant *fs;
284 const struct ir3_shader_variant *v) assert_dt;
290 struct ir3_shader_variant *cp) assert_dt;
Dfd6_const.h35 void fd6_emit_cs_consts(const struct ir3_shader_variant *v,
39 const struct ir3_shader_variant *v,
42 const struct ir3_shader_variant *producer,
43 const struct ir3_shader_variant *v,
Dfd6_program.c45 const struct ir3_shader_variant *so) in fd6_emit_shader()
188 const struct ir3_shader_variant *v, in setup_stream_out()
368 const struct ir3_shader_variant *s) assert_dt in fd6_emit_tess_bos()
412 static const struct ir3_shader_variant dummy_fs = {0}; in setup_stateobj()
413 const struct ir3_shader_variant *vs = binning_pass ? state->bs : state->vs; in setup_stateobj()
414 const struct ir3_shader_variant *hs = state->hs; in setup_stateobj()
415 const struct ir3_shader_variant *ds = state->ds; in setup_stateobj()
416 const struct ir3_shader_variant *gs = state->gs; in setup_stateobj()
417 const struct ir3_shader_variant *fs = binning_pass ? &dummy_fs : state->fs; in setup_stateobj()
576 const struct ir3_shader_variant *last_shader = fd6_last_shader(state); in setup_stateobj()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_cache.h61 void *data, struct ir3_shader_variant *bs, /* binning pass vs */
62 struct ir3_shader_variant *vs, struct ir3_shader_variant *hs,
63 struct ir3_shader_variant *ds, struct ir3_shader_variant *gs,
64 struct ir3_shader_variant *fs, const struct ir3_cache_key *key);
Dir3_const.h43 const struct ir3_shader_variant *v, uint32_t regid,
47 const struct ir3_shader_variant *v, uint32_t regid,
51 emit_const_prsc(struct fd_ringbuffer *ring, const struct ir3_shader_variant *v, in emit_const_prsc()
60 const struct ir3_shader_variant *v,
66 const struct ir3_shader_variant *v, uint32_t regid, in emit_const_asserts()
115 const struct ir3_shader_variant *v, in ir3_emit_constant_data()
155 const struct ir3_shader_variant *v, in ir3_emit_user_consts()
204 ir3_emit_ubos(struct fd_context *ctx, const struct ir3_shader_variant *v, in ir3_emit_ubos()
258 const struct ir3_shader_variant *v, in ir3_emit_image_dims()
312 const struct ir3_shader_variant *v, in ir3_emit_immediates()
[all …]
Dir3_gallium.c77 dump_shader_info(struct ir3_shader_variant *v, in dump_shader_info()
103 upload_shader_variant(struct ir3_shader_variant *v) in upload_shader_variant()
119 struct ir3_shader_variant *
120 ir3_shader_variant(struct ir3_shader *shader, struct ir3_shader_key key, in ir3_shader_variant() function
123 struct ir3_shader_variant *v; in ir3_shader_variant()
219 struct ir3_shader_variant *v = ir3_shader_variant(shader, key, false, debug); in create_initial_variants()
225 ir3_shader_variant(shader, key, false, debug); in create_initial_variants()
231 v = ir3_shader_variant(shader, key, true, debug); in create_initial_variants()
237 ir3_shader_variant(shader, key, true, debug); in create_initial_variants()
261 ir3_shader_variant(shader, key, false, &debug); in create_initial_compute_variants_async()
[all …]
Dir3_gallium.h42 struct ir3_shader_variant *
43 ir3_shader_variant(struct ir3_shader *shader, struct ir3_shader_key key,
67 ir3_point_sprite(const struct ir3_shader_variant *fs, int i, in ir3_point_sprite()
83 const struct ir3_shader_variant *v) assert_dt;
Dir3_cache.c111 struct ir3_shader_variant *variants[MESA_SHADER_STAGES]; in ir3_cache_lookup()
118 ir3_shader_variant(shaders[stage], shader_key, false, debug); in ir3_cache_lookup()
134 ir3_shader_variant(shaders[stage], shader_key, false, debug); in ir3_cache_lookup()
140 struct ir3_shader_variant *bs; in ir3_cache_lookup()
149 ir3_shader_variant(shaders[MESA_SHADER_VERTEX], shader_key, true, debug); in ir3_cache_lookup()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_pipeline.h75 struct ir3_shader_variant *variants[MESA_SHADER_STAGES];
243 const struct ir3_shader_variant *xs);
248 const struct ir3_shader_variant *xs,
254 const struct ir3_shader_variant *vs,
255 const struct ir3_shader_variant *hs,
256 const struct ir3_shader_variant *ds,
257 const struct ir3_shader_variant *gs,
258 const struct ir3_shader_variant *fs,
262 tu6_emit_fs_inputs(struct tu_cs *cs, const struct ir3_shader_variant *fs);
Dtu_pipeline.c256 struct ir3_shader_variant *binning_variant;
401 tu_xs_get_immediates_packet_size_dwords(const struct ir3_shader_variant *xs) in tu_xs_get_immediates_packet_size_dwords()
420 tu_xs_get_additional_cs_size_dwords(const struct ir3_shader_variant *xs) in tu_xs_get_additional_cs_size_dwords()
440 const struct ir3_shader_variant *xs) in tu6_emit_xs_config()
471 const struct ir3_shader_variant *xs, in tu6_emit_xs()
673 const struct ir3_shader_variant *v, in tu6_emit_cs_config()
728 const struct ir3_shader_variant *vs, in tu6_emit_vs_system_values()
729 const struct ir3_shader_variant *hs, in tu6_emit_vs_system_values()
730 const struct ir3_shader_variant *ds, in tu6_emit_vs_system_values()
731 const struct ir3_shader_variant *gs, in tu6_emit_vs_system_values()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_emit.h62 const struct ir3_shader_variant *vs, *fs;
74 static inline const struct ir3_shader_variant *
83 static inline const struct ir3_shader_variant *
89 static const struct ir3_shader_variant binning_fs = {}; in fd4_emit_get_fp()
105 struct ir3_shader_variant *cp) assert_dt;
106 void fd4_emit_cs_consts(const struct ir3_shader_variant *v,
Dfd4_program.h40 struct ir3_shader_variant *bs; /* VS for when emit->binning */
41 struct ir3_shader_variant *vs;
42 struct ir3_shader_variant *fs; /* FS for when !emit->binning */
52 const struct ir3_shader_variant *so);
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_program.h40 struct ir3_shader_variant *bs; /* VS for when emit->binning */
41 struct ir3_shader_variant *vs;
42 struct ir3_shader_variant *fs; /* FS for when !emit->binning */
52 const struct ir3_shader_variant *so);
Dfd5_emit.h66 const struct ir3_shader_variant *vs, *fs;
80 static inline const struct ir3_shader_variant *
96 static inline const struct ir3_shader_variant *
102 static const struct ir3_shader_variant binning_fs = {}; in fd5_emit_get_fp()
211 struct ir3_shader_variant *cp) assert_dt;
212 void fd5_emit_cs_consts(const struct ir3_shader_variant *v,
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_emit.h63 const struct ir3_shader_variant *vs, *fs;
66 static inline const struct ir3_shader_variant *
75 static inline const struct ir3_shader_variant *
81 static const struct ir3_shader_variant binning_fs = {}; in fd3_emit_get_fp()
Dfd3_program.h40 struct ir3_shader_variant *bs; /* VS for when emit->binning */
41 struct ir3_shader_variant *vs;
42 struct ir3_shader_variant *fs; /* FS for when !emit->binning */
Dfd3_program.c55 emit_shader(struct fd_ringbuffer *ring, const struct ir3_shader_variant *so) in emit_shader()
97 const struct ir3_shader_variant *vp, *fp; in fd3_program_emit()
453 fd3_program_create(void *data, struct ir3_shader_variant *bs, in fd3_program_create()
454 struct ir3_shader_variant *vs, struct ir3_shader_variant *hs, in fd3_program_create()
455 struct ir3_shader_variant *ds, struct ir3_shader_variant *gs, in fd3_program_create()
456 struct ir3_shader_variant *fs, in fd3_program_create()

1234