diff options
author | Samuel Pitoiset <[email protected]> | 2016-04-09 20:31:45 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2016-04-26 19:47:49 +0200 |
commit | 285f2edd14f82538d27f4df76055a3f154da3b29 (patch) | |
tree | 232e4b82ff40dee822910bc3e386f3dd88ce56a4 /src/gallium/drivers | |
parent | e28f247e249946d8c311b359d83ce34fd29e4a67 (diff) |
nvc0: fix address offset when images have multiple levels
This fixes arb_shader_image_load_store-level.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_tex.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |