[Mesa-dev] [PATCH 03/23] i965/eu: Add a devinfo parameter to brw_compile

Jason Ekstrand jason at jlekstrand.net
Fri Apr 17 19:11:43 PDT 2015


---
 src/mesa/drivers/dri/i965/brw_eu.c | 1 +
 src/mesa/drivers/dri/i965/brw_eu.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_eu.c b/src/mesa/drivers/dri/i965/brw_eu.c
index 146202b..e12b890 100644
--- a/src/mesa/drivers/dri/i965/brw_eu.c
+++ b/src/mesa/drivers/dri/i965/brw_eu.c
@@ -212,6 +212,7 @@ brw_init_compile(struct brw_context *brw, struct brw_compile *p, void *mem_ctx)
    memset(p, 0, sizeof(*p));
 
    p->brw = brw;
+   p->devinfo = brw->intelScreen->devinfo;
    /*
     * Set the initial instruction store array size to 1024, if found that
     * isn't enough, then it will double the store size at brw_next_insn()
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h
index f8fd155..9417973 100644
--- a/src/mesa/drivers/dri/i965/brw_eu.h
+++ b/src/mesa/drivers/dri/i965/brw_eu.h
@@ -70,6 +70,7 @@ struct brw_compile {
    bool single_program_flow;
    bool compressed;
    struct brw_context *brw;
+   const struct brw_device_info *devinfo;
 
    /* Control flow stacks:
     * - if_stack contains IF and ELSE instructions which must be patched
-- 
2.3.5



More information about the mesa-dev mailing list