swr/rast: Adding translate call to builder_gfx_mem.
authorGeorge Kyriazis <george.kyriazis@intel.com>
Thu, 29 Mar 2018 19:43:06 +0000 (14:43 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 18 Apr 2018 15:51:38 +0000 (10:51 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.cpp
src/gallium/drivers/swr/rasterizer/jitter/builder_gfx_mem.h

index e097bd1f6f7db6e11df00e6b00e6efe4d926526a..38ac8253e599c019c4d134ebc89adc1f7a7252ea 100644 (file)
@@ -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));
+    }
+
 }
index 837de444306c20565bbad201890c366283185702..a1c5f46c700cd5b5b9399719b99fee07dfb6bb9b 100644 (file)
@@ -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);