Commit 7072d291 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Chug along

parent 598348bf
......@@ -1121,18 +1121,21 @@ panfrost_draw_vbo(
ctx->payload_vertex.draw_start = info->start;
ctx->payload_tiler.draw_start = info->start;
int mode = info->mode;
#ifdef HAVE_DRI3
/* Fallback for non-ES draw modes */
if (info->mode >= PIPE_PRIM_QUADS) {
mode = PIPE_PRIM_TRIANGLE_STRIP;
/*
util_primconvert_save_rasterizer_state(ctx->primconvert, &ctx->rasterizer->base);
util_primconvert_draw_vbo(ctx->primconvert, info);
printf("Fallback\n");
return;
return; */
}
#endif
ctx->payload_tiler.draw_mode = g2m_draw_mode(info->mode);
ctx->payload_tiler.draw_mode = g2m_draw_mode(mode);
ctx->vertex_count = info->count;
......@@ -1144,7 +1147,7 @@ panfrost_draw_vbo(
//assert(!info->restart_index); /* TODO: Research */
assert(!info->index_bias);
assert(!info->min_index);
//assert(!info->min_index); /* TODO: Use value */
ctx->payload_tiler.unknown_draw |= trans_translate_index_size(info->index_size);
......@@ -1751,7 +1754,7 @@ trans_setup_hardware(struct panfrost_context *ctx)
{
ctx->fd = pandev_open();
trans_allocate_slab(ctx, &ctx->cmdstream, 8*64, true, true, 0, 0, 0);
trans_allocate_slab(ctx, &ctx->cmdstream, 8*64*64, true, true, 0, 0, 0);
trans_allocate_slab(ctx, &ctx->textures, 8*64*64, true, true, 0, 0, 0);
trans_allocate_slab(ctx, &ctx->scratchpad, 16, true, true, 0, 0, 0);
trans_allocate_slab(ctx, &ctx->varying_mem, 32, false, true, MALI_MEM_COHERENT_LOCAL, 0, 0);
......
......@@ -55,6 +55,7 @@ struct panfrost_context {
/* TODO: DRM driver? */
int fd;
struct pipe_framebuffer_state pipe_framebuffer;
struct panfrost_memory cmdstream;
struct panfrost_memory textures;
......
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