diff options
author | Ian Romanick <[email protected]> | 2012-09-28 15:38:26 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-09-28 15:39:17 -0700 |
commit | e87c63f2889fcbeb5a8bbd91eda1333d7ed44bf2 (patch) | |
tree | ce30a98e665d26526b9e566d21e40be5962e03c8 /src/mesa/drivers/dri/i965/brw_context.c | |
parent | de958de71b1450952e021af4e729c87406353db6 (diff) |
i965: brwInitVtbl needs to know the chipset generation
Fixes major regressions since de958de.
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 418c8737145..e94df2658ce 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -140,6 +140,11 @@ brwCreateContext(int api, 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); |