graw: fix tests to build on msvc again.
authorDave Airlie <airlied@redhat.com>
Mon, 19 Sep 2011 09:20:10 +0000 (10:20 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Sep 2011 09:20:10 +0000 (10:20 +0100)
Should fix https://bugs.freedesktop.org/show_bug.cgi?id=40997

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/tests/graw/clear.c
src/gallium/tests/graw/fs-test.c
src/gallium/tests/graw/gs-test.c
src/gallium/tests/graw/quad-sample.c
src/gallium/tests/graw/quad-tex.c
src/gallium/tests/graw/shader-leak.c
src/gallium/tests/graw/tri-gs.c
src/gallium/tests/graw/tri-instanced.c
src/gallium/tests/graw/tri.c
src/gallium/tests/graw/vs-test.c

index 9c9eeeb..c6c645e 100644 (file)
@@ -26,7 +26,7 @@ static void *window = NULL;
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {1, 0, 1, 1} };
+   union pipe_color_union clear_color = { {1, 0, 1, 1} };
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
    ctx->flush(ctx, NULL);
index 47bc101..d9e70f0 100644 (file)
@@ -272,7 +272,7 @@ static void set_fragment_shader( const char *filename )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {.1,.3,.5,0} };
+   union pipe_color_union clear_color = { {.1,.3,.5,0} };
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
    util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3);
index 511f5d5..e95306e 100644 (file)
@@ -331,7 +331,7 @@ static void set_geometry_shader( void )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {.1,.3,.5,0} };
+   union pipe_color_union clear_color = { {.1,.3,.5,0} };
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
    if (draw_strip)
index 152e1ed..5612346 100644 (file)
@@ -146,7 +146,7 @@ static void set_fragment_shader( void )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {.5,.5,.5,1} };
+   union pipe_color_union clear_color = { {.5,.5,.5,1} };
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
    util_draw_arrays(ctx, PIPE_PRIM_QUADS, 0, 4);
index ca742a6..a2749ca 100644 (file)
@@ -143,7 +143,7 @@ static void set_fragment_shader( void )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {.5,.5,.5,1} };
+   union pipe_color_union clear_color = { {.5,.5,.5,1} };
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
    util_draw_arrays(ctx, PIPE_PRIM_QUADS, 0, 4);
index 098faec..57cd2dc 100644 (file)
@@ -137,7 +137,7 @@ set_fragment_shader( void )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {0,0,0,1} };
+   union pipe_color_union clear_color = { {0,0,0,1} };
    int i;
 
    printf("Creating %d shaders\n", num_iters);
index 3c9e568..4348663 100644 (file)
@@ -159,7 +159,7 @@ static void set_geometry_shader( void )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {1,0,1,1} };
+   union pipe_color_union clear_color = { {1,0,1,1} };
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
    util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3);
index 50389e0..521dab0 100644 (file)
@@ -196,7 +196,7 @@ static void set_fragment_shader( void )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {1,0,1,1} };
+   union pipe_color_union clear_color = { {1,0,1,1} };
    struct pipe_draw_info info;
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
index 2b779ff..11f8bb3 100644 (file)
@@ -136,7 +136,7 @@ static void set_fragment_shader( void )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {1,0,1,1} };
+   union pipe_color_union clear_color = { {1,0,1,1} };
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
    util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3);
index b98c8f5..74b3273 100644 (file)
@@ -223,7 +223,7 @@ static void set_fragment_shader( void )
 
 static void draw( void )
 {
-   union pipe_color_union clear_color = { .f = {.1,.3,.5,0} };
+   union pipe_color_union clear_color = { {.1,.3,.5,0} };
 
    ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
    util_draw_arrays(ctx, PIPE_PRIM_POINTS, 0, Elements(vertices));