radv: Clamp gfx9 image view extents to the allocated image extents.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 24 Nov 2018 22:21:05 +0000 (23:21 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 27 Nov 2018 09:19:52 +0000 (10:19 +0100)
commit08ea6b9d9bb047603c249468dfe00d7bb9603d5e
tree37a9e40612eaee38931840b63638d3918b36c82e
parent453570cd8c09bc480871504d2eee2851aea78087
radv: Clamp gfx9 image view extents to the allocated image extents.

Mirrors AMDVLK. Looks like if we go over the alignment of height
we actually start to change the addressing. Seems like the extra
miplevels actually work with this.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108245
Fixes: f6cc15dccd5 "radv/gfx9: fix block compression texture views. (v2)"
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_image.c