diff --git a/src/intel/compiler/brw_compiler.c b/src/intel/compiler/brw_compiler.c index c267a05a0a5..51034e3c78c 100644 --- a/src/intel/compiler/brw_compiler.c +++ b/src/intel/compiler/brw_compiler.c @@ -106,6 +106,7 @@ struct brw_compiler * brw_compiler_create(void *mem_ctx, const struct intel_device_info *devinfo) { struct brw_compiler *compiler = rzalloc(mem_ctx, struct brw_compiler); + assert(devinfo->ver >= 9); compiler->devinfo = devinfo; diff --git a/src/intel/compiler/brw_eu.c b/src/intel/compiler/brw_eu.c index d6b94f3441d..e89d8bc1d31 100644 --- a/src/intel/compiler/brw_eu.c +++ b/src/intel/compiler/brw_eu.c @@ -760,6 +760,8 @@ void brw_init_isa_info(struct brw_isa_info *isa, const struct intel_device_info *devinfo) { + assert(devinfo->ver >= 9); + isa->devinfo = devinfo; enum gfx_ver ver = gfx_ver_from_devinfo(devinfo);