mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
freedreno/a5xx: correct image/ssbo offset
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
132e5b0b34
commit
e9fc9c16c9
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ static void translate_image(struct fd5_image *img, struct pipe_image_view *pimg)
|
|||
img->array_pitch = 0;
|
||||
} else {
|
||||
lvl = pimg->u.tex.level;
|
||||
img->offset = rsc->slices[lvl].offset;
|
||||
img->offset = fd_resource_offset(rsc, lvl, pimg->u.tex.first_layer);
|
||||
img->pitch = rsc->slices[lvl].pitch * rsc->cpp;
|
||||
img->array_pitch = rsc->layer_size;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue