etnaviv: explicitly call resource_written(..)
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 31 Jul 2019 18:10:14 +0000 (20:10 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 5 Apr 2020 18:01:43 +0000 (18:01 +0000)
commit238190403068edf4c6a9b761095193a88bea841d
tree806b3ae4489902c8d1e173e2dc9472489425a64d
parentf2c4892512732bbf08951a188e4a5774951d6f86
etnaviv: explicitly call resource_written(..)

We might end in cases where etna_acc_get_query_result(..) gets called
within one draw call (aka before flushing). At this point the status
of the resource was not set but gets used in etna_acc_get_query_result(..)
to handle different wait cases. Fix this issue by calling resource_written(..)
explicitly.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1530>
src/gallium/drivers/etnaviv/etnaviv_context.c
src/gallium/drivers/etnaviv/etnaviv_query_acc.c