{
printf("Usage: etnaviv_compiler [OPTIONS]... FILE\n");
printf(" --verbose - verbose compiler/debug messages\n");
+ printf(" --frag-rb-swap - swap rb in color output (FRAG)\n");
printf(" --help - show this message\n");
}
struct tgsi_token toks[65536];
struct tgsi_parse_context parse;
struct etna_shader s = {};
+ struct etna_shader_key key = {};
void *ptr;
size_t size;
continue;
}
+ if (!strcmp(argv[n], "--frag-rb-swap")) {
+ debug_printf(" %s", argv[n]);
+ key.frag_rb_swap = true;
+ n++;
+ continue;
+ }
+
if (!strcmp(argv[n], "--help")) {
print_usage();
return 0;
s.tokens = toks;
v->shader = &s;
+ v->key = key;
if (!etna_compile_shader(v)) {
fprintf(stderr, "compiler failed!\n");