diff options
author | Dave Airlie <[email protected]> | 2018-02-02 16:56:27 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-02-05 05:14:56 +1000 |
commit | 6c1432f0be9c7772573bb86b997c9f085d16c204 (patch) | |
tree | d817d1293e8e847f7e53120daf199cb7bfe2e66c | |
parent | af3685d14936844f79e6f372b4b258e29375f21b (diff) |
r600/eg: fix cube map array buffer images.
This fixes a crash in:
KHR-GL45.texture_cube_map_array.texture_size_compute_sh.
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/gallium/drivers/r600/r600_state_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index d9c74b5f47c..477372c3c14 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; } } } |