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

Fixes

parent 7545b653
......@@ -51,7 +51,7 @@ trans_invalidate_frame(struct panfrost_context *ctx)
trans_emit_tiler_payload(ctx);
trans_emit_vt_framebuffer(ctx);
ctx->dirty |= PAN_DIRTY_VARYINGS;
ctx->dirty |= PAN_DIRTY_VARYINGS | PAN_DIRTY_RASTERIZER;
/* XXX: We wouldn't need to upload this every frame if we were clever about tracking */
trans_upload_varyings_descriptor(ctx);
......@@ -456,7 +456,7 @@ trans_emit_for_draw(struct panfrost_context *ctx)
/* Varyings appear to need 64-byte alignment */
size += 64 - (size & 63);
if (i + 1 != ctx->varying_count)
if ((i + 1) != ctx->varying_count)
ctx->varying_height += size;
}
......
......@@ -70,16 +70,10 @@ int main(int argc, const char **argv)
gallium->set_constant_buffer(gallium, PIPE_SHADER_VERTEX, 0, &consts);
for (int i = 0; i < 60; ++i) {
attributes_data_1_0[0] -= 0.005f;
memcpy(attrib_trans,
attributes_data_1_0,
sizeof(attributes_data_1_0));
union pipe_color_union u = { .f = { 0.3, 0.3, 0.8, 1.0 } };
gallium->clear(gallium, PIPE_CLEAR_COLOR | PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL, &u, 0.0, 0.0);
const struct pipe_rasterizer_state state = {
.line_width = 1.0f,
.front_ccw = false
......@@ -88,15 +82,30 @@ int main(int argc, const char **argv)
gallium->bind_rasterizer_state(gallium,
gallium->create_rasterizer_state(gallium, &state));
for (int i = 0; i < 60; ++i) {
/*
attributes_data_1_0[0] -= 0.005f;
memcpy(attrib_trans,
attributes_data_1_0,
sizeof(attributes_data_1_0));
*/
union pipe_color_union u = { .f = { 0.3, 0.3, 0.8, 1.0 } };
gallium->clear(gallium, PIPE_CLEAR_COLOR | PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL, &u, 0.0, 0.0);
const struct pipe_draw_info info = {
.start = 0,
.count = 4,
.count = 3,
.mode = PIPE_PRIM_TRIANGLE_STRIP
};
gallium->draw_vbo(gallium, &info);
gallium->flush(gallium, NULL, PIPE_FLUSH_END_OF_FRAME);
sleep(1);
}
gallium->transfer_unmap(gallium, transfer);
......
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