radv/ac: switch an if to switch
authorDave Airlie <airlied@redhat.com>
Mon, 16 Jan 2017 22:38:14 +0000 (08:38 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 17 Jan 2017 20:20:48 +0000 (06:20 +1000)
commit5dadd7ca27da6cd5bbac95c8e09130ec4a384e2b
treeea3bb5ca270b53bcb474152f70d29d6a7de28048
parent6b635bbe16c93ad13afa3390d20c2f0f033e065d
radv/ac: switch an if to switch

makes it easier to add other shader stages.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c