diff options
author | Tim Rowley <[email protected]> | 2017-01-24 13:30:05 -0600 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-02-08 13:57:47 -0600 |
commit | 09c54cfd2d25b13676df946bc937c70468f07b24 (patch) | |
tree | 8b4e2467007b19f22eb3c36c4e84a95efa4f5867 /src/gallium/drivers/swr/rasterizer | |
parent | b01f26e0056b6efb96d91cb769cda0ef18c0044a (diff) |
swr: [rasterizer jitter] Add DEBUGTRAP jit builder function
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-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); |