From decd2b32aa56f1d8b31cd9cef5a0891097083cd6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 12 Jul 2017 13:22:46 -0700 Subject: [PATCH] intel/decoder: Reuse the gen_make_gen() helper. Reviewed-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 60591ad666b..85880143f00 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common/gen_decoder.c @@ -39,8 +39,6 @@ #define XML_BUFFER_SIZE 4096 -#define MAKE_GEN(major, minor) ( ((major) << 8) | (minor) ) - struct gen_spec { uint32_t gen; @@ -420,7 +418,7 @@ start_element(void *data, const char *element_name, const char **atts) if (n == 1) minor = 0; - ctx->spec->gen = MAKE_GEN(major, minor); + ctx->spec->gen = gen_make_gen(major, minor); } else if (strcmp(element_name, "instruction") == 0 || strcmp(element_name, "struct") == 0) { ctx->group = create_group(ctx, name, atts, NULL); -- 2.30.2