summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2015-10-09 10:54:15 +0200
committerSamuel Pitoiset <[email protected]>2015-10-16 21:57:44 +0200
commitc3570c3fb9ee78ab7af2de781a7056b3642bebb9 (patch)
treeabcf1910ae7f88400489a42dd3d50efa63a9e11f /src/gallium
parentdab7e0ed09073b0fd7c37d0fabd70f302acbce32 (diff)
nvc0: rip off the kepler MP-enabling logic from the Fermi codepath
Writing 0x1fcb to 0x419eac is definitely not related to MP counters and has no effect on Fermi (although this enables MP counters on Kepler). Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c8
1 files changed, 1 insertions, 7 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 f83966a6c74..a74bfee60e6 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c
@@ -436,13 +436,7 @@ nvc0_hw_sm_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
}
assert(cfg->num_counters <= 4);
- PUSH_SPACE(push, 4 * 8 * 6 + 6);
-
- if (!screen->pm.mp_counters_enabled) {
- screen->pm.mp_counters_enabled = true;
- BEGIN_NVC0(push, SUBC_SW(0x06ac), 1);
- PUSH_DATA (push, 0x1fcb);
- }
+ 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)