mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
swr: [rasterizer jitter] Add DEBUGTRAP jit builder function
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
b01f26e005
commit
09c54cfd2d
2 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue