v3dv: increase limit for active event objects

Fixes: ecb01d53fd ("v3dv: refactor events")
Fixes: dEQP-VK.api.command_buffers.execute_large_primary

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19458>
(cherry picked from commit 4c861cf22a)
This commit is contained in:
Iago Toral Quiroga 2022-11-02 10:53:59 +01:00 committed by Eric Engestrom
parent ef0210c517
commit 7f3657fbe3
2 changed files with 5 additions and 2 deletions

View file

@ -2326,7 +2326,7 @@
"description": "v3dv: increase limit for active event objects",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "ecb01d53fdb413121ce2a8f36ad67e51898eec00"
},

View file

@ -231,8 +231,11 @@ v3dv_event_allocate_resources(struct v3dv_device *device)
/* BO with event states. Make sure we always align to a page size (4096)
* to ensure we use all the memory the kernel will allocate for the BO.
*
* CTS has tests that require over 8192 active events (yes, really) so
* let's make sure we allow for that.
*/
const uint32_t bo_size = 4096;
const uint32_t bo_size = 3 * 4096;
struct v3dv_bo *bo = v3dv_bo_alloc(device, bo_size, "events", true);
if (!bo) {
result = vk_error(device, VK_ERROR_OUT_OF_DEVICE_MEMORY);