From e2dd3ce976c5cfcd41d040fc37c6be5b8373c3e9 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 22 Jun 2016 16:32:18 -0700 Subject: [PATCH] i965: Add an isl_device to the brw_context Signed-off-by: Jason Ekstrand Reviewed-by: Chad Versace --- src/mesa/drivers/dri/i965/brw_context.c | 2 ++ src/mesa/drivers/dri/i965/brw_context.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 3f0c2e3b483..cb742007d20 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -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; diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 6353ca105ff..c0cdd7d46af 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -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]; -- 2.30.2