From: George Kyriazis Date: Thu, 12 Apr 2018 18:10:05 +0000 (-0500) Subject: swr/rast: Fix wrong type allocation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18c9cb85d16850e945c3bb8ad9f1883fa423bbc2;p=mesa.git swr/rast: Fix wrong type allocation ALLOCA pointer elements, not pointers. Reviewed-by: Bruce Cherniak --- 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 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