[Mesa-dev] [PATCH v2 05/24] nvc0: fix address offset when images have multiple levels

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Apr 25 20:14:53 UTC 2016


This fixes arb_shader_image_load_store-level.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/gallium/drivers/nouveau/nvc0/nvc0_tex.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
index 5faa2cd..9fddc75 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;
-- 
2.8.0



More information about the mesa-dev mailing list