iris: Fix iris_bo_alloc() flags call argument

binder_realloc() -> iris_bo_alloc() is setting 4096 as flags parameter.
Up to now this is harmeless as there is no BO_ALLOC flag that uses
bit 12 but is better to avoid any future issues.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19898>
This commit is contained in:
José Roberto de Souza 2022-11-17 12:15:11 -08:00 committed by Marge Bot
parent f1305d49d9
commit 68652dca0c
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ binder_realloc(struct iris_context *ice)
iris_bo_unreference(binder->bo);
binder->bo = iris_bo_alloc(bufmgr, "binder", binder->size, binder->alignment,
IRIS_MEMZONE_BINDER, 4096);
IRIS_MEMZONE_BINDER, 0);
binder->map = iris_bo_map(NULL, binder->bo, MAP_WRITE);
/* Avoid using offset 0 - tools consider it NULL. */