i965: Use current draw buffer instead of drawable visual to get alpha bits
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Dec 2009 00:16:26 +0000 (16:16 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Dec 2009 00:30:53 +0000 (16:30 -0800)
commitb90f7f3ad324b1e4c39e334cdeb9556c3eb808ab
tree19b0ce94eef3cc45db906f2e4fe803ff9369c4be
parentf4de0b176d282a75ee3f47547667feea31e0d3f3
i965: Use current draw buffer instead of drawable visual to get alpha bits

Use the currently bound draw buffer instead of the visual from the
drawable used to create the context.  This cause problems generating
mipmaps for an RGBA texture in an RGB context.

This fixes the failure in piglit's glsl-lod-bias test reported in bug #25614.
src/mesa/drivers/dri/i965/brw_cc.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c