projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
132e5b0
)
freedreno/a5xx: correct image/ssbo offset
author
Rob Clark
<robdclark@gmail.com>
Tue, 5 Jun 2018 13:50:26 +0000
(09:50 -0400)
committer
Rob Clark
<robdclark@gmail.com>
Mon, 11 Jun 2018 13:06:03 +0000
(09:06 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_image.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/a5xx/fd5_image.c
b/src/gallium/drivers/freedreno/a5xx/fd5_image.c
index
a945e7e
..
6699375
100644
(file)
--- 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;
}