[Mesa-dev] [PATCH 2/3] gallium/tests/trivial: updates for CSO interface changes

Andreas Boll andreas.boll.dev at gmail.com
Wed Nov 21 09:12:53 PST 2012


Fixes build error with configure option --enable-gallium-tests
introduced in ea6f035ae90895bd4ee3247408eb179dfdf96d22

Cc: Brian Paul <brianp at vmware.com>
---
 src/gallium/tests/trivial/quad-tex.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/tests/trivial/quad-tex.c b/src/gallium/tests/trivial/quad-tex.c
index f0c30d9..feff902 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);
-- 
1.7.10.4



More information about the mesa-dev mailing list