radv: Use correct vgpr_comp_cnt for VS if both prim_id and instance_id are needed.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 20 Aug 2019 23:50:53 +0000 (01:50 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 21 Aug 2019 09:38:46 +0000 (09:38 +0000)
commit2e763f7c87cefbb0c2c8d692e8e1584f89b4c747
treee2c70a097c11ddd6de37f1983daa63848160c8e6
parent7fa17400350b324840de3c742f336aefcd493c47
radv: Use correct vgpr_comp_cnt for VS if both prim_id and instance_id are needed.

Should take the max of the 2.

Fixes: ea337c8b7e9 "radv/gfx10: fix VS input VGPRs with the legacy path"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_shader.c