diff options
author | Samuel Pitoiset <[email protected]> | 2015-10-09 15:33:23 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2015-10-16 21:57:44 +0200 |
commit | cac897197b4ab021e06ed8b023f11035557be55e (patch) | |
tree | c7a7980a7657d4eddcbc4b7438a66b339fff8d06 /src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c | |
parent | 409658c367c50bfb2fae6dec7d5b0ab5db16fe57 (diff) |
nvc0: fix sequence field init for MP counters on Fermi
Sequence fields are located at MP[i] + 0x20 in the buffer object.
This is used to check if result is available for MP[i].
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c b/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c index f7b49da8d43..b810d254c21 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c @@ -439,8 +439,10 @@ nvc0_hw_sm_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) PUSH_SPACE(push, 4 * 8 * 6 + 4); /* set sequence field to 0 (used to check if result is available) */ - for (i = 0; i < screen->mp_count; ++i) - hq->data[i * 10 + 10] = 0; + for (i = 0; i < screen->mp_count; ++i) { + const unsigned b = (0x24 / 4) * i; + hq->data[b + 8] = 0; + } hq->sequence++; for (i = 0; i < cfg->num_counters; ++i) { |