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

Abstract dimensionality

parent 765f1d3e
......@@ -396,12 +396,19 @@ trans_emit_tiler_payload(struct panfrost_context *ctx)
uint32_t swizzled_bitmap[3*1] = { 0x0000ffff };
mali_ptr bitmap = panfrost_upload(&ctx->cmdstream, swizzled_bitmap, sizeof(swizzled_bitmap), false);
struct pipe_resource rsrc = {
.width0 = 1,
.height0 = 3,
.depth0 = 1,
};
struct pipe_sampler_view _sampler_view = {
.target = PIPE_TEXTURE_2D,
.swizzle_r = PIPE_SWIZZLE_X,
.swizzle_g = PIPE_SWIZZLE_Y,
.swizzle_b = PIPE_SWIZZLE_Z,
.swizzle_a = PIPE_SWIZZLE_W,
.texture = &rsrc
};
struct pipe_sampler_state _sampler_state = {
......@@ -421,9 +428,9 @@ trans_emit_tiler_payload(struct panfrost_context *ctx)
assert(sampler_view->target == PIPE_TEXTURE_2D);
struct mali_texture_descriptor texture_descriptor = {
.width = MALI_POSITIVE(1),
.height = MALI_POSITIVE(3),
.depth = MALI_POSITIVE(1),
.width = MALI_POSITIVE(sampler_view->texture->width0),
.height = MALI_POSITIVE(sampler_view->texture->height0),
.depth = MALI_POSITIVE(sampler_view->texture->depth0),
/* TODO: Decode */
.format1 = 0x118bb688,
......
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