Commit 7545b653 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Work on deboguing

parent c49856b5
......@@ -426,7 +426,11 @@ trans_emit_for_draw(struct panfrost_context *ctx)
struct panfrost_resource *rsrc = (struct panfrost_resource *) (buf->buffer.resource);
float *f = (float *) rsrc->cpu;
printf("<%f, %f, %f, %f>\n", f[0], f[1], f[2], f[3]);
printf("---\n");
for (int i = 0; i < 3; ++i)
printf("<%f, %f, %f, %f>\n", f[4*i+0], f[4*i+1], f[4*i+2], f[4*i+3]);
printf("---\n");
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;
......@@ -450,7 +454,7 @@ trans_emit_for_draw(struct panfrost_context *ctx)
varyings[i].stride = ctx->varyings_stride[i];
/* Varyings appear to need 64-byte alignment */
size += 64 - size & 63;
size += 64 - (size & 63);
if (i + 1 != ctx->varying_count)
ctx->varying_height += size;
......@@ -888,7 +892,7 @@ panfrost_set_constant_buffer(
/* Multiple constant buffers not yet supported */
assert(index == 0);
void *cpu;
const void *cpu;
struct panfrost_resource *rsrc = (struct panfrost_resource *) (buf->buffer);
......
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