radeonsi: fix missing num_L2_invalidates increment
authorMarek Olšák <marek.olsak@amd.com>
Wed, 7 Jun 2017 23:32:51 +0000 (01:32 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 12 Jun 2017 16:24:37 +0000 (18:24 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c

index 8508259ad876cbcfa7dd60f4b7aad6236c5877b6..ec564c1a05789a215b05fdc1fa1b18b2233a3724 100644 (file)
@@ -993,6 +993,7 @@ void si_emit_cache_flush(struct si_context *sctx)
                        rctx->flags &= ~(SI_CONTEXT_INV_GLOBAL_L2 |
                                         SI_CONTEXT_WRITEBACK_GLOBAL_L2 |
                                         SI_CONTEXT_INV_VMEM_L1);
+                       sctx->b.num_L2_invalidates++;
                }
 
                /* Allocate memory for the fence. */