radv: Use correct num formats to detect whether we should be use 1.0 or 1.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 15 Feb 2019 17:02:46 +0000 (18:02 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 15 Feb 2019 20:24:16 +0000 (20:24 +0000)
commit4b03a19a0b052fc2fd9c8169891b3fe22a85a1b4
treedd0c0663c0a221dc052be59a7804c30f99467896
parent979b43b347803cd7beafaa94e5e550b2e2cfdbab
radv: Use correct num formats to detect whether we should be use 1.0 or 1.

normalized and scaled formats also return floats.

Fixes: 4b3549c0846 ("radv: reduce the number of loaded channels for vertex input fetches")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_nir_to_llvm.c