Commit 0cf256e5 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Cleanups

parent c2ee772b
......@@ -601,7 +601,6 @@ trans_make_fixed_blend_mode(struct pipe_rt_blend_state *blend, struct mali_blend
return false;
out->rgb_mode = rgb_mode;
printf("RGB mode: %x\n", rgb_mode);
out->alpha_mode = alpha_mode;
/* Gallium and Mali represent colour masks identically. XXX: Static assert for future proof */
......@@ -1567,7 +1566,6 @@ panfrost_set_sampler_views(
ctx->sampler_views[shader] = calloc(num_views, sizeof (void *)); /* XXX: leak */
memcpy(ctx->sampler_views[shader], views, num_views * sizeof (void *));
printf("Set %d, %p, %p", num_views, views[0], views[1]);
ctx->sampler_view_count[shader] = num_views;
......@@ -1591,11 +1589,9 @@ panfrost_resource_create_front(struct pipe_screen *screen,
pipe_reference_init(&so->base.reference, 1);
if (template->bind & PIPE_BIND_DISPLAY_TARGET) {
printf("Size trans: %d\n", sizeof(struct panfrost_screen));
struct sw_winsys *winsys = panfrost_screen(screen)->winsys;
unsigned stride;
so->dt = winsys->displaytarget_create(winsys, template->bind, template->format, template->width0, template->height0, 64, map_front_private, &stride);
printf("Stride: %d\n", stride);
}
#endif
/* TODO: Textures n stuff */
......@@ -1666,15 +1662,13 @@ panfrost_set_framebuffer_state(struct pipe_context *pctx,
const struct pipe_framebuffer_state *fb)
{
struct panfrost_context *ctx = panfrost_context(pctx);
int i;
printf("SFR!\n");
for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
for (int i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
struct pipe_surface *cb = i < fb->nr_cbufs ? fb->cbufs[i] : NULL;
int i;
/* check if changing cbuf */
if (ctx->pipe_framebuffer.cbufs[i] != cb) {
printf("K\n");
if (i != 0) {
printf("XXX: Multiple render targets not supported before t7xx!\n");
break;
......@@ -1688,14 +1682,10 @@ panfrost_set_framebuffer_state(struct pipe_context *pctx,
struct pipe_surface *surf = ctx->pipe_framebuffer.cbufs[i];
uint8_t *map = winsys->displaytarget_map(winsys, ((struct panfrost_resource *) surf->texture)->dt, PIPE_TRANSFER_WRITE);
printf("Map\n");
trans_setup_framebuffer(ctx, map, fb->width, fb->height);
printf("Setup\n");
}
}
//trans_setup_framebuffer(ctx, NULL, fb->width, fb->height);
ctx->pipe_framebuffer.nr_cbufs = fb->nr_cbufs;
ctx->pipe_framebuffer.width = fb->width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment