mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +01:00
swr/rast: Adding translate call to builder_gfx_mem.
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
f135f54b18
commit
4f0df5e2f7
2 changed files with 7 additions and 0 deletions
|
|
@ -133,4 +133,9 @@ namespace SwrJit
|
|||
return Builder::LOAD(BasePtr, offset, name);
|
||||
}
|
||||
|
||||
Value* BuilderGfxMem::TranlsateGfxAddress(Value* xpGfxAddress)
|
||||
{
|
||||
return INT_TO_PTR(xpGfxAddress, PointerType::get(mInt8Ty, 0));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@ namespace SwrJit
|
|||
|
||||
virtual Value *GATHERDD(Value* src, Value* pBase, Value* indices, Value* mask, uint8_t scale = 1, JIT_MEM_CLIENT usage = MEM_CLIENT_INTERNAL);
|
||||
|
||||
Value* TranlsateGfxAddress(Value* xpGfxAddress);
|
||||
|
||||
protected:
|
||||
|
||||
void AssertGFXMemoryParams(Value* ptr, Builder::JIT_MEM_CLIENT usage);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue