summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/trivial/quad-tex.c
diff options
context:
space:
mode:
authorAndreas Boll <[email protected]>2012-11-21 15:37:58 +0100
committerAndreas Boll <[email protected]>2012-11-27 19:00:48 +0100
commitcba639f2a150db41f434f163fb3a36d2b0d70642 (patch)
tree8669dcc15d8d89f327f2309480bfd14b67e132c0 /src/gallium/tests/trivial/quad-tex.c
parent1553f5ce83c6baee5e3896ff345baa43f888409d (diff)
gallium/tests/trivial: updates for CSO interface changes
Fixes build error with configure option --enable-gallium-tests introduced in ea6f035ae90895bd4ee3247408eb179dfdf96d22 Cc: Brian Paul <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/tests/trivial/quad-tex.c')
-rw-r--r--src/gallium/tests/trivial/quad-tex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/tests/trivial/quad-tex.c b/src/gallium/tests/trivial/quad-tex.c
index f0c30d9d35b..feff902bbae 100644
--- a/src/gallium/tests/trivial/quad-tex.c
+++ b/src/gallium/tests/trivial/quad-tex.c
@@ -315,8 +315,8 @@ static void draw(struct program *p)
cso_set_viewport(p->cso, &p->viewport);
/* sampler */
- cso_single_sampler(p->cso, 0, &p->sampler);
- cso_single_sampler_done(p->cso);
+ cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler);
+ cso_single_sampler_done(p->cso, PIPE_SHADER_FRAGMENT);
/* texture sampler view */
cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view);