Lines Matching refs:ureg
145 struct ureg_program *ureg; in fd_prog_blit_vs() local
147 ureg = ureg_create(PIPE_SHADER_VERTEX); in fd_prog_blit_vs()
148 if (!ureg) in fd_prog_blit_vs()
151 struct ureg_src in0 = ureg_DECL_vs_input(ureg, 0); in fd_prog_blit_vs()
152 struct ureg_src in1 = ureg_DECL_vs_input(ureg, 1); in fd_prog_blit_vs()
154 struct ureg_dst out0 = ureg_DECL_output(ureg, texcoord_semantic(pctx), 0); in fd_prog_blit_vs()
155 struct ureg_dst out1 = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 1); in fd_prog_blit_vs()
157 ureg_MOV(ureg, out0, in0); in fd_prog_blit_vs()
158 ureg_MOV(ureg, out1, in1); in fd_prog_blit_vs()
160 ureg_END(ureg); in fd_prog_blit_vs()
162 return ureg_create_shader_and_destroy(ureg, pctx); in fd_prog_blit_vs()
170 struct ureg_program *ureg; in fd_prog_blit_fs() local
174 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in fd_prog_blit_fs()
175 if (!ureg) in fd_prog_blit_fs()
178 tc = ureg_DECL_fs_input(ureg, texcoord_semantic(pctx), 0, in fd_prog_blit_fs()
181 ureg_TEX(ureg, ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, i), in fd_prog_blit_fs()
182 TGSI_TEXTURE_2D, tc, ureg_DECL_sampler(ureg, i)); in fd_prog_blit_fs()
184 ureg_TEX(ureg, in fd_prog_blit_fs()
185 ureg_writemask(ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0), in fd_prog_blit_fs()
187 TGSI_TEXTURE_2D, tc, ureg_DECL_sampler(ureg, rts)); in fd_prog_blit_fs()
189 ureg_END(ureg); in fd_prog_blit_fs()
191 return ureg_create_shader_and_destroy(ureg, pctx); in fd_prog_blit_fs()