radv/gfx9: fix block compression texture views. (v2)
authorDave Airlie <airlied@redhat.com>
Mon, 29 Jan 2018 04:15:09 +0000 (04:15 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 29 Jan 2018 21:39:13 +0000 (07:39 +1000)
commitf6cc15dccd54ff70be987457af790cac1c8fe5bb
tree6c217cad70448ba0140037df6f9617d81cb1bc1d
parent0347a83bbfd8d993742e125335c6ae46a6aa5a15
radv/gfx9: fix block compression texture views. (v2)

This ports a fix from amdvlk, to fix the sizing for mip levels
when block compressed images are viewed using uncompressed views.

My original fix didn't power the clamping, but it looks like
the clamping is required to stop the sizing going too large.

Fixes:
dEQP-VK.image.texel_view_compatible.graphic.extended*bc*
Doesn't crash DOW3 anymore.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fixes: e38685cc62e 'Revert "radv: disable support for VEGA for now."'
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c