summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-06-03 19:17:46 +0200
committerMarek Olšák <[email protected]>2016-06-05 17:00:14 +0200
commit3b44864ab794ea487d22499e7e2c42565aaac085 (patch)
tree1a3ddfb46b467e971660b31d035ea5dab7bfc308
parentfd6bbc2ee205ed02f66a8d8ef5b2adf4005d588c (diff)
radeonsi: fix images with level > 0
This should fix spec@arb_shader_image_load_store@level. Broken by: Commit: 95c5bbae66af3ca1f805d94f6fe8d8e4ba2c9c43 radeonsi: set some image descriptor fields at bind time Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_descriptors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
index 7aaac3950b8..baddc5f245c 100644
--- a/src/gallium/drivers/radeonsi/si_descriptors.c
+++ b/src/gallium/drivers/radeonsi/si_descriptors.c
@@ -602,7 +602,7 @@ static void si_set_shader_image(struct si_context *ctx,
view->u.tex.last_layer,
width, height, depth,
desc, NULL);
- si_set_mutable_tex_desc_fields(tex, tex->surface.level, level,
+ si_set_mutable_tex_desc_fields(tex, &tex->surface.level[level], level,
util_format_get_blockwidth(view->format),
false, desc);
}