i965/eu: Add a devinfo parameter to brw_compile
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Apr 2015 23:57:24 +0000 (16:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Apr 2015 23:00:32 +0000 (16:00 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_eu.h

index c21d14de32b5a5954a3c964b626e920a7b53e79c..ccd659e2fb3e36d2b2bba282d3d1ea0649491d23 100644 (file)
@@ -218,6 +218,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()
index 31c1492315d9ba16af75a13100c9c7e4080d1516..dc62cf0a516462011d3c3f88492f2bd72ce4539a 100644 (file)
@@ -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