• Home
  • Raw
  • Download

Lines Matching refs:ureg

195    struct ureg_program *ureg;  in create_passthrough_vs()  local
200 ureg = ureg_create(TGSI_PROCESSOR_VERTEX); in create_passthrough_vs()
201 if (!ureg) in create_passthrough_vs()
205 src[0] = ureg_DECL_vs_input(ureg, 0); in create_passthrough_vs()
206 dst[0] = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in create_passthrough_vs()
207 tmp = ureg_DECL_temporary(ureg); in create_passthrough_vs()
209 constants[i] = ureg_DECL_constant(ureg, i); in create_passthrough_vs()
212 ureg_DP4(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), src[0], constants[0]); in create_passthrough_vs()
213 ureg_DP4(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), src[0], constants[1]); in create_passthrough_vs()
214 ureg_MOV(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Z), src[0]); in create_passthrough_vs()
215 ureg_DP4(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_W), src[0], constants[2]); in create_passthrough_vs()
216 ureg_MOV(ureg, dst[0], ureg_src(tmp)); in create_passthrough_vs()
219 src[1] = ureg_DECL_vs_input(ureg, 1); in create_passthrough_vs()
220 dst[1] = ureg_DECL_output(ureg, semantic_name, 0); in create_passthrough_vs()
221 ureg_MOV(ureg, dst[1], src[1]); in create_passthrough_vs()
224 ureg_END(ureg); in create_passthrough_vs()
226 return ureg_create_shader_and_destroy(ureg, pipe); in create_passthrough_vs()
265 struct ureg_program *ureg; in create_scissor_fs() local
269 ureg = ureg_create(TGSI_PROCESSOR_FRAGMENT); in create_scissor_fs()
270 out = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in create_scissor_fs()
271 imm = ureg_imm4f(ureg, 0.0f, 0.0f, 0.0f, 0.0f); in create_scissor_fs()
273 ureg_MOV(ureg, ureg_writemask(out, TGSI_WRITEMASK_Z), imm); in create_scissor_fs()
274 ureg_END(ureg); in create_scissor_fs()
276 return ureg_create_shader_and_destroy(ureg, pipe); in create_scissor_fs()
284 struct ureg_program *ureg; in create_white_fs() local
288 ureg = ureg_create(TGSI_PROCESSOR_FRAGMENT); in create_white_fs()
289 out = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in create_white_fs()
290 imm = ureg_imm4f(ureg, 1.0f, 1.0f, 1.0f, 1.0f); in create_white_fs()
292 ureg_MOV(ureg, out, imm); in create_white_fs()
293 ureg_END(ureg); in create_white_fs()
295 return ureg_create_shader_and_destroy(ureg, pipe); in create_white_fs()