Lines Matching refs:bv
43 static int num_primitives(const struct batch_vals *bv) in num_primitives() argument
51 return bv->max_threads; in num_primitives()
55 batch_get_defaults(struct drm_i915_private *i915, struct batch_vals *bv) in batch_get_defaults() argument
61 bv->max_threads = 70; in batch_get_defaults()
64 bv->max_threads = 140; in batch_get_defaults()
67 bv->max_threads = 280; in batch_get_defaults()
70 bv->surface_height = 16 * 16; in batch_get_defaults()
71 bv->surface_width = 32 * 2 * 16; in batch_get_defaults()
76 bv->max_threads = 36; in batch_get_defaults()
79 bv->max_threads = 128; in batch_get_defaults()
82 bv->surface_height = 16 * 8; in batch_get_defaults()
83 bv->surface_width = 32 * 16; in batch_get_defaults()
85 bv->state_start = round_up(SZ_1K + num_primitives(bv) * 64, SZ_4K); in batch_get_defaults()
86 bv->surface_start = bv->state_start + SZ_4K; in batch_get_defaults()
87 bv->size = bv->surface_start + bv->surface_height * bv->surface_width; in batch_get_defaults()
143 const struct batch_vals *bv) in gen7_fill_surface_state() argument
145 u32 surface_h = bv->surface_height; in gen7_fill_surface_state()
146 u32 surface_w = bv->surface_width; in gen7_fill_surface_state()
175 const struct batch_vals *bv) in gen7_fill_binding_table() argument
178 gen7_fill_surface_state(state, bv->surface_start, bv); in gen7_fill_binding_table()
207 const struct batch_vals *bv, in gen7_fill_interface_descriptor() argument
213 u32 binding_table = gen7_fill_binding_table(state, bv); in gen7_fill_interface_descriptor()
261 const struct batch_vals *bv, in gen7_emit_vfe_state() argument
265 u32 threads = bv->max_threads - 1; in gen7_emit_vfe_state()
377 const struct batch_vals *bv) in emit_batch() argument
386 batch_init(&cmds, vma, start, 0, bv->state_start); in emit_batch()
387 batch_init(&state, vma, start, bv->state_start, SZ_4K); in emit_batch()
389 descriptors = gen7_fill_interface_descriptor(&state, bv, in emit_batch()
420 gen7_emit_vfe_state(&cmds, bv, urb_size - 1, 0, 0); in emit_batch()
424 for (i = 0; i < num_primitives(bv); i++) in emit_batch()
433 struct batch_vals bv; in gen7_setup_clear_gpr_bb() local
436 batch_get_defaults(engine->i915, &bv); in gen7_setup_clear_gpr_bb()
438 return bv.size; in gen7_setup_clear_gpr_bb()
440 GEM_BUG_ON(vma->obj->base.size < bv.size); in gen7_setup_clear_gpr_bb()
446 emit_batch(vma, memset(batch, 0, bv.size), &bv); in gen7_setup_clear_gpr_bb()