i965: Prevent recursive calls to FLUSH_VERTICES [v2]
authorChad Versace <chad.versace@linux.intel.com>
Wed, 16 Nov 2011 02:20:34 +0000 (18:20 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 22 Nov 2011 18:50:50 +0000 (10:50 -0800)
commitb95986729ef3522a65b7357aea99c6358f9d53c8
tree7d7414c906c723eae0df2033e30a8bcc185a1f5e
parent12498553462c7807034814cf843d86d52c407380
i965: Prevent recursive calls to FLUSH_VERTICES [v2]

To do so, we must resolve all buffers on entering a glBegin/glEnd block.
For the detailed explanation, see the Doxygen comments in this patch.

v2:
   - Fix typo: s/enusure/ensure/.
   - In brwPrepareExecBegin(), do the same resolves as done by
     brw_predraw_resolve_buffers().

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_context.c