mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 19:50:28 +01:00
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 <sroland@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
af3685d149
commit
6c1432f0be
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue