gallium/tests: use pipe_context::bind_sampler_states()
authorBrian Paul <brianp@vmware.com>
Thu, 12 Sep 2013 21:40:13 +0000 (15:40 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Oct 2013 20:05:27 +0000 (14:05 -0600)
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/tex-srgb.c
src/gallium/tests/graw/tex-swizzle.c
src/gallium/tests/graw/vs-test.c
src/gallium/tests/trivial/compute.c

index 38a2c4b8c5ec8ffd3b9a8e88c86e0a346ff257ee..d9627913cff4fe0d941d3441dbfa6c50d21fb273 100644 (file)
@@ -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);
    
 }
 
index e4e4f61eba1af29625f0b812bc63295301fbf193..2a8f26eedd4cdb680d20a02ebbd04f78c08de88f 100644 (file)
@@ -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);
    
 }
 
index 969ffa71cd80c8489a31d47a46715de22ef67e06..847cb95a7cc1a6d39611c9509e166c4b023add60 100644 (file)
@@ -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);
    
 }
 
index 6cfcea33dd19e1c61ed9b8f8f4664fb04ec83fbe..7802d8efddf1e5b0680daba57f8956cccd87f38d 100644 (file)
@@ -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);
 }
 
 
index 296d22afc541ed4a3500c0408183f32cf22ceefc..5035fa781a965dda416a2bd930362d901ef29ff9 100644 (file)
@@ -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 */
index 4ee79ee7a24da058fddeae505cc351fe68f4a6f6..65c1d4dde5efdd50366d54e8d6ba855d3afa40ed 100644 (file)
@@ -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
 }
 
index 5a7d0a00eeee038c673e83af730eab5defbd5aa3..f351928592b7705ead17a7b03f546d9e896e96a9 100644 (file)
@@ -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);
    
 }
 
index 5337b86e8fe9e62de3616e39ecc2b19ab0fc0c08..339c2647e81c5dd65c24b75e8ee7c767b5c60635 100644 (file)
@@ -380,7 +380,7 @@ static void init_sampler_states(struct context *ctx, int n)
                 assert(ctx->hwsmp[i]);
         }
 
-        pipe->bind_compute_sampler_states(pipe, 0, i, ctx->hwsmp);
+        pipe->bind_sampler_states(pipe, PIPE_SHADER_COMPUTE, 0, i, ctx->hwsmp);
 }
 
 static void destroy_sampler_states(struct context *ctx)
@@ -388,7 +388,8 @@ static void destroy_sampler_states(struct context *ctx)
         struct pipe_context *pipe = ctx->pipe;
         int i;
 
-        pipe->bind_compute_sampler_states(pipe, 0, MAX_RESOURCES, NULL);
+        pipe->bind_sampler_states(pipe, PIPE_SHADER_COMPUTE,
+                                 0, MAX_RESOURCES, NULL);
 
         for (i = 0; i < MAX_RESOURCES; ++i) {
                 if (ctx->hwsmp[i]) {