diff options
author | Icecream95 <[email protected]> | 2020-06-02 14:13:03 +1200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-03 15:19:43 +0000 |
commit | 9ac106defe351428fbe3c62547e6be918b603d32 (patch) | |
tree | d318aa93accd415a20e6ae6d5e662f32232bdbe9 /src/gallium/drivers | |
parent | a34cc97ca3e19fb36045bf361b3a6bd865f71c7b (diff) |
panfrost: Decode AFBC flag bits
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5293>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_mfbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c index 552da168690..4b762d1b646 100644 --- a/src/gallium/drivers/panfrost/pan_mfbd.c +++ b/src/gallium/drivers/panfrost/pan_mfbd.c @@ -241,7 +241,7 @@ panfrost_mfbd_set_cbuf( rt->framebuffer = base + header_size; rt->afbc.metadata = base; rt->afbc.stride = 0; - rt->afbc.unk = 0x30009; + rt->afbc.flags = MALI_AFBC_FLAGS | MALI_AFBC_YTR; /* TODO: The blob sets this to something nonzero, but it's not * clear what/how to calculate/if it matters */ @@ -285,7 +285,7 @@ panfrost_mfbd_set_zsbuf( fbx->ds_afbc.depth_stencil_afbc_metadata = base; fbx->ds_afbc.depth_stencil_afbc_stride = 0; - fbx->ds_afbc.zero1 = 0x10009; + fbx->ds_afbc.flags = MALI_AFBC_FLAGS; fbx->ds_afbc.padding = 0x1000; } else if (rsrc->layout == MALI_TEXTURE_LINEAR || rsrc->layout == MALI_TEXTURE_TILED) { /* TODO: Z32F(S8) support, which is always linear */ |