mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
Move program_defaults init statement into variable declaration
In original code, the init value for "program_defaults.register_type" is put inside main(), which may be hard to maintain.
This commit is contained in:
parent
77dcc41cfd
commit
940522588a
@ -48,7 +48,7 @@ char *export_filename = NULL;
|
|||||||
const char const *binary_prepend = "static const char gen_eu_bytes[] = {\n";
|
const char const *binary_prepend = "static const char gen_eu_bytes[] = {\n";
|
||||||
|
|
||||||
struct brw_program compiled_program;
|
struct brw_program compiled_program;
|
||||||
struct program_defaults program_defaults;
|
struct program_defaults program_defaults = {.register_type = BRW_REGISTER_TYPE_F};
|
||||||
|
|
||||||
|
|
||||||
#define HASHSZ 37
|
#define HASHSZ 37
|
||||||
@ -271,8 +271,6 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
program_defaults.register_type = BRW_REGISTER_TYPE_F;
|
|
||||||
|
|
||||||
err = yyparse();
|
err = yyparse();
|
||||||
|
|
||||||
if (strcmp(argv[0], "-"))
|
if (strcmp(argv[0], "-"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user