From 68652dca0c281e509ad271229be037a5e10ed594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Thu, 17 Nov 2022 12:15:11 -0800 Subject: [PATCH] iris: Fix iris_bo_alloc() flags call argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: José Roberto de Souza Part-of: --- src/gallium/drivers/iris/iris_binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_binder.c b/src/gallium/drivers/iris/iris_binder.c index ef562e719c065..511b97250962e 100644 --- a/src/gallium/drivers/iris/iris_binder.c +++ b/src/gallium/drivers/iris/iris_binder.c @@ -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. */