From 219cd6dc403d7272d2197135f17f105e41af659c Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 10 Jan 2024 13:13:06 -0800 Subject: [PATCH] intel/compiler: Disable DPAS instructions on MTL Reviewed-by: Mark Janes Reviewed-by: Lionel Landwerlin Fixes: 3756f605586 ("intel/fs: DPAS lowering") Closes: #10376 Part-of: (cherry picked from commit 951e08fc18a32f8a5ee9faa39cab69f8f0767e24) --- .pick_status.json | 2 +- src/intel/compiler/brw_compiler.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index aa2d68a26ea..4112765015b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1274,7 +1274,7 @@ "description": "intel/compiler: Disable DPAS instructions on MTL", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "3756f605586fb2dcf53d892606152ecc5ce1ad1d", "notes": null diff --git a/src/intel/compiler/brw_compiler.c b/src/intel/compiler/brw_compiler.c index f3441316849..9c9b221d17e 100644 --- a/src/intel/compiler/brw_compiler.c +++ b/src/intel/compiler/brw_compiler.c @@ -122,6 +122,7 @@ brw_compiler_create(void *mem_ctx, const struct intel_device_info *devinfo) compiler->indirect_ubos_use_sampler = true; compiler->lower_dpas = devinfo->verx10 < 125 || + intel_device_info_is_mtl(devinfo) || debug_get_bool_option("INTEL_LOWER_DPAS", false); /* There is no vec4 mode on Gfx10+, and we don't use it at all on Gfx8+. */