Commit d80b0717 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Try to debug?

parent 1b518686
......@@ -413,6 +413,7 @@ trans_emit_for_draw(struct panfrost_context *ctx)
if (ctx->dirty & PAN_DIRTY_VERT_BUF) {
/* TODO: Only update the dirtied buffers */
struct mali_attr attrs[PIPE_MAX_ATTRIBS];
printf("vert buf dirty\n");
for (int i = 0; i < ctx->vertex_buffer_count; ++i) {
//struct pipe_vertex_element *pipe = &ctx->vertex->pipe[i];
......@@ -420,6 +421,10 @@ trans_emit_for_draw(struct panfrost_context *ctx)
struct pipe_vertex_buffer *buf = &ctx->vertex_buffers[i];
struct panfrost_resource *rsrc = (struct panfrost_resource *) (buf->buffer.resource);
printf("Attrs %d\n", i);
float *f = (float *) rsrc->cpu;
printf("<%f, %f, %f, %f>\n", f[0], f[1], f[2], f[3]);
attrs[i] = trans_attr(sizeof(float), MALI_NEGATIVE(hw->nr_components), ctx->vertex_count);
attrs[i].elements = panfrost_upload(&ctx->cmdstream, rsrc->cpu, attrs[i].size, false) | 1;
}
......@@ -888,6 +893,8 @@ panfrost_transfer_map(struct pipe_context *pctx,
struct panfrost_resource *rsrc = (struct panfrost_resource *) resource;
printf("Doooing a traaansfer map\n");
return ((uint8_t *) rsrc->cpu) + transfer->box.x;
}
......
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