gallium/tests: use cso_set_samplers
authorMarek Olšák <marek.olsak@amd.com>
Sun, 12 Jul 2015 14:12:59 +0000 (16:12 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Jul 2015 22:59:23 +0000 (00:59 +0200)
src/gallium/tests/trivial/quad-tex.c

index daae577ec4b804a1154b4d4d838f306b5e350f35..c019c7bb0a3c590b9579db22b2d0965c4686b3fd 100644 (file)
@@ -297,6 +297,8 @@ static void close_prog(struct program *p)
 
 static void draw(struct program *p)
 {
+       const struct pipe_sampler_state *samplers[] = {&p->sampler};
+
        /* set the render target */
        cso_set_framebuffer(p->cso, &p->framebuffer);
 
@@ -310,8 +312,7 @@ static void draw(struct program *p)
        cso_set_viewport(p->cso, &p->viewport);
 
        /* sampler */
-       cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler);
-       cso_single_sampler_done(p->cso, PIPE_SHADER_FRAGMENT);
+       cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 1, samplers);
 
        /* texture sampler view */
        cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view);