[Nouveau] [PATCH v2] nv50, nvc0: detect underlying resource changes and update tic

2015-09-17 Thread Ilia Mirkin
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 Cc

[Nouveau] [PATCH v2] nv50, nvc0: detect underlying resource changes and update tic

2015-09-16 Thread Ilia Mirkin
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 Cc