radv/gfx9: only minify image view width/height/depth before gfx9.
authorDave Airlie <airlied@redhat.com>
Mon, 21 Aug 2017 04:04:02 +0000 (14:04 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 24 Aug 2017 00:14:15 +0000 (01:14 +0100)
commitbae7723e132d3177697606c799eabbb7cdde2f38
treedf09a745ef90758f7c2f4549b55efa5cf5afd359
parenta74d98743115b928eaeabc0d58b63174158aa209
radv/gfx9: only minify image view width/height/depth before gfx9.

For gfx9 the addressing for images has changed, so we need to
provide the hw with the level0, however we still need to scale
for format block differences (so our compressed upload paths still
work).

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_image.c