nvc0: fix writing query results into buffer
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 21 Feb 2018 05:10:24 +0000 (00:10 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 23 Feb 2018 01:47:48 +0000 (20:47 -0500)
commit33ce3569c5b87523e2ed94c383d2ee245f1beaaf
tree94a9a60b28f5c0c8a0c95f6708ece2290c4d40ba
parentf6e4f956689719c77e8d22951f4b1f6ed5548da4
nvc0: fix writing query results into buffer

We need to mark the range as valid, and validate the resource using a
helper to ensure that the buffer status is marked properly.

Fixes some CTS pipeline stats query tests, and
KHR-GL45.direct_state_access.queries_functional

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/nvc0/nvc0_query_hw.c