v3d/compiler: fix image size for 1D arrays
Reviewed by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5692>
This commit is contained in:
parent
5f1a16d06d
commit
8456ff75b3
|
@ -1762,7 +1762,10 @@ ntq_emit_image_size(struct v3d_compile *c, nir_intrinsic_instr *instr)
|
|||
vir_uniform(c, QUNIFORM_IMAGE_WIDTH, image_index));
|
||||
if (instr->num_components > 1) {
|
||||
ntq_store_dest(c, &instr->dest, 1,
|
||||
vir_uniform(c, QUNIFORM_IMAGE_HEIGHT,
|
||||
vir_uniform(c,
|
||||
instr->num_components == 2 && is_array ?
|
||||
QUNIFORM_IMAGE_ARRAY_SIZE :
|
||||
QUNIFORM_IMAGE_HEIGHT,
|
||||
image_index));
|
||||
}
|
||||
if (instr->num_components > 2) {
|
||||
|
|
Loading…
Reference in New Issue