main(int argc, char **argv)
{
struct brw_context *brw = calloc(1, sizeof(*brw));
- brw->gen = 6;
+ struct brw_device_info *devinfo = calloc(1, sizeof(*devinfo));
+ brw->intelScreen = calloc(1, sizeof(*brw->intelScreen));
+ brw->intelScreen->devinfo = devinfo;
+ brw->gen = devinfo->gen = 6;
bool fail = false;
for (brw->gen = 6; brw->gen <= 7; brw->gen++) {
public:
struct brw_context *brw;
+ struct brw_device_info *devinfo;
struct gl_context *ctx;
struct brw_wm_prog_data *prog_data;
struct gl_shader_program *shader_prog;
void cmod_propagation_test::SetUp()
{
brw = (struct brw_context *)calloc(1, sizeof(*brw));
+ devinfo = (struct brw_device_info *)calloc(1, sizeof(*brw));
+ brw->intelScreen = (struct intel_screen *)calloc(1, sizeof(*brw->intelScreen));
+ brw->intelScreen->devinfo = devinfo;
ctx = &brw->ctx;
fp = ralloc(NULL, struct brw_fragment_program);
_mesa_init_fragment_program(ctx, &fp->program, GL_FRAGMENT_SHADER, 0);
- brw->gen = 4;
+ brw->gen = devinfo->gen = 4;
}
static fs_inst *
public:
struct brw_context *brw;
+ struct brw_device_info *devinfo;
struct gl_context *ctx;
struct brw_wm_prog_data *prog_data;
struct gl_shader_program *shader_prog;
void saturate_propagation_test::SetUp()
{
brw = (struct brw_context *)calloc(1, sizeof(*brw));
+ devinfo = (struct brw_device_info *)calloc(1, sizeof(*brw));
+ brw->intelScreen = (struct intel_screen *)calloc(1, sizeof(*brw->intelScreen));
+ brw->intelScreen->devinfo = devinfo;
ctx = &brw->ctx;
fp = ralloc(NULL, struct brw_fragment_program);
_mesa_init_fragment_program(ctx, &fp->program, GL_FRAGMENT_SHADER, 0);
- brw->gen = 4;
+ brw->gen = devinfo->gen = 4;
}
static fs_inst *
public:
struct brw_context *brw;
+ struct brw_device_info *devinfo;
struct gl_context *ctx;
struct gl_shader_program *shader_prog;
struct brw_vertex_program *vp;
void copy_propagation_test::SetUp()
{
brw = (struct brw_context *)calloc(1, sizeof(*brw));
+ devinfo = (struct brw_device_info *)calloc(1, sizeof(*brw));
+ brw->intelScreen = (struct intel_screen *)calloc(1, sizeof(*brw->intelScreen));
+ brw->intelScreen->devinfo = devinfo;
ctx = &brw->ctx;
vp = ralloc(NULL, struct brw_vertex_program);
_mesa_init_vertex_program(ctx, &vp->program, GL_VERTEX_SHADER, 0);
- brw->gen = 4;
+ brw->gen = devinfo->gen = 4;
}
static void
public:
struct brw_context *brw;
+ struct brw_device_info *devinfo;
struct gl_context *ctx;
struct gl_shader_program *shader_prog;
struct brw_vertex_program *vp;
void register_coalesce_test::SetUp()
{
brw = (struct brw_context *)calloc(1, sizeof(*brw));
+ devinfo = (struct brw_device_info *)calloc(1, sizeof(*brw));
+ brw->intelScreen = (struct intel_screen *)calloc(1, sizeof(*brw->intelScreen));
+ brw->intelScreen->devinfo = devinfo;
ctx = &brw->ctx;
vp = ralloc(NULL, struct brw_vertex_program);
_mesa_init_vertex_program(ctx, &vp->program, GL_VERTEX_SHADER, 0);
- brw->gen = 4;
+ brw->gen = devinfo->gen = 4;
}
static void