Fixes major regressions since
de958de.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
return false;
}
+ /* brwInitVtbl needs to know the chipset generation so that it can set the
+ * right pointers.
+ */
+ brw->intel.gen = screen->gen;
+
brwInitVtbl( brw );
brwInitDriverFunctions(screen, &functions);
brw->intel.vtbl.render_target_supported = brw_render_target_supported;
brw->intel.vtbl.is_hiz_depth_format = brw_is_hiz_depth_format;
+ assert(brw->intel.gen >= 4);
if (brw->intel.gen >= 7) {
gen7_init_vtable_surface_functions(brw);
} else if (brw->intel.gen >= 4) {