diff options
author | Marek Olšák <[email protected]> | 2014-02-03 03:42:17 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-02-06 17:37:34 +0100 |
commit | c32114460dbb7f33885c181a0d7dee07b15b8751 (patch) | |
tree | fd6d0a17ed48e93e42d61138d0bef80d8577f0a8 /src/gallium/tests/graw | |
parent | eeb5a4a50e1317a7f8d9e168c962ce3b1d7b36f9 (diff) |
gallium: remove PIPE_USAGE_STATIC
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/tests/graw')
-rw-r--r-- | src/gallium/tests/graw/fs-fragcoord.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/fs-frontface.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/fs-test.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/fs-write-z.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/gs-test.c | 4 | ||||
-rw-r--r-- | src/gallium/tests/graw/occlusion-query.c | 2 | ||||
-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 | 6 | ||||
-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 |
16 files changed, 19 insertions, 19 deletions
diff --git a/src/gallium/tests/graw/fs-fragcoord.c b/src/gallium/tests/graw/fs-fragcoord.c index 75225b6e858..9b85cf79fb2 100644 --- a/src/gallium/tests/graw/fs-fragcoord.c +++ b/src/gallium/tests/graw/fs-fragcoord.c @@ -70,7 +70,7 @@ set_vertices(void) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/fs-frontface.c b/src/gallium/tests/graw/fs-frontface.c index faa43f335c9..a0c8a2d5d63 100644 --- a/src/gallium/tests/graw/fs-frontface.c +++ b/src/gallium/tests/graw/fs-frontface.c @@ -92,7 +92,7 @@ set_vertices(void) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/fs-test.c b/src/gallium/tests/graw/fs-test.c index 0560e31723e..e335bc6d469 100644 --- a/src/gallium/tests/graw/fs-test.c +++ b/src/gallium/tests/graw/fs-test.c @@ -177,7 +177,7 @@ static void set_vertices( void ) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/fs-write-z.c b/src/gallium/tests/graw/fs-write-z.c index 74ab2f475ba..eabae6424a0 100644 --- a/src/gallium/tests/graw/fs-write-z.c +++ b/src/gallium/tests/graw/fs-write-z.c @@ -96,7 +96,7 @@ set_vertices(void) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/gs-test.c b/src/gallium/tests/graw/gs-test.c index 879bf3e8324..c522a8f5c65 100644 --- a/src/gallium/tests/graw/gs-test.c +++ b/src/gallium/tests/graw/gs-test.c @@ -255,13 +255,13 @@ static void set_vertices( void ) if (draw_strip) { vbuf.buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices_strip), vertices_strip); } else { vbuf.buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); } diff --git a/src/gallium/tests/graw/occlusion-query.c b/src/gallium/tests/graw/occlusion-query.c index 51d6326c2ba..f5227e33e9d 100644 --- a/src/gallium/tests/graw/occlusion-query.c +++ b/src/gallium/tests/graw/occlusion-query.c @@ -96,7 +96,7 @@ set_vertices(struct vertex *vertices, unsigned bytes) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, bytes, vertices); diff --git a/src/gallium/tests/graw/quad-sample.c b/src/gallium/tests/graw/quad-sample.c index 2e248a8a6f4..4d5a59769f3 100644 --- a/src/gallium/tests/graw/quad-sample.c +++ b/src/gallium/tests/graw/quad-sample.c @@ -103,7 +103,7 @@ static void set_vertices( void ) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/quad-tex.c b/src/gallium/tests/graw/quad-tex.c index 9e4407e442e..5f90166830f 100644 --- a/src/gallium/tests/graw/quad-tex.c +++ b/src/gallium/tests/graw/quad-tex.c @@ -59,7 +59,7 @@ static void set_vertices( void ) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/shader-leak.c b/src/gallium/tests/graw/shader-leak.c index 754ada6cf10..fce3683bf3d 100644 --- a/src/gallium/tests/graw/shader-leak.c +++ b/src/gallium/tests/graw/shader-leak.c @@ -93,7 +93,7 @@ static void set_vertices( void ) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/tex-srgb.c b/src/gallium/tests/graw/tex-srgb.c index dce91188ebe..af989d72a2e 100644 --- a/src/gallium/tests/graw/tex-srgb.c +++ b/src/gallium/tests/graw/tex-srgb.c @@ -75,7 +75,7 @@ set_vertices(struct vertex *verts, unsigned num_verts) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, num_verts * sizeof(struct vertex), verts); diff --git a/src/gallium/tests/graw/tex-swizzle.c b/src/gallium/tests/graw/tex-swizzle.c index 910a8ca3e45..e45b848b48e 100644 --- a/src/gallium/tests/graw/tex-swizzle.c +++ b/src/gallium/tests/graw/tex-swizzle.c @@ -57,7 +57,7 @@ static void set_vertices(void) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/tri-gs.c b/src/gallium/tests/graw/tri-gs.c index 24de12b723c..ab92dd02325 100644 --- a/src/gallium/tests/graw/tri-gs.c +++ b/src/gallium/tests/graw/tri-gs.c @@ -94,7 +94,7 @@ static void set_vertices( void ) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/tri-instanced.c b/src/gallium/tests/graw/tri-instanced.c index 55bc3a551da..d7cad81b722 100644 --- a/src/gallium/tests/graw/tri-instanced.c +++ b/src/gallium/tests/graw/tri-instanced.c @@ -137,7 +137,7 @@ static void set_vertices( void ) vbuf[0].buffer_offset = 0; vbuf[0].buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); @@ -146,7 +146,7 @@ static void set_vertices( void ) vbuf[1].buffer_offset = 0; vbuf[1].buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(inst_data), inst_data); @@ -155,7 +155,7 @@ static void set_vertices( void ) /* index data */ ibuf.buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_INDEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(indices), indices); ibuf.offset = 0; diff --git a/src/gallium/tests/graw/tri-large.c b/src/gallium/tests/graw/tri-large.c index 67d49b07bb0..4ccb7c52672 100644 --- a/src/gallium/tests/graw/tri-large.c +++ b/src/gallium/tests/graw/tri-large.c @@ -61,7 +61,7 @@ static void set_vertices( void ) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/tri.c b/src/gallium/tests/graw/tri.c index f1d8142bd51..0968387e1e4 100644 --- a/src/gallium/tests/graw/tri.c +++ b/src/gallium/tests/graw/tri.c @@ -58,7 +58,7 @@ static void set_vertices( void ) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(info.ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); diff --git a/src/gallium/tests/graw/vs-test.c b/src/gallium/tests/graw/vs-test.c index 0e9fc53e1b8..187759dcba4 100644 --- a/src/gallium/tests/graw/vs-test.c +++ b/src/gallium/tests/graw/vs-test.c @@ -176,7 +176,7 @@ static void set_vertices( void ) vbuf.buffer_offset = 0; vbuf.buffer = pipe_buffer_create_with_data(ctx, PIPE_BIND_VERTEX_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(vertices), vertices); |