Lines Matching refs:ureg
337 struct ureg_program *ureg; in st_pbo_create_gs() local
344 ureg = ureg_create(PIPE_SHADER_GEOMETRY); in st_pbo_create_gs()
345 if (!ureg) in st_pbo_create_gs()
348 ureg_property(ureg, TGSI_PROPERTY_GS_INPUT_PRIM, PIPE_PRIM_TRIANGLES); in st_pbo_create_gs()
349 ureg_property(ureg, TGSI_PROPERTY_GS_OUTPUT_PRIM, PIPE_PRIM_TRIANGLE_STRIP); in st_pbo_create_gs()
350 ureg_property(ureg, TGSI_PROPERTY_GS_MAX_OUTPUT_VERTICES, 3); in st_pbo_create_gs()
352 out_pos = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); in st_pbo_create_gs()
353 out_layer = ureg_DECL_output(ureg, TGSI_SEMANTIC_LAYER, 0); in st_pbo_create_gs()
355 in_pos = ureg_DECL_input(ureg, TGSI_SEMANTIC_POSITION, 0, 0, 1); in st_pbo_create_gs()
357 imm = ureg_DECL_immediate_int(ureg, &zero, 1); in st_pbo_create_gs()
363 ureg_MOV(ureg, out_pos, in_pos_vertex); in st_pbo_create_gs()
366 ureg_F2I(ureg, ureg_writemask(out_layer, TGSI_WRITEMASK_X), in st_pbo_create_gs()
369 ureg_EMIT(ureg, ureg_scalar(imm, TGSI_SWIZZLE_X)); in st_pbo_create_gs()
372 ureg_END(ureg); in st_pbo_create_gs()
374 return ureg_create_shader_and_destroy(ureg, st->pipe); in st_pbo_create_gs()