swr/rast: Fix index buffer overfetch issue for non-indexed draws
authorGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 16 Feb 2018 17:14:50 +0000 (11:14 -0600)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 28 Feb 2018 17:42:19 +0000 (11:42 -0600)
commit539de78633c45598e0b1e3b7763ea318f9200c32
treea65a75e81f46177e8ec5e115155e9c558bbed9e0
parent26103487b54a1c1121132cc040927619cce45262
swr/rast: Fix index buffer overfetch issue for non-indexed draws

Populate pLastIndex, even for the non-indexed case.  An zero pLastIndex
can cause the index offsets inside the fetcher to have non-sensical values
that can be either very large positive or very large negative numbers.

Reviewed-By: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/frontend.cpp