From 16751c4dad11814f2b4f265e61e62072dee9bf17 Mon Sep 17 00:00:00 2001 From: Unknown <0.tamas.marton@gmail.com> Date: Fri, 20 Sep 2019 10:49:27 +0100 Subject: [PATCH] fixed thread switch detection --- driver/shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/shader.c b/driver/shader.c index a0dc49d..c747b11 100644 --- a/driver/shader.c +++ b/driver/shader.c @@ -59,7 +59,7 @@ VkResult vkCreateShaderModuleFromRpiAssemblyEXT(VkDevice device, VkRpiShaderModu 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; break;