diff options
author | Eric Anholt <[email protected]> | 2017-07-12 13:22:46 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-07-25 14:44:52 -0700 |
commit | decd2b32aa56f1d8b31cd9cef5a0891097083cd6 (patch) | |
tree | 8702980887cebd6101860ce11ae67ba172bfd0ce /src/intel/common/gen_decoder.c | |
parent | 19ffa4bfb281fb8814f666bac1d0c96a42e6edbb (diff) |
intel/decoder: Reuse the gen_make_gen() helper.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/common/gen_decoder.c')
-rw-r--r-- | src/intel/common/gen_decoder.c | 4 |
1 files changed, 1 insertions, 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); |