From: Cooper Yuan Date: Mon, 24 Aug 2009 11:50:38 +0000 (+0800) Subject: tgsi: Fix build error due to commit acc7da90 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a88678d3eebf40107bb2ac46da30c4afe3d2531d;p=mesa.git tgsi: Fix build error due to commit acc7da90 --- diff --git a/src/gallium/auxiliary/util/u_simple_shaders.c b/src/gallium/auxiliary/util/u_simple_shaders.c index 1152d62e73e..d54a1d8c746 100644 --- a/src/gallium/auxiliary/util/u_simple_shaders.c +++ b/src/gallium/auxiliary/util/u_simple_shaders.c @@ -59,7 +59,7 @@ util_make_vertex_passthrough_shader(struct pipe_context *pipe, struct ureg_program *ureg; uint i; - ureg = ureg_create( pipe, TGSI_PROCESSOR_VERTEX ); + ureg = ureg_create( TGSI_PROCESSOR_VERTEX ); if (ureg == NULL) return NULL; @@ -80,7 +80,7 @@ util_make_vertex_passthrough_shader(struct pipe_context *pipe, ureg_END( ureg ); - return ureg_create_shader_and_destroy( ureg ); + return ureg_create_shader_and_destroy( ureg, pipe ); } @@ -99,7 +99,7 @@ util_make_fragment_tex_shader(struct pipe_context *pipe) struct ureg_src tex; struct ureg_dst out; - ureg = ureg_create( pipe, TGSI_PROCESSOR_FRAGMENT ); + ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT ); if (ureg == NULL) return NULL; @@ -116,7 +116,7 @@ util_make_fragment_tex_shader(struct pipe_context *pipe) ureg_TEX( ureg, out, TGSI_TEXTURE_2D, tex, sampler ); ureg_END( ureg ); - return ureg_create_shader_and_destroy( ureg ); + return ureg_create_shader_and_destroy( ureg, pipe ); } @@ -133,7 +133,7 @@ util_make_fragment_passthrough_shader(struct pipe_context *pipe) struct ureg_src src; struct ureg_dst dst; - ureg = ureg_create( pipe, TGSI_PROCESSOR_FRAGMENT ); + ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT ); if (ureg == NULL) return NULL; @@ -145,7 +145,7 @@ util_make_fragment_passthrough_shader(struct pipe_context *pipe) ureg_MOV( ureg, dst, src ); ureg_END( ureg ); - return ureg_create_shader_and_destroy( ureg ); + return ureg_create_shader_and_destroy( ureg, pipe ); }