iris: Initialize bo->index to -1 when importing buffers
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Dec 2023 12:00:37 +0000 (04:00 -0800)
committerEric Engestrom <eric@engestrom.ch>
Wed, 27 Dec 2023 13:39:28 +0000 (13:39 +0000)
commit72dac9936f6801655b2efbce696beacb65e744dc
tree98d6d36c3ff51bbf050b886cb882aef77ad01570
parent0289027140fc3f83449bdb3c047622c757263124
iris: Initialize bo->index to -1 when importing buffers

A value of -1 means that the buffer has never been used in an execbuf
buffer list in any of our contexts.  While setting this isn't critical,
doing so will allow us to short-circuit some looping in the next patch.

Cc: mesa-stable
Reviewed-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/26806>
(cherry picked from commit d178334d5cafa9b215d38c7c443c4dbc168e66c5)
.pick_status.json
src/gallium/drivers/iris/iris_bufmgr.c