gallium/tests: use pipe_context::bind_sampler_states()
[mesa.git] / src / gallium / tests / graw / tex-srgb.c
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 */