radv/image: don't rescale width/height if the format isn't changing
authorDave Airlie <airlied@redhat.com>
Mon, 21 Aug 2017 03:58:27 +0000 (13:58 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 24 Aug 2017 00:14:14 +0000 (01:14 +0100)
commita74d98743115b928eaeabc0d58b63174158aa209
tree67fe8394b487018a039155d4eeeadda980b41845
parent5378b5d0710be00d1316e42e692a52d4bc5d92fe
radv/image: don't rescale width/height if the format isn't changing

If the image view has the same format, we don't need to rescale
the w/h.

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