Attached are patches for r128 on ppc. Rather little change to the r128 code
was needed once I gave up on the char arrays for the vertex colors, and
embraced the hw specific ordered named fields provided in the *_color_t
provided by t_dd_vertex.h.

1) Revert PACK*LE from texutil.c as per previous emails.

2) t_dd_vbtmp.h has color assignments in the emit functions that use
    char arrays for non-RGBA without attention to endiness. Changed
    to use the correctly ordered named fields from the t_dd_vertex.h 
definition
    of the hw vertex color_t. Added VERTEX_COLOR_T macro so hw
    driver can pass in its hw vertex *_color_t; so the assignments can be
    made in correct order. Added macro definition to *_vb.c of the
    various drivers.

3) Changed r128_tris.c VERT_* macros for t_dd_tritmp.h to use
    the named fields instead of an char array.

4) Added some casts to r128_ioctl.c to eliminate compile warnings.

Attachment: r128-ppc-diffs.gz
Description: GNU Zip compressed data

Reply via email to