diff options
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_mfbd.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_mfbd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c index 17f59e0aab2..d2cccbe1a66 100644 --- a/src/gallium/drivers/panfrost/pan_mfbd.c +++ b/src/gallium/drivers/panfrost/pan_mfbd.c @@ -42,7 +42,8 @@ panfrost_mfbd_format(struct pipe_surface *surf) .unk1 = 0x4000000, .unk2 = 0x1, .nr_channels = MALI_POSITIVE(desc->nr_channels), - .flags = 0x444, + .unk3 = 0x4, + .flags = 0x8, .swizzle = panfrost_translate_swizzle_4(desc->swizzle), .unk4 = 0x8 }; @@ -52,7 +53,7 @@ panfrost_mfbd_format(struct pipe_surface *surf) if (surf->texture->format == PIPE_FORMAT_B5G6R5_UNORM) { fmt.unk1 = 0x14000000; fmt.nr_channels = MALI_POSITIVE(2); - fmt.flags |= 0x1; + fmt.unk3 |= 0x1; } return fmt; @@ -100,6 +101,7 @@ panfrost_mfbd_set_cbuf( /* Now, we set the layout specific pieces */ if (rsrc->bo->layout == PAN_LINEAR) { + rt->format.block = MALI_MFBD_BLOCK_LINEAR; rt->framebuffer = rsrc->bo->gpu + offset; rt->framebuffer_stride = stride / 16; } else if (rsrc->bo->layout == PAN_AFBC) { @@ -108,7 +110,7 @@ panfrost_mfbd_set_cbuf( rt->afbc.stride = 0; rt->afbc.unk = 0x30009; - rt->format.flags |= MALI_MFBD_FORMAT_AFBC; + rt->format.block = MALI_MFBD_BLOCK_AFBC; mali_ptr afbc_main = rsrc->bo->afbc_slab.gpu + rsrc->bo->afbc_metadata_size; rt->framebuffer = afbc_main; |