freedreno: Initialize the bo's iova at creation time.
authorEric Anholt <eric@anholt.net>
Thu, 7 May 2020 23:58:25 +0000 (16:58 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 8 May 2020 19:35:39 +0000 (12:35 -0700)
commitc9e8df61dc8737f167767f2bda8a56abcae8ad5e
tree45902fa704b2e05b3ce2a1474130928f30024f32
parentb3c4e6a597a45a0281cdcb8d70ec86ce8dabbb16
freedreno: Initialize the bo's iova at creation time.

Avoids repeated conditionals at reloc time checking if we need to go ask
the kernel.

No statistically significant difference on the drawoverhead case I'm
looking at (n=300).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4957>
src/freedreno/drm/freedreno_bo.c
src/freedreno/drm/freedreno_drmif.h
src/freedreno/drm/msm_ringbuffer_sp.c
src/gallium/drivers/freedreno/freedreno_state.c