swr: [rasterizer jitter] unitialized component fix in fetch jit
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 2 Jun 2016 21:24:34 +0000 (15:24 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 23 Jun 2016 15:50:12 +0000 (10:50 -0500)
Was trying to store an extra uninitialized component.
Only affects component packing, which isn't enabled (yet).

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp

index 71f1a3abe606b301cee77e8c9a8e3b0a8b5bc2dc..bae0f244fb44b0d14ac6a52eeaa39b92f1693873 100644 (file)
@@ -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);
     }
 }