mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 08:20:29 +01:00
intel/decoder: Reuse the gen_make_gen() helper.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
19ffa4bfb2
commit
decd2b32aa
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue