nv50,nvc0: fix clear buffer acceleration
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 21 Feb 2018 04:17:31 +0000 (23:17 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 23 Feb 2018 01:47:48 +0000 (20:47 -0500)
commitf6e4f956689719c77e8d22951f4b1f6ed5548da4
tree1dff6ce4b4cd9cc13ddcf13bb03dcd2d436ba373
parentbd9672695b6b95085bb0af1d8eec9b550cdb01e6
nv50,nvc0: fix clear buffer acceleration

Two things were off:
 - valid range was not updated, which could affect waiting for future
   maps
 - fencing was done manually instead of using the *_resource_validate
   helper, which resulted in a missed dirty buffer flag being set

Fixes: KHR-GL45.direct_state_access.buffers_clear
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/nv50/nv50_surface.c
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c