v3d: Put the dst bo first in the list of BOs for TFU calls.
authorEric Anholt <eric@anholt.net>
Wed, 19 Dec 2018 17:29:26 +0000 (09:29 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 19 Dec 2018 18:26:04 +0000 (10:26 -0800)
commit365728dc5d46e133b7ef67e3859843dda708eb20
treed92f27854fd1224bef831f7165e8107a3efc991d
parent947f7b452a550c66cfb9a8c9518e35635eb25947
v3d: Put the dst bo first in the list of BOs for TFU calls.

In the UAPI, the first BO is the destination, and the one the kernel
should do an exclusive reservation on.  Currently we only do exclusive
reservations, anyway.  However, in the simulator path I was only copying
back the "destination" BO (actually src in this case), and this caused
regressions once I fixed the simulator to actually complete TFU before
returning (since otherwise, the TFU op would happen at the start of the
next CL submit and the draw would get the right contents).

Fixes: 976ea90bdca2 ("v3d: Add support for using the TFU to do some blits.")
src/gallium/drivers/v3d/v3d_blit.c