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

Enable the texture

parent c36021c2
......@@ -111,6 +111,8 @@ panfrost_shader_compile(struct panfrost_context *ctx, struct mali_tripipe *meta,
meta->attribute_count = 0;
meta->varying_count = 2;
meta->uniform_count = 1;
meta->texture_count = 1;
meta->sampler_count = 1;
meta->unknown1 = MALI_NO_ALPHA_TO_COVERAGE | 0x200; /* XXX: WTF is this?! */
}
......
......@@ -326,6 +326,9 @@ trans_emit_tiler_payload(struct panfrost_context *ctx)
/* Hardcode in a texture */
uint32_t swizzled_bitmap[3*1] = { 0x0000ffff };
mali_ptr bitmap = panfrost_upload(&ctx->cmdstream, swizzled_bitmap, sizeof(swizzled_bitmap), false);
struct mali_texture_descriptor texture_descriptor = {
.width = MALI_POSITIVE(1),
.height = MALI_POSITIVE(3),
......@@ -339,8 +342,8 @@ trans_emit_tiler_payload(struct panfrost_context *ctx)
.unknown5 = 0x0,
.unknown6 = 0x0,
.unknown7 = 0x0,
.swizzled_bitmap_0 = 0,
.swizzled_bitmap_1 = 0,
.swizzled_bitmap_0 = bitmap,
.swizzled_bitmap_1 = bitmap
};
uint64_t texture_trampoline = panfrost_upload(&ctx->cmdstream, &texture_descriptor, sizeof(texture_descriptor), false);
......
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