mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
croucs/gen8: handle gfx8 surface aux addr reloc.
This is ported from i965 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11507>
This commit is contained in:
parent
12e4da8053
commit
661f108d80
1 changed files with 13 additions and 5 deletions
|
|
@ -4991,11 +4991,19 @@ emit_surface_state(struct crocus_batch *batch,
|
|||
*
|
||||
* FIXME: move to the point of assignment.
|
||||
*/
|
||||
uint32_t *aux_addr = surf_state + (isl_dev->ss.aux_addr_offset / 4);
|
||||
*aux_addr = crocus_state_reloc(batch,
|
||||
addr_offset + isl_dev->ss.aux_addr_offset,
|
||||
aux_bo, *aux_addr,
|
||||
reloc);
|
||||
if (devinfo->ver == 8) {
|
||||
uint64_t *aux_addr = (uint64_t *)(surf_state + (isl_dev->ss.aux_addr_offset / 4));
|
||||
*aux_addr = crocus_state_reloc(batch,
|
||||
addr_offset + isl_dev->ss.aux_addr_offset,
|
||||
aux_bo, *aux_addr,
|
||||
reloc);
|
||||
} else {
|
||||
uint32_t *aux_addr = surf_state + (isl_dev->ss.aux_addr_offset / 4);
|
||||
*aux_addr = crocus_state_reloc(batch,
|
||||
addr_offset + isl_dev->ss.aux_addr_offset,
|
||||
aux_bo, *aux_addr,
|
||||
reloc);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue