iris: Fix iris_bo_alloc() flags call argument
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 17 Nov 2022 20:15:11 +0000 (12:15 -0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 21 Nov 2022 14:35:55 +0000 (14:35 +0000)
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>

src/gallium/drivers/iris/iris_binder.c

index ef562e7..511b972 100644 (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. */