radv: fix radv_get_aspect_format() for D+S formats
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 2 May 2019 16:07:11 +0000 (18:07 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 3 May 2019 07:01:10 +0000 (09:01 +0200)
commite68d7bec677f61645dc41226df5cfa9b56b01b56
treeff5011e8d9ea3a0f444eb0090f97ea086c546704
parentaa675cef5e589bb1f4dacb94e22d8195f1d7e5ac
radv: fix radv_get_aspect_format() for D+S formats

This restores the previous behaviour before YCBCR landed. For D+S
formats, it returns the depth format.

This fixes an assertion with Thrones of Britannia.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110540
Fixes: 66507cc6563 ("radv: Add single plane image views & meta operations")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_image.c