aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2018-03-29 14:43:06 -0500
committerGeorge Kyriazis <[email protected]>2018-04-18 10:51:38 -0500
commit4f0df5e2f7023cff6ce81fe26f40ac3dbf2bbc45 (patch)
treeb299d8217f118ccce2bc678c951ad66322074c75 /src/gallium
parentf135f54b18d70ba6224338d4adfcbe762caf5651 (diff)
swr/rast: Adding translate call to builder_gfx_mem.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.cpp5
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.cpp b/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.cpp
index e097bd1f6f7..38ac8253e59 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.cpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.cpp
@@ -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));
+ }
+
}
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h b/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h
index 837de444306..a1c5f46c700 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h
+++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h
@@ -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);