From 42215e61168edb01482cbfe4dcf5031613e5e4c5 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Thu, 2 Jun 2016 15:24:34 -0600 Subject: [PATCH] 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 --- src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.30.2