ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}')
-CFLAGS += -ggdb -Wall
+CFLAGS += -ggdb -Wall -DTEST
CFLAGS += -O2
ifeq "$(ARCH)" "arm"
CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
for (; list < list_end; list += 1 + len)
{
- short *slist = (void *)list;
cmd = *list >> 24;
len = cmd_lengths[cmd];
break;
}
+#ifdef TEST
case 0xA0: // sys -> vid
{
+ short *slist = (void *)list;
u32 load_width = slist[4];
u32 load_height = slist[5];
u32 load_size = load_width * load_height;
len += load_size / 2;
break;
}
+#endif
}
}
}
break;
}
+#ifdef TEST
+ case 0xA0: // sys -> vid
+ {
+ u32 load_width = list[2] & 0xffff;
+ u32 load_height = list[2] >> 16;
+ u32 load_size = load_width * load_height;
+
+ len += load_size / 2;
+ break;
+ }
+#endif
+
default:
unai_do_prim(cmd, list, len + 1);
break;
{
}
+#ifndef TEST
+
#include "../../frontend/plugin_lib.h"
void renderer_set_config(const struct rearmed_cbs *cbs)
light = !cbs->gpu_unai.no_light;
blend = !cbs->gpu_unai.no_blend;
}
+
+#endif