mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 08:38:21 +02:00
panfrost: Increase tiler_heap max allocation to 64MB
We previously allocated only 16MB, but this isn't always enough. Now
that we have growable (heap) on recent kernels, there's not much reason
to try to shrink this allocation.
Fixes OUT_OF_MEMORY fault on furmark trace.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10938>
(cherry picked from commit ac1ee2bebe)
This commit is contained in:
parent
a22ff19833
commit
a12b11ef0e
3 changed files with 3 additions and 3 deletions
|
|
@ -1390,7 +1390,7 @@
|
|||
"description": "panfrost: Increase tiler_heap max allocation to 64MB",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ traces:
|
|||
- path: gputest/furmark.trace
|
||||
expectations:
|
||||
- device: gl-panfrost-t860
|
||||
checksum: dc4ece101ed145228840d1f0654118c6
|
||||
checksum: 2bde9efdddd92c28d29f744e36a226e9
|
||||
- path: gputest/triangle.trace
|
||||
expectations:
|
||||
- device: gl-panfrost-t860
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ panfrost_open_device(void *memctx, int fd, struct panfrost_device *dev)
|
|||
* active for a single job chain at once, so a single heap can be
|
||||
* shared across batches/contextes */
|
||||
|
||||
dev->tiler_heap = panfrost_bo_create(dev, 4096 * 4096,
|
||||
dev->tiler_heap = panfrost_bo_create(dev, 64 * 1024 * 1024,
|
||||
PAN_BO_INVISIBLE | PAN_BO_GROWABLE);
|
||||
|
||||
pthread_mutex_init(&dev->submit_lock, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue