• Home
  • Raw
  • Download

Lines Matching refs:svga

56    struct svga_context *svga = svga_context( pipe );  in svga_destroy()  local
59 svga_cleanup_framebuffer( svga ); in svga_destroy()
60 svga_cleanup_tss_binding( svga ); in svga_destroy()
62 svga_hwtnl_destroy( svga->hwtnl ); in svga_destroy()
64 svga_cleanup_vertex_state(svga); in svga_destroy()
66 svga->swc->destroy(svga->swc); in svga_destroy()
68 svga_destroy_swtnl( svga ); in svga_destroy()
70 u_upload_destroy( svga->upload_vb ); in svga_destroy()
71 u_upload_destroy( svga->upload_ib ); in svga_destroy()
73 util_bitmask_destroy( svga->vs_bm ); in svga_destroy()
74 util_bitmask_destroy( svga->fs_bm ); in svga_destroy()
77 pipe_resource_reference( &svga->curr.cb[shader], NULL ); in svga_destroy()
79 FREE( svga ); in svga_destroy()
88 struct svga_context *svga = NULL; in svga_context_create() local
91 svga = CALLOC_STRUCT(svga_context); in svga_context_create()
92 if (svga == NULL) in svga_context_create()
95 svga->pipe.screen = screen; in svga_context_create()
96 svga->pipe.priv = priv; in svga_context_create()
97 svga->pipe.destroy = svga_destroy; in svga_context_create()
98 svga->pipe.clear = svga_clear; in svga_context_create()
100 svga->swc = svgascreen->sws->context_create(svgascreen->sws); in svga_context_create()
101 if(!svga->swc) in svga_context_create()
104 svga_init_resource_functions(svga); in svga_context_create()
105 svga_init_blend_functions(svga); in svga_context_create()
106 svga_init_blit_functions(svga); in svga_context_create()
107 svga_init_depth_stencil_functions(svga); in svga_context_create()
108 svga_init_draw_functions(svga); in svga_context_create()
109 svga_init_flush_functions(svga); in svga_context_create()
110 svga_init_misc_functions(svga); in svga_context_create()
111 svga_init_rasterizer_functions(svga); in svga_context_create()
112 svga_init_sampler_functions(svga); in svga_context_create()
113 svga_init_fs_functions(svga); in svga_context_create()
114 svga_init_vs_functions(svga); in svga_context_create()
115 svga_init_vertex_functions(svga); in svga_context_create()
116 svga_init_constbuffer_functions(svga); in svga_context_create()
117 svga_init_query_functions(svga); in svga_context_create()
118 svga_init_surface_functions(svga); in svga_context_create()
122 svga->debug.no_swtnl = debug_get_option_no_swtnl(); in svga_context_create()
123 svga->debug.force_swtnl = debug_get_option_force_swtnl(); in svga_context_create()
124 svga->debug.use_min_mipmap = debug_get_option_use_min_mipmap(); in svga_context_create()
125 svga->debug.disable_shader = debug_get_option_disable_shader(); in svga_context_create()
126 svga->debug.no_line_width = debug_get_option_no_line_width(); in svga_context_create()
127 svga->debug.force_hw_line_stipple = debug_get_option_force_hw_line_stipple(); in svga_context_create()
129 svga->fs_bm = util_bitmask_create(); in svga_context_create()
130 if (svga->fs_bm == NULL) in svga_context_create()
133 svga->vs_bm = util_bitmask_create(); in svga_context_create()
134 if (svga->vs_bm == NULL) in svga_context_create()
137 svga->upload_ib = u_upload_create( &svga->pipe, in svga_context_create()
141 if (svga->upload_ib == NULL) in svga_context_create()
144 svga->upload_vb = u_upload_create( &svga->pipe, in svga_context_create()
148 if (svga->upload_vb == NULL) in svga_context_create()
151 svga->hwtnl = svga_hwtnl_create( svga, in svga_context_create()
152 svga->upload_ib, in svga_context_create()
153 svga->swc ); in svga_context_create()
154 if (svga->hwtnl == NULL) in svga_context_create()
157 if (!svga_init_swtnl(svga)) in svga_context_create()
160 ret = svga_emit_initial_state( svga ); in svga_context_create()
166 memset(&svga->state.hw_clear, 0xcd, sizeof(svga->state.hw_clear)); in svga_context_create()
167 memset(&svga->state.hw_clear.framebuffer, 0x0, in svga_context_create()
168 sizeof(svga->state.hw_clear.framebuffer)); in svga_context_create()
170 memset(&svga->state.hw_draw, 0xcd, sizeof(svga->state.hw_draw)); in svga_context_create()
171 memset(&svga->state.hw_draw.views, 0x0, sizeof(svga->state.hw_draw.views)); in svga_context_create()
172 svga->state.hw_draw.num_views = 0; in svga_context_create()
174 svga->dirty = ~0; in svga_context_create()
176 LIST_INITHEAD(&svga->dirty_buffers); in svga_context_create()
178 return &svga->pipe; in svga_context_create()
181 svga_destroy_swtnl(svga); in svga_context_create()
183 svga_hwtnl_destroy( svga->hwtnl ); in svga_context_create()
185 u_upload_destroy( svga->upload_vb ); in svga_context_create()
187 u_upload_destroy( svga->upload_ib ); in svga_context_create()
189 util_bitmask_destroy( svga->vs_bm ); in svga_context_create()
191 util_bitmask_destroy( svga->fs_bm ); in svga_context_create()
193 svga->swc->destroy(svga->swc); in svga_context_create()
195 FREE(svga); in svga_context_create()
201 void svga_context_flush( struct svga_context *svga, in svga_context_flush() argument
204 struct svga_screen *svgascreen = svga_screen(svga->pipe.screen); in svga_context_flush()
207 svga->curr.nr_fbs = 0; in svga_context_flush()
214 u_upload_flush(svga->upload_vb); in svga_context_flush()
215 u_upload_flush(svga->upload_ib); in svga_context_flush()
220 svga_context_flush_buffers(svga); in svga_context_flush()
224 svga->swc->flush(svga->swc, &fence); in svga_context_flush()
231 svga->rebind.rendertargets = TRUE; in svga_context_flush()
232 svga->rebind.texture_samplers = TRUE; in svga_context_flush()
236 svga->pipe.screen->fence_finish( svga->pipe.screen, fence, in svga_context_flush()
247 void svga_hwtnl_flush_retry( struct svga_context *svga ) in svga_hwtnl_flush_retry() argument
251 ret = svga_hwtnl_flush( svga->hwtnl ); in svga_hwtnl_flush_retry()
253 svga_context_flush( svga, NULL ); in svga_hwtnl_flush_retry()
254 ret = svga_hwtnl_flush( svga->hwtnl ); in svga_hwtnl_flush_retry()
266 void svga_hwtnl_flush_buffer( struct svga_context *svga, in svga_hwtnl_flush_buffer() argument
269 if (svga_hwtnl_is_buffer_referred(svga->hwtnl, buffer)) { in svga_hwtnl_flush_buffer()
270 svga_hwtnl_flush_retry(svga); in svga_hwtnl_flush_buffer()
277 void svga_surfaces_flush(struct svga_context *svga) in svga_surfaces_flush() argument
283 svga_hwtnl_flush_retry( svga ); in svga_surfaces_flush()
288 if (svga->curr.framebuffer.cbufs[i]) in svga_surfaces_flush()
289 svga_propagate_surface(svga, svga->curr.framebuffer.cbufs[i]); in svga_surfaces_flush()
292 if (svga->curr.framebuffer.zsbuf) in svga_surfaces_flush()
293 svga_propagate_surface(svga, svga->curr.framebuffer.zsbuf); in svga_surfaces_flush()