Lines Matching refs:pipe

86 nvc0_blend_state_create(struct pipe_context *pipe,  in nvc0_blend_state_create()  argument
97 so->pipe = *cso; in nvc0_blend_state_create()
192 nvc0_blend_state_bind(struct pipe_context *pipe, void *hwcso) in nvc0_blend_state_bind() argument
194 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_blend_state_bind()
201 nvc0_blend_state_delete(struct pipe_context *pipe, void *hwcso) in nvc0_blend_state_delete() argument
208 nvc0_rasterizer_state_create(struct pipe_context *pipe, in nvc0_rasterizer_state_create() argument
217 so->pipe = *cso; in nvc0_rasterizer_state_create()
320 nvc0_rasterizer_state_bind(struct pipe_context *pipe, void *hwcso) in nvc0_rasterizer_state_bind() argument
322 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_rasterizer_state_bind()
329 nvc0_rasterizer_state_delete(struct pipe_context *pipe, void *hwcso) in nvc0_rasterizer_state_delete() argument
335 nvc0_zsa_state_create(struct pipe_context *pipe, in nvc0_zsa_state_create() argument
340 so->pipe = *cso; in nvc0_zsa_state_create()
391 nvc0_zsa_state_bind(struct pipe_context *pipe, void *hwcso) in nvc0_zsa_state_bind() argument
393 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_zsa_state_bind()
400 nvc0_zsa_state_delete(struct pipe_context *pipe, void *hwcso) in nvc0_zsa_state_delete() argument
430 nvc0_sampler_state_delete(struct pipe_context *pipe, void *hwcso) in nvc0_sampler_state_delete() argument
435 for (i = 0; i < nvc0_context(pipe)->num_samplers[s]; ++i) in nvc0_sampler_state_delete()
436 if (nvc0_context(pipe)->samplers[s][i] == hwcso) in nvc0_sampler_state_delete()
437 nvc0_context(pipe)->samplers[s][i] = NULL; in nvc0_sampler_state_delete()
439 nvc0_screen_tsc_free(nvc0_context(pipe)->screen, nv50_tsc_entry(hwcso)); in nvc0_sampler_state_delete()
474 nvc0_vp_sampler_states_bind(struct pipe_context *pipe, unsigned nr, void **s) in nvc0_vp_sampler_states_bind() argument
476 nvc0_stage_sampler_states_bind(nvc0_context(pipe), 0, nr, s); in nvc0_vp_sampler_states_bind()
480 nvc0_fp_sampler_states_bind(struct pipe_context *pipe, unsigned nr, void **s) in nvc0_fp_sampler_states_bind() argument
482 nvc0_stage_sampler_states_bind(nvc0_context(pipe), 4, nr, s); in nvc0_fp_sampler_states_bind()
486 nvc0_gp_sampler_states_bind(struct pipe_context *pipe, unsigned nr, void **s) in nvc0_gp_sampler_states_bind() argument
488 nvc0_stage_sampler_states_bind(nvc0_context(pipe), 3, nr, s); in nvc0_gp_sampler_states_bind()
493 nvc0_sampler_view_destroy(struct pipe_context *pipe, in nvc0_sampler_view_destroy() argument
498 nvc0_screen_tic_free(nvc0_context(pipe)->screen, nv50_tic_entry(view)); in nvc0_sampler_view_destroy()
540 nvc0_vp_set_sampler_views(struct pipe_context *pipe, in nvc0_vp_set_sampler_views() argument
544 nvc0_stage_set_sampler_views(nvc0_context(pipe), 0, nr, views); in nvc0_vp_set_sampler_views()
548 nvc0_fp_set_sampler_views(struct pipe_context *pipe, in nvc0_fp_set_sampler_views() argument
552 nvc0_stage_set_sampler_views(nvc0_context(pipe), 4, nr, views); in nvc0_fp_set_sampler_views()
556 nvc0_gp_set_sampler_views(struct pipe_context *pipe, in nvc0_gp_set_sampler_views() argument
560 nvc0_stage_set_sampler_views(nvc0_context(pipe), 3, nr, views); in nvc0_gp_set_sampler_views()
567 nvc0_sp_state_create(struct pipe_context *pipe, in nvc0_sp_state_create() argument
579 prog->pipe.tokens = tgsi_dup_tokens(cso->tokens); in nvc0_sp_state_create()
582 prog->pipe.stream_output = cso->stream_output; in nvc0_sp_state_create()
588 nvc0_sp_state_delete(struct pipe_context *pipe, void *hwcso) in nvc0_sp_state_delete() argument
592 nvc0_program_destroy(nvc0_context(pipe), prog); in nvc0_sp_state_delete()
594 FREE((void *)prog->pipe.tokens); in nvc0_sp_state_delete()
599 nvc0_vp_state_create(struct pipe_context *pipe, in nvc0_vp_state_create() argument
602 return nvc0_sp_state_create(pipe, cso, PIPE_SHADER_VERTEX); in nvc0_vp_state_create()
606 nvc0_vp_state_bind(struct pipe_context *pipe, void *hwcso) in nvc0_vp_state_bind() argument
608 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_vp_state_bind()
615 nvc0_fp_state_create(struct pipe_context *pipe, in nvc0_fp_state_create() argument
618 return nvc0_sp_state_create(pipe, cso, PIPE_SHADER_FRAGMENT); in nvc0_fp_state_create()
622 nvc0_fp_state_bind(struct pipe_context *pipe, void *hwcso) in nvc0_fp_state_bind() argument
624 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_fp_state_bind()
631 nvc0_gp_state_create(struct pipe_context *pipe, in nvc0_gp_state_create() argument
634 return nvc0_sp_state_create(pipe, cso, PIPE_SHADER_GEOMETRY); in nvc0_gp_state_create()
638 nvc0_gp_state_bind(struct pipe_context *pipe, void *hwcso) in nvc0_gp_state_bind() argument
640 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_gp_state_bind()
647 nvc0_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index, in nvc0_set_constant_buffer() argument
650 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_constant_buffer()
685 nvc0_set_blend_color(struct pipe_context *pipe, in nvc0_set_blend_color() argument
688 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_blend_color()
695 nvc0_set_stencil_ref(struct pipe_context *pipe, in nvc0_set_stencil_ref() argument
698 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_stencil_ref()
705 nvc0_set_clip_state(struct pipe_context *pipe, in nvc0_set_clip_state() argument
708 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_clip_state()
716 nvc0_set_sample_mask(struct pipe_context *pipe, unsigned sample_mask) in nvc0_set_sample_mask() argument
718 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_sample_mask()
726 nvc0_set_framebuffer_state(struct pipe_context *pipe, in nvc0_set_framebuffer_state() argument
729 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_framebuffer_state()
750 nvc0_set_polygon_stipple(struct pipe_context *pipe, in nvc0_set_polygon_stipple() argument
753 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_polygon_stipple()
760 nvc0_set_scissor_state(struct pipe_context *pipe, in nvc0_set_scissor_state() argument
763 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_scissor_state()
770 nvc0_set_viewport_state(struct pipe_context *pipe, in nvc0_set_viewport_state() argument
773 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_viewport_state()
780 nvc0_set_vertex_buffers(struct pipe_context *pipe, in nvc0_set_vertex_buffers() argument
784 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_vertex_buffers()
837 nvc0_set_index_buffer(struct pipe_context *pipe, in nvc0_set_index_buffer() argument
840 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_index_buffer()
862 nvc0_vertex_state_bind(struct pipe_context *pipe, void *hwcso) in nvc0_vertex_state_bind() argument
864 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_vertex_state_bind()
871 nvc0_so_target_create(struct pipe_context *pipe, in nvc0_so_target_create() argument
879 targ->pq = pipe->create_query(pipe, NVC0_QUERY_TFB_BUFFER_OFFSET); in nvc0_so_target_create()
886 targ->pipe.buffer_size = size; in nvc0_so_target_create()
887 targ->pipe.buffer_offset = offset; in nvc0_so_target_create()
888 targ->pipe.context = pipe; in nvc0_so_target_create()
889 targ->pipe.buffer = NULL; in nvc0_so_target_create()
890 pipe_resource_reference(&targ->pipe.buffer, res); in nvc0_so_target_create()
891 pipe_reference_init(&targ->pipe.reference, 1); in nvc0_so_target_create()
893 return &targ->pipe; in nvc0_so_target_create()
897 nvc0_so_target_destroy(struct pipe_context *pipe, in nvc0_so_target_destroy() argument
901 pipe->destroy_query(pipe, targ->pq); in nvc0_so_target_destroy()
902 pipe_resource_reference(&targ->pipe.buffer, NULL); in nvc0_so_target_destroy()
907 nvc0_set_transform_feedback_targets(struct pipe_context *pipe, in nvc0_set_transform_feedback_targets() argument
912 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_set_transform_feedback_targets()
924 nvc0_so_target_save_offset(pipe, nvc0->tfbbuf[i], i, &serialize); in nvc0_set_transform_feedback_targets()
933 nvc0_so_target_save_offset(pipe, nvc0->tfbbuf[i], i, &serialize); in nvc0_set_transform_feedback_targets()
945 struct pipe_context *pipe = &nvc0->base.pipe; in nvc0_init_state_functions() local
947 pipe->create_blend_state = nvc0_blend_state_create; in nvc0_init_state_functions()
948 pipe->bind_blend_state = nvc0_blend_state_bind; in nvc0_init_state_functions()
949 pipe->delete_blend_state = nvc0_blend_state_delete; in nvc0_init_state_functions()
951 pipe->create_rasterizer_state = nvc0_rasterizer_state_create; in nvc0_init_state_functions()
952 pipe->bind_rasterizer_state = nvc0_rasterizer_state_bind; in nvc0_init_state_functions()
953 pipe->delete_rasterizer_state = nvc0_rasterizer_state_delete; in nvc0_init_state_functions()
955 pipe->create_depth_stencil_alpha_state = nvc0_zsa_state_create; in nvc0_init_state_functions()
956 pipe->bind_depth_stencil_alpha_state = nvc0_zsa_state_bind; in nvc0_init_state_functions()
957 pipe->delete_depth_stencil_alpha_state = nvc0_zsa_state_delete; in nvc0_init_state_functions()
959 pipe->create_sampler_state = nv50_sampler_state_create; in nvc0_init_state_functions()
960 pipe->delete_sampler_state = nvc0_sampler_state_delete; in nvc0_init_state_functions()
961 pipe->bind_vertex_sampler_states = nvc0_vp_sampler_states_bind; in nvc0_init_state_functions()
962 pipe->bind_fragment_sampler_states = nvc0_fp_sampler_states_bind; in nvc0_init_state_functions()
963 pipe->bind_geometry_sampler_states = nvc0_gp_sampler_states_bind; in nvc0_init_state_functions()
965 pipe->create_sampler_view = nvc0_create_sampler_view; in nvc0_init_state_functions()
966 pipe->sampler_view_destroy = nvc0_sampler_view_destroy; in nvc0_init_state_functions()
967 pipe->set_vertex_sampler_views = nvc0_vp_set_sampler_views; in nvc0_init_state_functions()
968 pipe->set_fragment_sampler_views = nvc0_fp_set_sampler_views; in nvc0_init_state_functions()
969 pipe->set_geometry_sampler_views = nvc0_gp_set_sampler_views; in nvc0_init_state_functions()
971 pipe->create_vs_state = nvc0_vp_state_create; in nvc0_init_state_functions()
972 pipe->create_fs_state = nvc0_fp_state_create; in nvc0_init_state_functions()
973 pipe->create_gs_state = nvc0_gp_state_create; in nvc0_init_state_functions()
974 pipe->bind_vs_state = nvc0_vp_state_bind; in nvc0_init_state_functions()
975 pipe->bind_fs_state = nvc0_fp_state_bind; in nvc0_init_state_functions()
976 pipe->bind_gs_state = nvc0_gp_state_bind; in nvc0_init_state_functions()
977 pipe->delete_vs_state = nvc0_sp_state_delete; in nvc0_init_state_functions()
978 pipe->delete_fs_state = nvc0_sp_state_delete; in nvc0_init_state_functions()
979 pipe->delete_gs_state = nvc0_sp_state_delete; in nvc0_init_state_functions()
981 pipe->set_blend_color = nvc0_set_blend_color; in nvc0_init_state_functions()
982 pipe->set_stencil_ref = nvc0_set_stencil_ref; in nvc0_init_state_functions()
983 pipe->set_clip_state = nvc0_set_clip_state; in nvc0_init_state_functions()
984 pipe->set_sample_mask = nvc0_set_sample_mask; in nvc0_init_state_functions()
985 pipe->set_constant_buffer = nvc0_set_constant_buffer; in nvc0_init_state_functions()
986 pipe->set_framebuffer_state = nvc0_set_framebuffer_state; in nvc0_init_state_functions()
987 pipe->set_polygon_stipple = nvc0_set_polygon_stipple; in nvc0_init_state_functions()
988 pipe->set_scissor_state = nvc0_set_scissor_state; in nvc0_init_state_functions()
989 pipe->set_viewport_state = nvc0_set_viewport_state; in nvc0_init_state_functions()
991 pipe->create_vertex_elements_state = nvc0_vertex_state_create; in nvc0_init_state_functions()
992 pipe->delete_vertex_elements_state = nvc0_vertex_state_delete; in nvc0_init_state_functions()
993 pipe->bind_vertex_elements_state = nvc0_vertex_state_bind; in nvc0_init_state_functions()
995 pipe->set_vertex_buffers = nvc0_set_vertex_buffers; in nvc0_init_state_functions()
996 pipe->set_index_buffer = nvc0_set_index_buffer; in nvc0_init_state_functions()
998 pipe->create_stream_output_target = nvc0_so_target_create; in nvc0_init_state_functions()
999 pipe->stream_output_target_destroy = nvc0_so_target_destroy; in nvc0_init_state_functions()
1000 pipe->set_stream_output_targets = nvc0_set_transform_feedback_targets; in nvc0_init_state_functions()