i965: Initialize intel_context::vtbl after calling intelInitContext()
authorChad Versace <chad@chad-versace.us>
Wed, 31 Aug 2011 19:16:13 +0000 (12:16 -0700)
committerChad Versace <chad@chad-versace.us>
Tue, 18 Oct 2011 18:42:54 +0000 (11:42 -0700)
commitb393fa91676aba0883d8f5260bd2910777aceb11
treee2cb2b7abaef562fbf51e4832e71e990310c6864
parentef6de0141ca7c9757ef40b3db18202b11ab2ec98
i965: Initialize intel_context::vtbl after calling intelInitContext()

intel_context::gen field is set by intelInitContext(). So, by calling
intelInitContext() before initializing the vtable, we can can construct
different vtables for different gens.

Specifically, this allows us to set the HiZ operations to be no-ops for
contexts for which HiZ is not enabled.

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