mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
anv: Program compute aux-map base address during queue init
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23958>
This commit is contained in:
parent
b4ab4e8549
commit
1fb9460913
1 changed files with 18 additions and 0 deletions
|
|
@ -602,6 +602,24 @@ init_compute_queue_state(struct anv_queue *queue)
|
|||
|
||||
genX(emit_pipeline_select)(&batch, GPGPU);
|
||||
|
||||
#if GFX_VER == 12
|
||||
if (queue->device->info->has_aux_map) {
|
||||
uint64_t aux_base_addr =
|
||||
intel_aux_map_get_base(queue->device->aux_map_ctx);
|
||||
assert(aux_base_addr % (32 * 1024) == 0);
|
||||
anv_batch_emit(&batch, GENX(MI_LOAD_REGISTER_IMM), lri) {
|
||||
lri.RegisterOffset = GENX(COMPCS0_AUX_TABLE_BASE_ADDR_num);
|
||||
lri.DataDWord = aux_base_addr & 0xffffffff;
|
||||
}
|
||||
anv_batch_emit(&batch, GENX(MI_LOAD_REGISTER_IMM), lri) {
|
||||
lri.RegisterOffset = GENX(COMPCS0_AUX_TABLE_BASE_ADDR_num) + 4;
|
||||
lri.DataDWord = aux_base_addr >> 32;
|
||||
}
|
||||
}
|
||||
#else
|
||||
assert(!queue->device->info->has_aux_map);
|
||||
#endif
|
||||
|
||||
init_common_queue_state(queue, &batch);
|
||||
|
||||
anv_batch_emit(&batch, GENX(MI_BATCH_BUFFER_END), bbe);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue