Search found 12 matches

by su-27k
Sat Jan 06, 2007 12:58 am
Forum: PSP Development
Topic: SCEGU_VERTEX_SHORT
Replies: 7
Views: 2472

hlide wrote:i'm speaking about the normal vertex not the position vertex ! it doesn't fit your typedef Vertex. If you don't give the exact code, don't expect people to help you very much !
sorry and thanke you for help

next time i will be more careful

byezz :)
by su-27k
Fri Jan 05, 2007 11:58 pm
Forum: PSP Development
Topic: SCEGU_VERTEX_SHORT
Replies: 7
Views: 2472

pVertex .n = 0x7FF4 !? (32756) are you sure about this value ? what are values of nx, ny and nz exactly ? it looks something like [-12, 128, 0] or even worse [0, 0, 128] probably because of little endianness of allegrex. your source code doesn't fit with your last type definition of Vertex, do you ...
by su-27k
Fri Jan 05, 2007 8:04 pm
Forum: PSP Development
Topic: SCEGU_VERTEX_SHORT
Replies: 7
Views: 2472

typedef struct { byte nx,ny,nz; byte pad; short x,y,z; } Vertex; void Draw(){ if (mtx){PushMTx()} Vertex pVertex[3]; pVertex[0].n=pVertex[1].n=pVertex&#91...
by su-27k
Fri Jan 05, 2007 7:09 pm
Forum: PSP Development
Topic: SCEGU_VERTEX_SHORT
Replies: 7
Views: 2472

Re: SCEGU_VERTEX_SHORT

Hi... sceGuDrawArray(SCEGU_PRIM_TRIANGLES, SCEGU_NORMAL_BYTE|SCEGU_VERTEX_FLOAT ,3, NULL, pVertex); SCEGU_VERTEX_FLOAT is definately wrong ! something like SCEGU_VERTEX_SHORT would probably be better :o) no asd :( i have mistek to copy code. my problem is typedef struct { i...
by su-27k
Fri Jan 05, 2007 3:48 am
Forum: PSP Development
Topic: SCEGU_VERTEX_SHORT
Replies: 7
Views: 2472

SCEGU_VERTEX_SHORT

Hi... I've been doing basic procedure to draw primitive with short vertex,but after 2 days i don't know why it dosn't work typedef struct { int n; short x,y,z,pad; } Vertex; void Draw(){ if (mtx){PushMTx()} ...
by su-27k
Tue Nov 21, 2006 7:36 pm
Forum: PSP Development
Topic: vfpu vmov
Replies: 2
Views: 1279

vfpu vmov

what mean?

"vmov.q c000, c000[x,x,x,x]\n"
by su-27k
Fri Nov 17, 2006 11:31 pm
Forum: PSP Development
Topic: VFPU Load
Replies: 17
Views: 3622

No, the second code won't even compile! (expression too complex) You cannot load from registers with lv* ops. You could however do this: void asd(float value){ __asm__( "lv.s S000, (%0) \n" : :"r"(&valu...
by su-27k
Fri Nov 17, 2006 8:48 pm
Forum: PSP Development
Topic: VFPU Load
Replies: 17
Views: 3622

if you have a variabile in register cpu,like a pointer to a vector,you can use itlike this void asd(float *a) __asd___( "lv.q r000,0+%0\n" : :"r"(a) ); because "a" is on the stack and when you call "asd",the contents of stack is load in regsiter cpu ;) vfpu l...
by su-27k
Fri Nov 17, 2006 3:27 am
Forum: PSP Development
Topic: VFPU Load
Replies: 17
Views: 3622

if you have a variabile in register cpu,like a pointer to a vector,you can use itlike this void asd(float *a) __asd___( "lv.q r000,0+%0\n" : :"r"(a) ); because "a" is on the stack and when you call "asd",the contents of stack is load in regsiter cpu ;) vfpu lo...
by su-27k
Fri Nov 17, 2006 2:49 am
Forum: PSP Development
Topic: VFPU Load
Replies: 17
Views: 3622

Re: VFPU Load

so you think that vfpu dont' bind the type by constraints,but may be cheked bit arrangemet of register and undrstand what type it have downloaded,however is very strange because in this case,how can it understand the difference between integer and s8[4] for exemple?i think there is an aswer and i wn...
by su-27k
Fri Nov 17, 2006 12:21 am
Forum: PSP Development
Topic: VFPU Load
Replies: 17
Views: 3622

in this link you can find all particular machine costraint http://gcc.gnu.org/onlinedocs/gcc-4.1.1 ... onstraints
but for psp,where is the documentation? -_-'
by su-27k
Fri Nov 17, 2006 12:17 am
Forum: PSP Development
Topic: VFPU Load
Replies: 17
Views: 3622

VFPU Load

hi everyone and sorry for my english, the vfpu supports the following data formats:32bit integer,32bit floating point,packed 8 bit integer,packed 16 bit integer/floating point,end so i try to load s8[4] in a register,but i dont know who is the Constraints of this type after i load it in a registerVF...