Merge pull request #1657 from kd-11/vulkan-wip

vulkan: Properly handle ssa variable as local
This commit is contained in:
vlj 2016-04-06 01:37:13 +02:00
commit 4eb1267c5c
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,9 @@ void VKFragmentDecompilerThread::insertIntputs(std::stringstream & OS)
{ {
for (const ParamItem& PI : PT.items) for (const ParamItem& PI : PT.items)
{ {
//ssa is defined in the program body and is not a varying type
if (PI.name == "ssa") continue;
const vk::varying_register_t &reg = vk::get_varying_register(PI.name); const vk::varying_register_t &reg = vk::get_varying_register(PI.name);
std::string var_name = PI.name; std::string var_name = PI.name;