iris: Add BO_ALLOC_PLAIN flag
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 17 Nov 2022 20:27:08 +0000 (12:27 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 19 Dec 2022 13:37:34 +0000 (05:37 -0800)
commit6b3f085c3cd950d64b4fe53b43ad24ba016acf96
treecbfad792c4ae51e2c4d9cd38791bbe09d050a362
parentc12f7f601c3ecb4b6298c189f2359acd7637984d
iris: Add BO_ALLOC_PLAIN flag

We had iris_bo_alloc() call with the wrong flags value, it was
mistaken by aligment, see commit 68652dca0c28.

To avoid such mistakes in future here adding BO_ALLOC_PLAIN so
iris_bo_alloc() calls have a more descriptive flag parameter when
there is no special allocation request.

While at it, also standardizing unsigned as the type for this flag.

No behavior changes here.

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/19857>
src/gallium/drivers/iris/iris_binder.c
src/gallium/drivers/iris/iris_border_color.c
src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_bufmgr.h
src/gallium/drivers/iris/iris_program.c
src/gallium/drivers/iris/iris_resource.c