summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorRhys Kidd <[email protected]>2017-05-21 23:42:47 -0400
committerEric Anholt <[email protected]>2017-05-22 09:50:22 -0700
commit499f45163a35f1dbaa0eea30e41c889e4aa4cb3a (patch)
tree75d8aed7ddf99e028fd30ce1f3e14fd1354ef09e /src/gallium/drivers/vc4
parent30dc56bb5b313ae67c6e8648e23bb38c8e737488 (diff)
vc4: Remove dead code in vc4_dump_surface_msaa()
Coverity caught the use of dead code copy-paste for found_colors[] and num_found_colors. CID: 1341850 Signed-off-by: Rhys Kidd <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r--src/gallium/drivers/vc4/vc4_resource.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c
index 8a5398d9f78..db7faf7ce3b 100644
--- a/src/gallium/drivers/vc4/vc4_resource.c
+++ b/src/gallium/drivers/vc4/vc4_resource.c
@@ -881,8 +881,6 @@ vc4_dump_surface_msaa(struct pipe_surface *psurf)
uint32_t char_w = 140, char_h = 60;
uint32_t char_w_per_tile = char_w / tiles_w - 1;
uint32_t char_h_per_tile = char_h / tiles_h - 1;
- uint32_t found_colors[10];
- uint32_t num_found_colors = 0;
fprintf(stderr, "Surface: %dx%d (%dx MSAA)\n",
psurf->width, psurf->height, psurf->texture->nr_samples);
@@ -920,10 +918,6 @@ vc4_dump_surface_msaa(struct pipe_surface *psurf)
fprintf(stderr, "-");
fprintf(stderr, "\n");
}
-
- for (int i = 0; i < num_found_colors; i++) {
- fprintf(stderr, "color %d: 0x%08x\n", i, found_colors[i]);
- }
}
/** Debug routine to dump the contents of an 8888 surface to the console */