[Mesa-dev] [PATCH 2/2] intel/decoder: Reuse the gen_make_gen() helper.
Eric Anholt
eric at anholt.net
Thu Jul 13 18:37:11 UTC 2017
---
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 60591ad666bf..85880143f00e 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.11.0
More information about the mesa-dev
mailing list