radv: cleanup some image view descriptor setup.
authorDave Airlie <airlied@redhat.com>
Mon, 21 Aug 2017 03:56:33 +0000 (13:56 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 24 Aug 2017 00:14:14 +0000 (01:14 +0100)
commit5378b5d0710be00d1316e42e692a52d4bc5d92fe
tree64d4de32a755555cf2f138f892b655b12d0812a6
parent9c080100d336e4f90575d5138508b519ed334eef
radv: cleanup some image view descriptor setup.

Avoid passing the vulkan image creation into the image view descriptor
setup. This cleans up the usage of range inside the init, instead
using the properly inited values in the image view.

This is just a cleanup but some future vega changes will depend on it.

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_image.c
src/amd/vulkan/radv_private.h