summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-06-05 09:50:26 -0400
committerRob Clark <[email protected]>2018-06-11 09:06:03 -0400
commite9fc9c16c9d0e3c2a8688e06ab33c35f28671ec5 (patch)
tree9a5b9b0eb7031d9b57b3ed0b9ff9ec705869ab45 /src/gallium/drivers/freedreno
parent132e5b0b34d9c45e902a4c9acd21b4408d96c3b2 (diff)
freedreno/a5xx: correct image/ssbo offset
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_image.c b/src/gallium/drivers/freedreno/a5xx/fd5_image.c
index a945e7e5efa..6699375b9ae 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_image.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_image.c
@@ -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;
}