From 09c54cfd2d25b13676df946bc937c70468f07b24 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Tue, 24 Jan 2017 13:30:05 -0600 Subject: swr: [rasterizer jitter] Add DEBUGTRAP jit builder function Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp | 7 +++++++ src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/swr') 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); -- cgit v1.2.3