1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-02-12 09:54:20 +01:00

fixed thread switch detection

This commit is contained in:
Unknown 2019-09-20 10:49:27 +01:00
parent 194f526c23
commit 16751c4dad

View File

@ -59,7 +59,7 @@ VkResult vkCreateShaderModuleFromRpiAssemblyEXT(VkDevice device, VkRpiShaderModu
for(uint64_t c = 0; c < numInstructions; ++c) for(uint64_t c = 0; c < numInstructions; ++c)
{ {
if((instructions[c] & (0xf << 60)) == (2 << 60)) if((instructions[c] & (0xfll << 60)) == (2ll << 60))
{ {
shader->hasThreadSwitch = 1; shader->hasThreadSwitch = 1;
break; break;