diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp | 7 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp index 8744eb6554d..d65267ecd2b 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp @@ -350,6 +350,13 @@ namespace SwrJit } #endif + ////////////////////////////////////////////////////////////////////////// + Value *Builder::DEBUGTRAP() + { + Function *func = Intrinsic::getDeclaration(JM()->mpCurrentModule, Intrinsic::debugtrap); + return CALL(func); + } + Value *Builder::VRCP(Value *va) { return FDIV(VIMMED1(1.0f), va); // 1 / a diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h index 67f938e192e..9d55ce2fa24 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h +++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h @@ -152,7 +152,8 @@ void STACKRESTORE(Value* pSaved); Value* POPCNT(Value* a); -Value* INT3() { return INTERRUPT(C((uint8_t)3)); } +Value* DEBUGTRAP(); +Value* INT3() { return DEBUGTRAP(); } Value *VEXTRACTI128(Value* a, Constant* imm8); |