i965: fix cube map lock-up / corruption
authorBrian Paul <brianp@vmware.com>
Mon, 9 Mar 2009 17:48:39 +0000 (11:48 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 9 Mar 2009 17:49:57 +0000 (11:49 -0600)
commit6f915b10d5963466567ea5445631192fd9c4e802
treed3f9114e2a0f67bc2f658adef7d5b5186db7017e
parent2b6235c9f79d3d1719601d3a92d67e20a578b626
i965: fix cube map lock-up / corruption

If we're using anything but GL_NEAREST sampling of a cube map, we need to
use the BRW_TEXCOORDMODE_CUBE texcoord wrap mode.  Before this, the GPU
would either lock up or subsequent texture filtering would be corrupted.
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c