spirv: add OpLifetime*
authorRob Clark <robdclark@gmail.com>
Fri, 23 Feb 2018 20:54:24 +0000 (15:54 -0500)
committerKarol Herbst <karolherbst@gmail.com>
Wed, 11 Dec 2019 23:54:39 +0000 (23:54 +0000)
These are just hints so we can ignore them.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/spirv_to_nir.c

index aff11a2d57933a1f62a8ec9b69a2116f5f07605c..4c85321bff6fa1ab75d55d6f550ace04b1d66cda 100644 (file)
@@ -4981,6 +4981,10 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode,
       break;
    }
 
+   case SpvOpLifetimeStart:
+   case SpvOpLifetimeStop:
+      break;
+
    default:
       vtn_fail_with_opcode("Unhandled opcode", opcode);
    }