radv/gfx9: fix block compression texture views.
authorDave Airlie <airlied@redhat.com>
Fri, 29 Dec 2017 00:30:39 +0000 (10:30 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 29 Dec 2017 01:42:47 +0000 (11:42 +1000)
commit59515780433837ad3975f8ed20b93cf2fe6870e5
treee6b1bf9e3362c4d79acc803d5267dfd48fb10eab
parent420627e6e79fe96504bbef463433bb827e597d84
radv/gfx9: fix block compression texture views.

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

Fixes:
dEQP-VK.image.texel_view_compatible.graphic.extended*bc*

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