nvc0: ensure that pushbuf keeps ref to old text/tls bos
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 1 Jan 2018 19:54:17 +0000 (14:54 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 7 Jan 2018 16:14:51 +0000 (11:14 -0500)
commitadcd241b563f44b2e3e92f5d840e2f617bc25836
tree97b499e397014d7a7d08715ce34f1fbe1cfc172e
parentbe144e251c548b45d0c4f9eb757a21110a73725b
nvc0: ensure that pushbuf keeps ref to old text/tls bos

If we free the bo, then the PTE may get deallocated immediately. We have
to make sure that the submission includes a ref to the old bo so that it
remains mapped for the duration of the command execution.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c