[Mesa-dev] [PATCH] r600/eg: fix cube map array buffer images.
Dave Airlie
airlied at gmail.com
Fri Feb 2 06:57:37 UTC 2018
From: Dave Airlie <airlied at redhat.com>
This fixes a crash in:
KHR-GL45.texture_cube_map_array.texture_size_compute_sh.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/drivers/r600/r600_state_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index d9c74b5f47..477372c3c1 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -1421,7 +1421,7 @@ void eg_setup_buffer_constants(struct r600_context *rctx, int shader_type)
int idx = i - sview_bits;
if (images->enabled_mask & (1 << idx)) {
uint32_t offset = (base_offset / 4) + i;
- constants[offset] = images->views[i].base.resource->array_size / 6;
+ constants[offset] = images->views[idx].base.resource->array_size / 6;
}
}
}
--
2.14.3
More information about the mesa-dev
mailing list