OSDN Git Service

draw: Describe the steps in emit_load_R32G32B32A32.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 3 Sep 2008 01:30:09 +0000 (10:30 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 3 Sep 2008 02:53:39 +0000 (11:53 +0900)
src/gallium/auxiliary/draw/draw_vs_aos_io.c

index ab3c5b9..26297c7 100644 (file)
@@ -55,9 +55,13 @@ static void emit_load_R32G32B32( struct aos_compilation *cp,
                                 struct x86_reg src_ptr )
 {
    sse_movss(cp->func, data, x86_make_disp(src_ptr, 8));
+   /* data = z ? ? ? */
    sse_shufps(cp->func, data, aos_get_internal_xmm( cp, IMM_IDENTITY ), SHUF(X,Y,Z,W) );
+   /* data = z ? 0 1 */
    sse_shufps(cp->func, data, data, SHUF(Y,Z,X,W) );
+   /* data = ? 0 z 1 */
    sse_movlps(cp->func, data, src_ptr);
+   /* data = x y z 1 */
 }
 
 static void emit_load_R32G32( struct aos_compilation *cp,