mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 07:10:27 +01:00
panfrost: Workaround buffer overrun with mip level
Mipmaps are still broken, but at least this way we don't crash on some apps using mipmaps. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
a777c3d7cb
commit
60d5b85261
1 changed files with 0 additions and 1 deletions
|
|
@ -235,7 +235,6 @@ panfrost_create_bo(struct panfrost_screen *screen, const struct pipe_resource *t
|
|||
for (int l = 0; l < (template->last_level + 1); ++l) {
|
||||
bo->cpu[l] = malloc(sz);
|
||||
bo->size[l] = sz;
|
||||
sz >>= 2;
|
||||
}
|
||||
} else {
|
||||
/* For a linear resource, allocate a block of memory from
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue