[Mesa-dev] [PATCH 06/10] swr: [rasterizer jitter] Add DEBUGTRAP jit builder function
Tim Rowley
timothy.o.rowley at intel.com
Tue Feb 7 00:40:40 UTC 2017
---
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(-)
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp
index 8744eb6..d65267e 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 67f938e..9d55ce2 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);
--
2.7.4
More information about the mesa-dev
mailing list