projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19ffa4b
)
intel/decoder: Reuse the gen_make_gen() helper.
author
Eric Anholt
<eric@anholt.net>
Wed, 12 Jul 2017 20:22:46 +0000
(13:22 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 25 Jul 2017 21:44:52 +0000
(14:44 -0700)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c
patch
|
blob
|
history
diff --git
a/src/intel/common/gen_decoder.c
b/src/intel/common/gen_decoder.c
index 60591ad666bf58898beec0ab89fabbdd94085f8f..85880143f00ebcbb95165134ac7291bb3735d93d 100644
(file)
--- 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);