diff options
author | George Kyriazis <[email protected]> | 2018-04-12 13:10:05 -0500 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-04-27 14:36:41 -0500 |
commit | 18c9cb85d16850e945c3bb8ad9f1883fa423bbc2 (patch) | |
tree | ade99f97d69c40e74f7dbf2dab7a93520320d2cf /src/gallium/drivers/swr | |
parent | 1cdbce8805f83023888d9d852733063af01d20df (diff) |
swr/rast: Fix wrong type allocation
ALLOCA pointer elements, not pointers.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp b/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp index 09590b71047..a43c787e494 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp @@ -1014,7 +1014,7 @@ template<typename T> Value* FetchJit::GetSimdValidIndicesHelper(Value* pIndices, { // store 0 index on stack to be used to conditionally load from if index address is OOB - Value* pZeroIndex = ALLOCA(Ty); + Value* pZeroIndex = ALLOCA(Ty->getPointerElementType()); STORE(C((T)0), pZeroIndex); // Load a SIMD of index pointers |