i965/miptree: Init r8stencil_needs_update to false
authorNanley Chery <nanley.g.chery@intel.com>
Sat, 9 Jun 2018 00:50:39 +0000 (17:50 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 13 Jul 2018 15:36:19 +0000 (08:36 -0700)
commit74cf188985f4556a998570ac97b637c0c553d3c6
tree72b811b26b291aa3f33b3f81eea2310029f780d4
parentffac81fa5c26d1c1a42f52d3f938ba5edd48cf53
i965/miptree: Init r8stencil_needs_update to false

The current behavior masked two bugs where the flag was not set to true
after modifying the stencil texture. One case was a regression
introduced with commit bdbb527a65fc729e7a9319ae67de60d03d06c3fd and
another was a bug in the depthstencil mapping code. These have since
been fixed.

To prevent such bugs from being masked in the future, initialize
r8stencil_needs_update to false.

v2: Keep the delayed allocation.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c