mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
panfrost: Print the correct UBO size when dumping UBO information
There's a minus(1) modifier on the entries field. Take it into account. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9517>
This commit is contained in:
parent
3559efb9bf
commit
7b9dfc502a
1 changed files with 1 additions and 1 deletions
|
|
@ -476,8 +476,8 @@ pandecode_uniform_buffers(mali_ptr pubufs, int ubufs_count, int job_no)
|
|||
uint64_t *PANDECODE_PTR_VAR(ubufs, umem, pubufs);
|
||||
|
||||
for (int i = 0; i < ubufs_count; i++) {
|
||||
unsigned size = (ubufs[i] & ((1 << 10) - 1)) * 16;
|
||||
mali_ptr addr = (ubufs[i] >> 10) << 2;
|
||||
unsigned size = addr ? (((ubufs[i] & ((1 << 10) - 1)) + 1) * 16) : 0;
|
||||
|
||||
pandecode_validate_buffer(addr, size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue