From 10230d2eec01c5446a17db19150b5585d71bab3c Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Wed, 14 Feb 2024 17:41:46 -0800 Subject: [PATCH] intel/brw: Assert Gfx9+ Acked-by: Ivan Briano Part-of: --- src/intel/compiler/brw_compiler.c | 1 + src/intel/compiler/brw_eu.c | 2 ++ 2 files changed, 3 insertions(+) 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);