From: Tim Rowley Date: Thu, 2 Jun 2016 21:24:34 +0000 (-0600) Subject: swr: [rasterizer jitter] unitialized component fix in fetch jit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42215e61168edb01482cbfe4dcf5031613e5e4c5;p=mesa.git swr: [rasterizer jitter] unitialized component fix in fetch jit Was trying to store an extra uninitialized component. Only affects component packing, which isn't enabled (yet). 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 71f1a3abe60..bae0f244fb4 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp @@ -1073,7 +1073,7 @@ void FetchJit::JitGatherVertices(const FETCH_COMPILE_STATE &fetchState, Value* f // if we have a partially filled vVertexElement struct, output it if(currentVertexElement > 0){ - StoreVertexElements(pVtxOut, outputElt++, currentVertexElement+1, vVertexElements); + StoreVertexElements(pVtxOut, outputElt++, currentVertexElement, vVertexElements); } }