Was the VFPU implementation tested ?
Code: Select all
#ifdef F_sceGumLookAt_vfpu
void sceGumLookAt(ScePspFVector3* eye, ScePspFVector3* center, ScePspFVector3* up)
{
	ScePspFMatrix4* t = GUM_ALIGNED_MATRIX();
	gumLookAt(t,eye,center,up);
	pspvfpu_use_matrices(gum_vfpucontext, VMAT3, VMAT0 | VMAT1);
	__asm__ volatile (
		"lv.q C000.q,  0 + %0\n"
		"lv.q C010.q, 16 + %0\n"
		"lv.q C020.q, 32 + %0\n"
		"lv.q C030.q, 48 + %0\n"
		"vmmul.q M100, M300, M000\n"
		"vmmov.q M300, M100\n"
	: : "m"(*t) );
	gum_current_matrix_update = 1;
}
#endif