aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2015-10-09 10:36:39 +0200
committerSamuel Pitoiset <[email protected]>2015-10-16 21:57:44 +0200
commitd4ecc2bce458c28355f7ecdea72b619578a69fd5 (patch)
treecd80ddcf3d4d95497232e1184bd45253308c171d /src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c
parentefe37519b0cb0cadea57455d1d2457af09e2e7dd (diff)
nvc0: remove useless call to query_get_cfg() in nvc0_hw_sm_query_end()
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.c4
1 files changed, 1 insertions, 3 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 3bdb90a8d7a..8e2239fd146 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_sm.c
@@ -439,9 +439,6 @@ nvc0_hw_sm_end_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
const uint block[3] = { 32, is_nve4 ? 4 : 1, 1 };
const uint grid[3] = { screen->mp_count, 1, 1 };
unsigned c;
- const struct nvc0_hw_sm_query_cfg *cfg;
-
- cfg = nvc0_hw_sm_query_get_cfg(nvc0, hq);
if (unlikely(!screen->pm.prog)) {
struct nvc0_program *prog = CALLOC_STRUCT(nvc0_program);
@@ -495,6 +492,7 @@ nvc0_hw_sm_end_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
PUSH_SPACE(push, 16);
mask = 0;
for (c = 0; c < 8; ++c) {
+ const struct nvc0_hw_sm_query_cfg *cfg;
unsigned i;
hsq = screen->pm.mp_counter[c];