nv50,nvc0: detect underlying resource changes and update tic
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 15 Sep 2015 05:32:40 +0000 (01:32 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 17 Sep 2015 23:50:47 +0000 (19:50 -0400)
commit323c91250682ac931941047f282a613c74b1ba26
treeb630973ab9b86c7a80a54c1317268837b6e85955
parent8d3b92af21afb58b6a65e18bb05785d7aae72c27
nv50,nvc0: detect underlying resource changes and update tic

When updating texture buffers, we might end up replacing the whole
buffer. Check that the tic address matches the resource address, and if
not, update the tic and reupload it.

This fixes:
  arb_direct_state_access-texture-buffer
  arb_texture_buffer_object-data-sync

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_tex.c
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c