mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
vc4: Drop the dump_fbo() routine.
Now that eglkms is working, and some tests are working under PIGLIT_PLATFORM=gbm, I don't think I need this any more.
This commit is contained in:
parent
8106722bbc
commit
c8e0dd2a2c
1 changed files with 0 additions and 50 deletions
|
|
@ -36,54 +36,6 @@
|
|||
#include "vc4_context.h"
|
||||
#include "vc4_resource.h"
|
||||
|
||||
static void
|
||||
dump_fbo(struct vc4_context *vc4, struct vc4_bo *fbo)
|
||||
{
|
||||
#ifndef USE_VC4_SIMULATOR
|
||||
uint32_t *map = vc4_bo_map(fbo);
|
||||
uint32_t width = vc4->framebuffer.width;
|
||||
uint32_t height = vc4->framebuffer.height;
|
||||
uint32_t chunk_w = width / 79;
|
||||
uint32_t chunk_h = height / 40;
|
||||
uint32_t found_colors[10];
|
||||
uint32_t num_found_colors = 0;
|
||||
|
||||
for (int by = 0; by < height; by += chunk_h) {
|
||||
for (int bx = 0; bx < width; bx += chunk_w) {
|
||||
bool on = false, black = false;
|
||||
|
||||
for (int y = by; y < MIN2(height, by + chunk_h); y++) {
|
||||
for (int x = bx; x < MIN2(width, bx + chunk_w); x++) {
|
||||
uint32_t pix = map[y * width + x];
|
||||
on |= pix != 0;
|
||||
black |= pix == 0xff000000;
|
||||
|
||||
int i;
|
||||
for (i = 0; i < num_found_colors; i++) {
|
||||
if (pix == found_colors[i])
|
||||
break;
|
||||
}
|
||||
if (i == num_found_colors &&
|
||||
num_found_colors < Elements(found_colors))
|
||||
found_colors[num_found_colors++] = pix;
|
||||
}
|
||||
}
|
||||
if (black)
|
||||
fprintf(stderr, "O");
|
||||
else if (on)
|
||||
fprintf(stderr, "X");
|
||||
else
|
||||
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]);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
vc4_setup_rcl(struct vc4_context *vc4)
|
||||
{
|
||||
|
|
@ -239,8 +191,6 @@ vc4_flush(struct pipe_context *pctx)
|
|||
vc4->dirty = ~0;
|
||||
vc4->resolve = 0;
|
||||
vc4->cleared = 0;
|
||||
|
||||
dump_fbo(vc4, ctex->bo);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue