diff options
author | George Kyriazis <[email protected]> | 2018-01-19 16:46:56 -0600 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-01-19 17:08:30 -0600 |
commit | 9d80ed0862154dba17fd558dd16b62e6bf43515f (patch) | |
tree | a49c06b5ec1433b9916de9f545b3e6763c2d9333 /src | |
parent | d335b32baf14d6515e4ad204cf5bc9564fecedf5 (diff) |
swr/rast: Fix llvm5 behavior
For some reason llvm5 is picky about accepting a void * type in the
case of building an argument list.
Since we don't care about the type (we ignore the argument for now),
pick another pointer type
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index a9a416a7dee..93e32406123 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp @@ -128,7 +128,8 @@ JitManager::JitManager(uint32_t simdWidth, const char *arch, const char* core) #endif std::vector<Type*> fsArgs; - fsArgs.push_back(PointerType::get(Type::getVoidTy(mContext), 0)); + // llvm5 is picky and does not take a void * type + fsArgs.push_back(PointerType::get(Gen_SWR_FETCH_CONTEXT(this), 0)); fsArgs.push_back(PointerType::get(Gen_SWR_FETCH_CONTEXT(this), 0)); #if USE_SIMD16_SHADERS |