From a66944dfbcb06c669da6d3d4f36cc5d06dac30d8 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 27 Jan 2023 15:51:09 +0200 Subject: [PATCH] intel/fs: reuse descriptor helper Signed-off-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_schedule_instructions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_schedule_instructions.cpp b/src/intel/compiler/brw_schedule_instructions.cpp index 767adbea994..3e88b186916 100644 --- a/src/intel/compiler/brw_schedule_instructions.cpp +++ b/src/intel/compiler/brw_schedule_instructions.cpp @@ -499,7 +499,7 @@ schedule_node::set_latency_gfx7(bool is_haswell) break; case HSW_SFID_DATAPORT_DATA_CACHE_1: - switch ((inst->desc >> 14) & 0x1f) { + switch (brw_dp_desc_msg_type(isa->devinfo, inst->desc)) { case HSW_DATAPORT_DC_PORT1_UNTYPED_SURFACE_READ: case HSW_DATAPORT_DC_PORT1_UNTYPED_SURFACE_WRITE: case HSW_DATAPORT_DC_PORT1_TYPED_SURFACE_READ: