mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nvc0: stick zero values for the compute invocation counts
Not quite perfect, but at least we don't end up with random values in the query buffer. Fixes KHR-GL45.pipeline_statistics_query_tests_ARB.functional_default_qo_values Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: 19.0 <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
e00799d3dc
commit
6adb9b38bf
1 changed files with 2 additions and 0 deletions
|
|
@ -198,6 +198,7 @@ nvc0_hw_begin_query(struct nvc0_context *nvc0, struct nvc0_query *q)
|
|||
nvc0_hw_query_get(push, q, 0xc0 + 0x70, 0x0980a002); /* ROP, PIXELS */
|
||||
nvc0_hw_query_get(push, q, 0xc0 + 0x80, 0x0d808002); /* TCP, LAUNCHES */
|
||||
nvc0_hw_query_get(push, q, 0xc0 + 0x90, 0x0e809002); /* TEP, LAUNCHES */
|
||||
((uint64_t *)hq->data)[(12 + 10) * 2] = 0;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
@ -270,6 +271,7 @@ nvc0_hw_end_query(struct nvc0_context *nvc0, struct nvc0_query *q)
|
|||
nvc0_hw_query_get(push, q, 0x70, 0x0980a002); /* ROP, PIXELS */
|
||||
nvc0_hw_query_get(push, q, 0x80, 0x0d808002); /* TCP, LAUNCHES */
|
||||
nvc0_hw_query_get(push, q, 0x90, 0x0e809002); /* TEP, LAUNCHES */
|
||||
((uint64_t *)hq->data)[10 * 2] = 0;
|
||||
break;
|
||||
case PIPE_QUERY_TIMESTAMP_DISJOINT:
|
||||
/* This query is not issued on GPU because disjoint is forced to false */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue