tgsi: replace 0xf with TGSI_WRITEMASK_XYZW
authorBrian Paul <brianp@vmware.com>
Sun, 18 Apr 2010 15:56:52 +0000 (09:56 -0600)
committerBrian Paul <brianp@vmware.com>
Sun, 18 Apr 2010 16:02:11 +0000 (10:02 -0600)
src/gallium/auxiliary/tgsi/tgsi_ureg.c

index 3d0455de7cea9edbde745d986ce5353b721edbae..f725405ade1945b66f2fe001c85eeb9b57dd3d70 100644 (file)
@@ -1158,7 +1158,7 @@ static void emit_decl_range( struct ureg_program *ureg,
    out[0].decl.Type = TGSI_TOKEN_TYPE_DECLARATION;
    out[0].decl.NrTokens = 2;
    out[0].decl.File = file;
-   out[0].decl.UsageMask = 0xf;
+   out[0].decl.UsageMask = TGSI_WRITEMASK_XYZW;
    out[0].decl.Interpolate = TGSI_INTERPOLATE_CONSTANT;
    out[0].decl.Semantic = 0;
 
@@ -1180,7 +1180,7 @@ emit_decl_range2D(struct ureg_program *ureg,
    out[0].decl.Type = TGSI_TOKEN_TYPE_DECLARATION;
    out[0].decl.NrTokens = 3;
    out[0].decl.File = file;
-   out[0].decl.UsageMask = 0xf;
+   out[0].decl.UsageMask = TGSI_WRITEMASK_XYZW;
    out[0].decl.Interpolate = TGSI_INTERPOLATE_CONSTANT;
    out[0].decl.Dimension = 1;