iris: Store iris_context's priority
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 11 Nov 2022 19:53:52 +0000 (11:53 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Mar 2023 23:29:43 +0000 (23:29 +0000)
commit7a1d0b31a67a6b4beb8731e0cbecea36d98e8520
tree3a0fc07bb082d552f62ad280abdda4248c3ac2a9
parent75b9d0b3d84ee410044fdb169952c27b2e88fb34
iris: Store iris_context's priority

This way when replacing a broken context we don't need to ask to
kernel what is the priority of the context being replaced.

Also this will be necessary for Xe kmd as it don't have any uapi to
query engine priority.

While doing that also taking the oportunity to move more code from
iris_bufmgr.c/h that only has one caller.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21965>
src/gallium/drivers/iris/iris_batch.c
src/gallium/drivers/iris/iris_batch.h
src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_bufmgr.h
src/gallium/drivers/iris/iris_context.c
src/gallium/drivers/iris/iris_context.h