radv: Use correct pitch for views with different block size.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 18 Dec 2016 12:28:04 +0000 (13:28 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 18 Dec 2016 19:52:15 +0000 (20:52 +0100)
commit35cf08ef64250c612bca4253df8ecdabd1735095
tree8e82b3ac37a368a8597df0f0262663f90a9a74a2
parent94a7434bbc26590943fed5879d49bbc3395da6e5
radv: Use correct pitch for views with different block size.

Needed when accessing a comrpessed texture as R32G32B32A32 from a shader. This
was not encountered previously, as we used the CB for the reinterpretation, which
does not use this pitch.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c