[Mesa-dev] [PATCH 28/45] swr/rast: Adding translate call to builder_gfx_mem.

George Kyriazis george.kyriazis at intel.com
Fri Apr 13 19:02:08 UTC 2018


---
 src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.cpp | 5 +++++
 src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h   | 2 ++
 2 files changed, 7 insertions(+)

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 bfb3057..090b761 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 18c25b9..8f39b9d 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_RASTY);
 
+        Value* TranlsateGfxAddress(Value* xpGfxAddress);
+
     protected:
 
         void AssertGFXMemoryParams(Value* ptr, Builder::JIT_MEM_CLIENT usage);
-- 
2.7.4



More information about the mesa-dev mailing list