From 16c12a9c3b4587d1afe21443923ea17c756e0b9f Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 26 Jun 2023 21:32:48 +0300 Subject: [PATCH] genxml: enable decoding on compute engine Signed-off-by: Lionel Landwerlin Reviewed-by: Sagar Ghuge Part-of: --- src/intel/common/intel_decoder.c | 3 +++ src/intel/genxml/gen125.xml | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/intel/common/intel_decoder.c b/src/intel/common/intel_decoder.c index 56c74c5..7514446 100644 --- a/src/intel/common/intel_decoder.c +++ b/src/intel/common/intel_decoder.c @@ -167,6 +167,7 @@ create_group(struct parser_context *ctx, group->dword_length_field = NULL; group->dw_length = 0; group->engine_mask = INTEL_ENGINE_CLASS_TO_MASK(INTEL_ENGINE_CLASS_RENDER) | + INTEL_ENGINE_CLASS_TO_MASK(INTEL_ENGINE_CLASS_COMPUTE) | INTEL_ENGINE_CLASS_TO_MASK(INTEL_ENGINE_CLASS_VIDEO) | INTEL_ENGINE_CLASS_TO_MASK(INTEL_ENGINE_CLASS_COPY); group->bias = 1; @@ -187,6 +188,8 @@ create_group(struct parser_context *ctx, while (tok != NULL) { if (strcmp(tok, "render") == 0) { group->engine_mask |= INTEL_ENGINE_CLASS_TO_MASK(INTEL_ENGINE_CLASS_RENDER); + } else if (strcmp(tok, "compute") == 0) { + group->engine_mask |= INTEL_ENGINE_CLASS_TO_MASK(INTEL_ENGINE_CLASS_COMPUTE); } else if (strcmp(tok, "video") == 0) { group->engine_mask |= INTEL_ENGINE_CLASS_TO_MASK(INTEL_ENGINE_CLASS_VIDEO); } else if (strcmp(tok, "blitter") == 0) { diff --git a/src/intel/genxml/gen125.xml b/src/intel/genxml/gen125.xml index a7f1aa9..c55338f 100644 --- a/src/intel/genxml/gen125.xml +++ b/src/intel/genxml/gen125.xml @@ -1488,7 +1488,7 @@ - + @@ -1509,7 +1509,7 @@ - + @@ -1540,7 +1540,7 @@ - + @@ -2212,7 +2212,7 @@ - + @@ -6215,7 +6215,7 @@ - + @@ -6345,7 +6345,7 @@ - + @@ -6531,7 +6531,7 @@ - + @@ -6545,7 +6545,7 @@ - + @@ -6791,7 +6791,7 @@ - + @@ -6837,7 +6837,7 @@ - + -- 2.7.4