diff options
Diffstat (limited to 'src/gallium/tests')
-rw-r--r-- | src/gallium/tests/graw/clear.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/fs-fragcoord.c | 1 | ||||
-rw-r--r-- | src/gallium/tests/graw/fs-frontface.c | 1 | ||||
-rw-r--r-- | src/gallium/tests/graw/fs-test.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/fs-write-z.c | 1 | ||||
-rw-r--r-- | src/gallium/tests/graw/gs-test.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/occlusion-query.c | 1 | ||||
-rw-r--r-- | src/gallium/tests/graw/quad-sample.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/quad-tex.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/shader-leak.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/tex-srgb.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/tex-swizzle.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/tri-gs.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/tri-instanced.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/tri-large.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/tri.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/vs-test.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/trivial/quad-tex.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/trivial/tri.c | 2 |
19 files changed, 19 insertions, 15 deletions
diff --git a/src/gallium/tests/graw/clear.c b/src/gallium/tests/graw/clear.c index 2a08ae15485..522799c1e1a 100644 --- a/src/gallium/tests/graw/clear.c +++ b/src/gallium/tests/graw/clear.c @@ -28,7 +28,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {1, 0, 1, 1} }; - ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); ctx->flush(ctx, NULL, 0); graw_save_surface_to_file(ctx, surf, NULL); diff --git a/src/gallium/tests/graw/fs-fragcoord.c b/src/gallium/tests/graw/fs-fragcoord.c index 9afea0caa0b..016bbaa0410 100644 --- a/src/gallium/tests/graw/fs-fragcoord.c +++ b/src/gallium/tests/graw/fs-fragcoord.c @@ -185,6 +185,7 @@ draw(void) info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR | PIPE_CLEAR_DEPTHSTENCIL, + NULL, &clear_color, 1.0, 0); util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, NUM_VERTS); info.ctx->flush(info.ctx, NULL, 0); diff --git a/src/gallium/tests/graw/fs-frontface.c b/src/gallium/tests/graw/fs-frontface.c index 3ad89f6b646..956c7fee3a0 100644 --- a/src/gallium/tests/graw/fs-frontface.c +++ b/src/gallium/tests/graw/fs-frontface.c @@ -159,6 +159,7 @@ draw(void) info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR | PIPE_CLEAR_DEPTHSTENCIL, + NULL, &clear_color, 1.0, 0); util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, NUM_VERTS); info.ctx->flush(info.ctx, NULL, 0); diff --git a/src/gallium/tests/graw/fs-test.c b/src/gallium/tests/graw/fs-test.c index a4182be55bd..346bbedd61a 100644 --- a/src/gallium/tests/graw/fs-test.c +++ b/src/gallium/tests/graw/fs-test.c @@ -232,7 +232,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {.1,.3,.5,0} }; - ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3); ctx->flush(ctx, NULL, 0); diff --git a/src/gallium/tests/graw/fs-write-z.c b/src/gallium/tests/graw/fs-write-z.c index 196c67bc368..4002dce15f1 100644 --- a/src/gallium/tests/graw/fs-write-z.c +++ b/src/gallium/tests/graw/fs-write-z.c @@ -164,6 +164,7 @@ draw(void) info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR | PIPE_CLEAR_DEPTHSTENCIL, + NULL, &clear_color, 1.0, 0); util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, NUM_VERTS); info.ctx->flush(info.ctx, NULL, 0); diff --git a/src/gallium/tests/graw/gs-test.c b/src/gallium/tests/graw/gs-test.c index a984e0acfb0..5d3739c7281 100644 --- a/src/gallium/tests/graw/gs-test.c +++ b/src/gallium/tests/graw/gs-test.c @@ -318,7 +318,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {.1,.3,.5,0} }; - ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); if (draw_strip) util_draw_arrays(ctx, PIPE_PRIM_TRIANGLE_STRIP, 0, 4); else diff --git a/src/gallium/tests/graw/occlusion-query.c b/src/gallium/tests/graw/occlusion-query.c index 1232c5bb401..b639a9bb9a1 100644 --- a/src/gallium/tests/graw/occlusion-query.c +++ b/src/gallium/tests/graw/occlusion-query.c @@ -168,6 +168,7 @@ draw(void) info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR | PIPE_CLEAR_DEPTHSTENCIL, + NULL, &clear_color, 1.0, 0); q1 = info.ctx->create_query(info.ctx, PIPE_QUERY_OCCLUSION_COUNTER, 0); diff --git a/src/gallium/tests/graw/quad-sample.c b/src/gallium/tests/graw/quad-sample.c index a5029484b3b..043abdf5044 100644 --- a/src/gallium/tests/graw/quad-sample.c +++ b/src/gallium/tests/graw/quad-sample.c @@ -148,7 +148,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {.5,.5,.5,1} }; - ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(ctx, PIPE_PRIM_QUADS, 0, 4); ctx->flush(ctx, NULL, 0); diff --git a/src/gallium/tests/graw/quad-tex.c b/src/gallium/tests/graw/quad-tex.c index 35ba4fa3469..40caad4ae90 100644 --- a/src/gallium/tests/graw/quad-tex.c +++ b/src/gallium/tests/graw/quad-tex.c @@ -106,7 +106,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {.5,.5,.5,1} }; - info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, 4); info.ctx->flush(info.ctx, NULL, 0); diff --git a/src/gallium/tests/graw/shader-leak.c b/src/gallium/tests/graw/shader-leak.c index 8fa1a727f54..90d674745fd 100644 --- a/src/gallium/tests/graw/shader-leak.c +++ b/src/gallium/tests/graw/shader-leak.c @@ -148,7 +148,7 @@ static void draw( void ) ctx->bind_fs_state(ctx, fs); - ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(ctx, PIPE_PRIM_POINTS, 0, 1); ctx->flush(ctx, NULL, 0); diff --git a/src/gallium/tests/graw/tex-srgb.c b/src/gallium/tests/graw/tex-srgb.c index 503350a68d8..964b4188b51 100644 --- a/src/gallium/tests/graw/tex-srgb.c +++ b/src/gallium/tests/graw/tex-srgb.c @@ -127,7 +127,7 @@ static void draw( void ) clear_color.f[2] = 0.5; clear_color.f[3] = 1.0; - info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); info.ctx->set_sampler_views(info.ctx, PIPE_SHADER_FRAGMENT, 0, 1, &linear_sv); set_vertices(vertices1, 4); diff --git a/src/gallium/tests/graw/tex-swizzle.c b/src/gallium/tests/graw/tex-swizzle.c index 787f324fc35..538e12e7477 100644 --- a/src/gallium/tests/graw/tex-swizzle.c +++ b/src/gallium/tests/graw/tex-swizzle.c @@ -107,7 +107,7 @@ static void draw(void) clear_color.f[2] = 0.5; clear_color.f[3] = 1.0; - info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, 4); info.ctx->flush(info.ctx, NULL, 0); diff --git a/src/gallium/tests/graw/tri-gs.c b/src/gallium/tests/graw/tri-gs.c index ed721f378b1..6820bc530ea 100644 --- a/src/gallium/tests/graw/tri-gs.c +++ b/src/gallium/tests/graw/tri-gs.c @@ -162,7 +162,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {1,0,1,1} }; - ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3); ctx->flush(ctx, NULL, 0); diff --git a/src/gallium/tests/graw/tri-instanced.c b/src/gallium/tests/graw/tri-instanced.c index 297377b894e..72dce01980c 100644 --- a/src/gallium/tests/graw/tri-instanced.c +++ b/src/gallium/tests/graw/tri-instanced.c @@ -188,7 +188,7 @@ static void draw( void ) 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); + ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_init_info(&info); diff --git a/src/gallium/tests/graw/tri-large.c b/src/gallium/tests/graw/tri-large.c index 78a2ddbda44..e1b0888bf04 100644 --- a/src/gallium/tests/graw/tri-large.c +++ b/src/gallium/tests/graw/tri-large.c @@ -106,7 +106,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {1,0,1,1} }; - info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(info.ctx, PIPE_PRIM_TRIANGLES, 0, 3); info.ctx->flush(info.ctx, NULL, 0); diff --git a/src/gallium/tests/graw/tri.c b/src/gallium/tests/graw/tri.c index 2267d98a8fe..9882384a2f6 100644 --- a/src/gallium/tests/graw/tri.c +++ b/src/gallium/tests/graw/tri.c @@ -103,7 +103,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {1,0,1,1} }; - info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(info.ctx, PIPE_PRIM_TRIANGLES, 0, 3); info.ctx->flush(info.ctx, NULL, 0); diff --git a/src/gallium/tests/graw/vs-test.c b/src/gallium/tests/graw/vs-test.c index b3714543b3a..1b96914ad2a 100644 --- a/src/gallium/tests/graw/vs-test.c +++ b/src/gallium/tests/graw/vs-test.c @@ -220,7 +220,7 @@ static void draw( void ) { union pipe_color_union clear_color = { {.1,.3,.5,0} }; - ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0); + ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0); util_draw_arrays(ctx, PIPE_PRIM_POINTS, 0, ARRAY_SIZE(vertices)); ctx->flush(ctx, NULL, 0); diff --git a/src/gallium/tests/trivial/quad-tex.c b/src/gallium/tests/trivial/quad-tex.c index 271dee648d6..a30cfb9b9f7 100644 --- a/src/gallium/tests/trivial/quad-tex.c +++ b/src/gallium/tests/trivial/quad-tex.c @@ -309,7 +309,7 @@ static void draw(struct program *p) cso_set_framebuffer(p->cso, &p->framebuffer); /* clear the render target */ - p->pipe->clear(p->pipe, PIPE_CLEAR_COLOR, &p->clear_color, 0, 0); + p->pipe->clear(p->pipe, PIPE_CLEAR_COLOR, NULL, &p->clear_color, 0, 0); /* set misc state we care about */ cso_set_blend(p->cso, &p->blend); diff --git a/src/gallium/tests/trivial/tri.c b/src/gallium/tests/trivial/tri.c index 1e773cb28f9..79bb5d95086 100644 --- a/src/gallium/tests/trivial/tri.c +++ b/src/gallium/tests/trivial/tri.c @@ -246,7 +246,7 @@ static void draw(struct program *p) cso_set_framebuffer(p->cso, &p->framebuffer); /* clear the render target */ - p->pipe->clear(p->pipe, PIPE_CLEAR_COLOR, &p->clear_color, 0, 0); + p->pipe->clear(p->pipe, PIPE_CLEAR_COLOR, NULL, &p->clear_color, 0, 0); /* set misc state we care about */ cso_set_blend(p->cso, &p->blend); |