mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-16 21:58:27 +00:00
m1n1.agx.context: Fix blocklist indexing
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
5e39db820b
commit
bc99d3411a
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ class GPUBufferManager:
|
||||||
total = self.block_ctl.total.val
|
total = self.block_ctl.total.val
|
||||||
while idx < total:
|
while idx < total:
|
||||||
block = self.ctx.uobj.new_buf(self.block_size, "BM Block", track=False)
|
block = self.ctx.uobj.new_buf(self.block_size, "BM Block", track=False)
|
||||||
self.block_list[idx] = block._addr // self.page_size
|
self.block_list[idx * 2] = block._addr // self.page_size
|
||||||
|
|
||||||
page_idx = idx * self.pages_per_block
|
page_idx = idx * self.pages_per_block
|
||||||
for i in range(self.pages_per_block):
|
for i in range(self.pages_per_block):
|
||||||
|
|
Loading…
Add table
Reference in a new issue