mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 10:30:13 +01:00
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:
parent
4f282ff67e
commit
e2dd3ce976
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue