venus: fix query feedback copy sanitize off by 1
Copy sanitization incorrectly included +1 range of the reset.
Eg Reset Query=0 QueryCount=5 is [0,5) exclusive, not [0,5] inclusive.
Fixes: 5b24ab91e4
("venus: switch to unconditionally deferred query feedback")
Signed-off-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26603>
This commit is contained in:
@@ -547,7 +547,7 @@ vn_combine_query_feedback_batches_and_record(
|
||||
(vn_query_pool_to_handle(batch_clone->query_pool) ==
|
||||
vn_query_pool_to_handle(batch->query_pool)) &&
|
||||
batch_clone->query >= batch->query &&
|
||||
batch_clone->query <= batch->query + batch->query_count) {
|
||||
batch_clone->query < batch->query + batch->query_count) {
|
||||
simple_mtx_lock(&feedback_cmd_pool->mutex);
|
||||
list_move_to(&batch_clone->head,
|
||||
&cmd_pool->free_query_batches);
|
||||
|
Reference in New Issue
Block a user