diff options
author | Brian Paul <[email protected]> | 2013-09-12 15:40:13 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-10-03 14:05:27 -0600 |
commit | a5350a9f3efc0cf45ecb27cba8deedf9488f073b (patch) | |
tree | 5591d7ae03b0be9cd8b5b683cd9a92eab81c202d /src/gallium/tests/graw | |
parent | bc367ab54d8c18b06fbbb3838a0d19240c1afe9b (diff) |
gallium/tests: use pipe_context::bind_sampler_states()
Diffstat (limited to 'src/gallium/tests/graw')
-rw-r--r-- | src/gallium/tests/graw/fs-test.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/gs-test.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/quad-sample.c | 2 | ||||
-rw-r--r-- | src/gallium/tests/graw/quad-tex.c | 3 | ||||
-rw-r--r-- | src/gallium/tests/graw/tex-srgb.c | 3 | ||||
-rw-r--r-- | src/gallium/tests/graw/tex-swizzle.c | 3 | ||||
-rw-r--r-- | src/gallium/tests/graw/vs-test.c | 2 |
7 files changed, 10 insertions, 7 deletions
diff --git a/src/gallium/tests/graw/fs-test.c b/src/gallium/tests/graw/fs-test.c index 38a2c4b8c5e..d9627913cff 100644 --- a/src/gallium/tests/graw/fs-test.c +++ b/src/gallium/tests/graw/fs-test.c @@ -371,7 +371,7 @@ static void init_tex( void ) if (sampler == NULL) exit(6); - ctx->bind_fragment_sampler_states(ctx, 1, &sampler); + ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler); } diff --git a/src/gallium/tests/graw/gs-test.c b/src/gallium/tests/graw/gs-test.c index e4e4f61eba1..2a8f26eedd4 100644 --- a/src/gallium/tests/graw/gs-test.c +++ b/src/gallium/tests/graw/gs-test.c @@ -478,7 +478,7 @@ static void init_tex( void ) if (sampler == NULL) exit(6); - ctx->bind_fragment_sampler_states(ctx, 1, &sampler); + ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler); } diff --git a/src/gallium/tests/graw/quad-sample.c b/src/gallium/tests/graw/quad-sample.c index 969ffa71cd8..847cb95a7cc 100644 --- a/src/gallium/tests/graw/quad-sample.c +++ b/src/gallium/tests/graw/quad-sample.c @@ -286,7 +286,7 @@ static void init_tex( void ) if (sampler == NULL) exit(6); - ctx->bind_fragment_sampler_states(ctx, 1, &sampler); + ctx->bind_sampler_states(ctx, PIPE_SHADE_FRAGMENT, 0, 1, &sampler); } diff --git a/src/gallium/tests/graw/quad-tex.c b/src/gallium/tests/graw/quad-tex.c index 6cfcea33dd1..7802d8efddf 100644 --- a/src/gallium/tests/graw/quad-tex.c +++ b/src/gallium/tests/graw/quad-tex.c @@ -172,7 +172,8 @@ static void init_tex( void ) sampler = graw_util_create_simple_sampler(&info, PIPE_TEX_WRAP_REPEAT, PIPE_TEX_FILTER_NEAREST); - info.ctx->bind_fragment_sampler_states(info.ctx, 1, &sampler); + info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT, + 0, 1, &sampler); } diff --git a/src/gallium/tests/graw/tex-srgb.c b/src/gallium/tests/graw/tex-srgb.c index 296d22afc54..5035fa781a9 100644 --- a/src/gallium/tests/graw/tex-srgb.c +++ b/src/gallium/tests/graw/tex-srgb.c @@ -165,7 +165,8 @@ static void init_tex( void ) sampler = graw_util_create_simple_sampler(&info, PIPE_TEX_WRAP_REPEAT, PIPE_TEX_FILTER_NEAREST); - info.ctx->bind_fragment_sampler_states(info.ctx, 1, &sampler); + info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT, + 0, 1, &sampler); } /* linear sampler view */ diff --git a/src/gallium/tests/graw/tex-swizzle.c b/src/gallium/tests/graw/tex-swizzle.c index 4ee79ee7a24..65c1d4dde5e 100644 --- a/src/gallium/tests/graw/tex-swizzle.c +++ b/src/gallium/tests/graw/tex-swizzle.c @@ -152,7 +152,8 @@ init_tex(const unsigned swizzle[4]) PIPE_TEX_WRAP_REPEAT, PIPE_TEX_FILTER_NEAREST); - info.ctx->bind_fragment_sampler_states(info.ctx, 1, &sampler); + info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT, + 0, 1, &sampler); #undef SIZE } diff --git a/src/gallium/tests/graw/vs-test.c b/src/gallium/tests/graw/vs-test.c index 5a7d0a00eee..f351928592b 100644 --- a/src/gallium/tests/graw/vs-test.c +++ b/src/gallium/tests/graw/vs-test.c @@ -365,7 +365,7 @@ static void init_tex( void ) if (sampler == NULL) exit(6); - ctx->bind_fragment_sampler_states(ctx, 1, &sampler); + ctx->bind_sampler_states(ctx, PIPE_SHADER_FRAGMENT, 0, 1, &sampler); } |