nvfx: reset nvfx->hw_zeta
authorXavier Chantry <chantry.xavier@gmail.com>
Wed, 24 Nov 2010 20:50:36 +0000 (21:50 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 25 Nov 2010 16:04:29 +0000 (17:04 +0100)
commitc14a261eb96b52052233e7590aa2c28f6f21b8ea
tree7085ff44eec98915049d08af464f7f01483f84d3
parent049065cdfaf3f890381133c4a98743b22907797d
nvfx: reset nvfx->hw_zeta

If nvfx_framebuffer prepare and validate were called successively with
fb->zsbuf not NULL and then NULL, nvfx->hw_zeta would contain garbage and
this would cause failures in nvfx_framebuffer_relocate/OUT_RELOC(hw_zeta).

This was triggered by piglit/texwrap 2D GL_DEPTH_COMPONENT24 and caused
first a 'write to user buffer!!' error in libdrm and then worse things.

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/drivers/nvfx/nvfx_state_fb.c