freedreno/layout: fix explicit layout offset not added to slice offset
Accidentally broke this when rebasing the offending commit.
My use case with non-zero explicit offset is UV plane of UBWC NV12, and
only the UBWC slice offset is used for the UBWC sampler, so I didn't catch
it immediately.
Fixes: d53dc6c376
("freedreno/fdl6: rework layout code a bit (reduce linear align to 64 bytes)")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5761>
This commit is contained in:

committed by
Marge Bot

parent
01986eaf05
commit
3c5512ce50
@@ -218,7 +218,7 @@ fdl6_layout(struct fdl_layout *layout,
|
||||
if (level == mip_levels - 1)
|
||||
height = align(nblocksy, 4);
|
||||
|
||||
slice->offset = layout->size;
|
||||
slice->offset = offset + layout->size;
|
||||
slice->pitch = align(u_minify(pitch0, level), pitchalign);
|
||||
|
||||
/* 1d array and 2d array textures must all have the same layer size
|
||||
|
Reference in New Issue
Block a user