mirror of
https://github.com/Yours3lf/rpi-vk-driver.git
synced 2025-03-21 12:29:15 +01:00
fixed thread switching detection
This commit is contained in:
parent
686e730cbf
commit
15d9891d00
@ -53,13 +53,16 @@ VkResult rpi_vkCreateShaderModule(VkDevice device, const VkShaderModuleCreateInf
|
||||
hadCoordinate = 1;
|
||||
}
|
||||
|
||||
for(uint64_t d = 0; d < ci->numInstructions[c]; ++d)
|
||||
if(c == VK_RPI_ASSEMBLY_TYPE_FRAGMENT)
|
||||
{
|
||||
uint64_t s = (ci->instructions[c][d] & (0xfll << 60)) >> 60;
|
||||
if(s == 2ll)
|
||||
for(uint64_t d = 0; d < ci->numInstructions[c]; ++d)
|
||||
{
|
||||
shader->hasThreadSwitch = 1;
|
||||
break;
|
||||
uint64_t s = (ci->instructions[c][d] & (0xfll << 60)) >> 60;
|
||||
if(s == 2ll || s == 6ll)
|
||||
{
|
||||
shader->hasThreadSwitch = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user