From: Samuel Pitoiset Date: Sat, 9 Apr 2016 18:31:45 +0000 (+0200) Subject: nvc0: fix address offset when images have multiple levels X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=285f2edd14f82538d27f4df76055a3f154da3b29;p=mesa.git nvc0: fix address offset when images have multiple levels This fixes arb_shader_image_load_store-level. Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c index 5faa2cd5c12..9fddc75cb3f 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c @@ -883,6 +883,7 @@ nve4_set_surface_info(struct nouveau_pushbuf *push, address += mt->layer_stride * z; } } + address += lvl->offset; info[0] = address >> 8; info[2] = width - 1;