mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-02 23:40:43 +01:00
anv/trtt: remove TODO comment regarding the reloc list
We use 2MB page table BOs, as defined by ANV_TRTT_PAGE_TABLE_BO_SIZE. Each BO is enough to hold 512 pages, since each one has 4096 bytes. Each L1 page can fit 1024 entries of 64kb size, which means our 512 pages should be able to fit a little less than 32gb of sparse resource memory, since we also need some L2 pages and an L3 page. I don't see any real world application using more than a single BO. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30953>
This commit is contained in:
parent
e047365d76
commit
5839b9d083
1 changed files with 1 additions and 5 deletions
|
|
@ -811,11 +811,7 @@ anv_sparse_bind_trtt(struct anv_device *device,
|
|||
goto out_add_bind;
|
||||
}
|
||||
|
||||
/* Add all the BOs backing TRTT page tables to the reloc list.
|
||||
*
|
||||
* TODO: we could narrow down the list by using anv_address structures in
|
||||
* anv_trtt_bind for the pte_addr.
|
||||
*/
|
||||
/* Add all the BOs backing TRTT page tables to the reloc list. */
|
||||
if (device->physical->uses_relocs) {
|
||||
for (int i = 0; i < trtt->num_page_table_bos; i++) {
|
||||
result = anv_reloc_list_add_bo(&submit->base.relocs,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue