Home | History | Annotate | Download | only in svga

Lines Matching refs:svga

42 begin_blit(struct svga_context *svga)
44 util_blitter_save_vertex_buffer_slot(svga->blitter, svga->curr.vb);
45 util_blitter_save_vertex_elements(svga->blitter, (void*)svga->curr.velems);
46 util_blitter_save_vertex_shader(svga->blitter, svga->curr.vs);
47 util_blitter_save_geometry_shader(svga->blitter, svga->curr.gs);
48 util_blitter_save_so_targets(svga->blitter, svga->num_so_targets,
49 (struct pipe_stream_output_target**)svga->so_targets);
50 util_blitter_save_rasterizer(svga->blitter, (void*)svga->curr.rast);
51 util_blitter_save_viewport(svga->blitter, &svga->curr.viewport);
52 util_blitter_save_scissor(svga->blitter, &svga->curr.scissor);
53 util_blitter_save_fragment_shader(svga->blitter, svga->curr.fs);
54 util_blitter_save_blend(svga->blitter, (void*)svga->curr.blend);
55 util_blitter_save_depth_stencil_alpha(svga->blitter,
56 (void*)svga->curr.depth);
57 util_blitter_save_stencil_ref(svga->blitter, &svga->curr.stencil_ref);
58 util_blitter_save_sample_mask(svga->blitter, svga->curr.sample_mask);
68 clear_buffers_with_quad(struct svga_context *svga,
73 const struct pipe_framebuffer_state *fb = &svga->curr.framebuffer;
75 begin_blit(svga);
76 util_blitter_clear(svga->blitter,
120 try_clear(struct svga_context *svga,
130 struct pipe_framebuffer_state *fb = &svga->curr.framebuffer;
133 ret = svga_update_state(svga, SVGA_STATE_HW_CLEAR);
137 if (svga->rebind.flags.rendertargets) {
138 ret = svga_reemit_framebuffer_bindings(svga);
163 if (!svga_have_vgpu10(svga) &&
164 !svga_rects_equal(&rect, &svga->state.hw_clear.viewport)) {
166 ret = SVGA3D_SetViewport(svga->swc, &rect);
171 if (svga_have_vgpu10(svga)) {
176 clear_buffers_with_quad(svga, buffers, color, depth, stencil);
189 rtv = svga_validate_surface_view(svga,
194 ret = SVGA3D_vgpu10_ClearRenderTargetView(svga->swc,
203 svga_validate_surface_view(svga, svga_surface(fb->zsbuf));
207 ret = SVGA3D_vgpu10_ClearDepthStencilView(svga->swc, dsv, flags,
214 ret = SVGA3D_ClearRect(svga->swc, flags, uc.ui[0], (float) depth, stencil,
221 ret = SVGA3D_SetViewport(svga->swc, &svga->state.hw_clear.viewport);
236 struct svga_context *svga = svga_context( pipe );
241 if (svga->curr.framebuffer.cbufs[0]) {
242 h = svga_surface(svga->curr.framebuffer.cbufs[0])->handle;
248 svga_hwtnl_flush_retry(svga);
250 ret = try_clear( svga, buffers, color, depth, stencil );
255 svga_context_flush( svga, NULL );
257 ret = try_clear( svga, buffers, color, depth, stencil );
264 svga_mark_surfaces_dirty(svga);
277 struct svga_context *svga = svga_context(pipe);
324 svga_validate_surface_view(svga, svga_surface_dst);
336 ret = SVGA3D_vgpu10_ClearDepthStencilView(svga->swc, dsv,
341 svga_context_flush(svga, NULL);
342 ret = SVGA3D_vgpu10_ClearDepthStencilView(svga->swc, dsv,
351 util_blitter_save_framebuffer(svga->blitter,
352 &svga->curr.framebuffer);
353 begin_blit(svga);
354 util_blitter_clear_depth_stencil(svga->blitter,
385 svga_validate_surface_view(svga, svga_surface_dst);
394 struct pipe_framebuffer_state *curr = &svga->curr.framebuffer;
399 clear_buffers_with_quad(svga, PIPE_CLEAR_COLOR, &color, 0.0, 0);
403 ret = SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv,
406 svga_context_flush(svga,NULL);
407 ret = SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv,
427 util_blitter_save_framebuffer(svga->blitter,
428 &svga->curr.framebuffer);
429 begin_blit(svga);
430 util_blitter_clear_render_target(svga->blitter,
462 * \param svga[in] The svga context
469 svga_try_clear_render_target(struct svga_context *svga,
474 svga_validate_surface_view(svga, svga_surface(dst));
479 return SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv, color->f);
485 * \param svga[in] The svga
494 svga_blitter_clear_render_target(struct svga_context *svga,
500 begin_blit(svga);
501 util_blitter_save_framebuffer(svga->blitter, &svga->curr.framebuffer);
503 util_blitter_clear_render_target(svga->blitter, dst, color,
510 * \param svga[in] The svga context
516 svga_toggle_render_condition(struct svga_context *svga,
524 svga->pred.query_id == SVGA3D_INVALID_ID) {
530 * conditional rendering since svga->pred.query_id has already been
534 query_id = on ? svga->pred.query_id : SVGA3D_INVALID_ID;
536 ret = SVGA3D_vgpu10_SetPredication(svga->swc, query_id,
537 (uint32) svga->pred.cond);
539 svga_context_flush(svga, NULL);
540 ret = SVGA3D_vgpu10_SetPredication(svga->swc, query_id,
541 (uint32) svga->pred.cond);
567 struct svga_context *svga = svga_context( pipe );
569 svga_toggle_render_condition(svga, render_condition_enabled, FALSE);
570 if (!svga_have_vgpu10(svga) || dstx != 0 || dsty != 0 ||
572 svga_blitter_clear_render_target(svga, dst, color, dstx, dsty, width,
577 ret = svga_try_clear_render_target(svga, dst, color);
579 svga_context_flush( svga, NULL );
580 ret = svga_try_clear_render_target(svga, dst, color);
585 svga_toggle_render_condition(svga, render_condition_enabled, TRUE);
588 void svga_init_clear_functions(struct svga_context *svga)
590 svga->pipe.clear_render_target = svga_clear_render_target;
591 svga->pipe.clear_texture = svga_clear_texture;
592 svga->pipe.clear = svga_clear;