panfrost: Add the tiler heap to fragment jobs
In some cases the GPU reads from the tiler heap in fragment jobs, so always add it to GPU jobs. Fixes faults in many applications that use multiple windows (e.g. Firefox, plasmashell). Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4157 Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8773>
This commit is contained in:
parent
d860b61f09
commit
4fec6c9448
|
@ -978,8 +978,8 @@ panfrost_batch_submit_ioctl(struct panfrost_batch *batch,
|
||||||
panfrost_pool_get_bo_handles(&batch->invisible_pool, bo_handles + submit.bo_handle_count);
|
panfrost_pool_get_bo_handles(&batch->invisible_pool, bo_handles + submit.bo_handle_count);
|
||||||
submit.bo_handle_count += panfrost_pool_num_bos(&batch->invisible_pool);
|
submit.bo_handle_count += panfrost_pool_num_bos(&batch->invisible_pool);
|
||||||
|
|
||||||
/* Used by all tiler jobs (XXX: skip for compute-only) */
|
/* Used by all tiler jobs, and occasionally by fragment jobs.
|
||||||
if (!(reqs & PANFROST_JD_REQ_FS))
|
* (XXX: skip for compute-only) */
|
||||||
bo_handles[submit.bo_handle_count++] = dev->tiler_heap->gem_handle;
|
bo_handles[submit.bo_handle_count++] = dev->tiler_heap->gem_handle;
|
||||||
|
|
||||||
submit.bo_handles = (u64) (uintptr_t) bo_handles;
|
submit.bo_handles = (u64) (uintptr_t) bo_handles;
|
||||||
|
|
Loading…
Reference in New Issue