i965: Add an isl_device to the brw_context

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chad.versace@intel.com>
This commit is contained in:
Jason Ekstrand 2016-06-22 16:32:18 -07:00
parent 4f282ff67e
commit e2dd3ce976
2 changed files with 6 additions and 0 deletions

View file

@ -896,6 +896,8 @@ brwCreateContext(gl_api api,
brw->must_use_separate_stencil = devinfo->must_use_separate_stencil;
brw->has_swizzling = screen->hw_has_swizzling;
isl_device_init(&brw->isl_dev, devinfo, screen->hw_has_swizzling);
brw->vs.base.stage = MESA_SHADER_VERTEX;
brw->tcs.base.stage = MESA_SHADER_TESS_CTRL;
brw->tes.base.stage = MESA_SHADER_TESS_EVAL;

View file

@ -40,6 +40,8 @@
#include "brw_compiler.h"
#include "intel_aub.h"
#include "isl/isl.h"
#ifdef __cplusplus
extern "C" {
/* Evil hack for using libdrm in a c++ compiler. */
@ -914,6 +916,8 @@ struct brw_context
*/
bool needs_unlit_centroid_workaround;
struct isl_device isl_dev;
GLuint NewGLState;
struct {
struct brw_state_flags pipelines[BRW_NUM_PIPELINES];