/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
svga_pipe_flush.c | 37 struct svga_context *svga = svga_context(pipe); local 41 svga_surfaces_flush( svga ); 45 svga_context_flush(svga, fence); 52 struct pipe_framebuffer_state *fb = &svga->curr.framebuffer; 59 debug_dump_surface_bmp(&svga->pipe, filename, fb->cbufs[i]); 64 debug_dump_surface_bmp(&svga->pipe, filename, fb->zsbuf); 72 void svga_init_flush_functions( struct svga_context *svga ) 74 svga->pipe.flush = svga_flush;
|
svga_pipe_blend.c | 207 struct svga_context *svga = svga_context(pipe); local 209 svga->curr.blend = (struct svga_blend_state*)blend; 210 svga->dirty |= SVGA_NEW_BLEND; 222 struct svga_context *svga = svga_context(pipe); local 224 svga->curr.blend_color = *blend_color; 226 svga->dirty |= SVGA_NEW_BLEND_COLOR; 230 void svga_init_blend_functions( struct svga_context *svga ) 232 svga->pipe.create_blend_state = svga_create_blend_state; 233 svga->pipe.bind_blend_state = svga_bind_blend_state; 234 svga->pipe.delete_blend_state = svga_delete_blend_state [all...] |
svga_pipe_blit.c | 46 struct svga_context *svga = svga_context(pipe); local 56 svga_surfaces_flush( svga ); 84 ret = SVGA3D_BeginSurfaceCopy(svga->swc, 91 svga_context_flush(svga, NULL); 93 ret = SVGA3D_BeginSurfaceCopy(svga->swc, 111 SVGA_FIFOCommitAll(svga->swc); 139 svga_texture_copy_handle(svga, 154 svga_init_blit_functions(struct svga_context *svga) 156 svga->pipe.resource_copy_region = svga_surface_copy;
|
svga_pipe_clear.c | 38 try_clear(struct svga_context *svga, 48 struct pipe_framebuffer_state *fb = &svga->curr.framebuffer; 51 ret = svga_update_state(svga, SVGA_STATE_HW_CLEAR); 55 if (svga->rebind.rendertargets) { 56 ret = svga_reemit_framebuffer_bindings(svga); 74 if ((svga->curr.framebuffer.zsbuf->format == PIPE_FORMAT_S8_UINT_Z24_UNORM) && 82 if (memcmp(&rect, &svga->state.hw_clear.viewport, sizeof(rect)) != 0) { 84 ret = SVGA3D_SetViewport(svga->swc, &rect); 89 ret = SVGA3D_ClearRect(svga->swc, flags, uc.ui, depth, stencil, 95 memcpy(&rect, &svga->state.hw_clear.viewport, sizeof rect) 111 struct svga_context *svga = svga_context( pipe ); local [all...] |
svga_pipe_constants.c | 51 struct svga_context *svga = svga_context(pipe); local 64 pipe_resource_reference( &svga->curr.cb[shader], 68 svga->dirty |= SVGA_NEW_FS_CONST_BUFFER; 70 svga->dirty |= SVGA_NEW_VS_CONST_BUFFER; 79 void svga_init_constbuffer_functions( struct svga_context *svga ) 81 svga->pipe.set_constant_buffer = svga_set_constant_buffer;
|
svga_pipe_depthstencil.c | 127 struct svga_context *svga = svga_context(pipe); local 129 svga->curr.depth = (const struct svga_depth_stencil_state *)depth_stencil; 130 svga->dirty |= SVGA_NEW_DEPTH_STENCIL; 143 struct svga_context *svga = svga_context(pipe); local 145 svga->curr.stencil_ref = *stencil_ref; 147 svga->dirty |= SVGA_NEW_STENCIL_REF; 157 void svga_init_depth_stencil_functions( struct svga_context *svga ) 159 svga->pipe.create_depth_stencil_alpha_state = svga_create_depth_stencil_state; 160 svga->pipe.bind_depth_stencil_alpha_state = svga_bind_depth_stencil_state; 161 svga->pipe.delete_depth_stencil_alpha_state = svga_delete_depth_stencil_state [all...] |
svga_pipe_fs.c | 48 struct svga_context *svga = svga_context(pipe); local 61 fs->base.id = svga->debug.shader_id++; 67 fs->draw_shader = draw_create_fragment_shader(svga->swtnl.draw, templ); 82 struct svga_context *svga = svga_context(pipe); local 84 svga->curr.fs = fs; 85 svga->dirty |= SVGA_NEW_FS; 91 struct svga_context *svga = svga_context(pipe); local 96 svga_hwtnl_flush_retry( svga ); 98 draw_delete_fragment_shader(svga->swtnl.draw, fs->draw_shader); 103 ret = SVGA3D_DestroyShader(svga->swc, [all...] |
svga_context.c | 56 struct svga_context *svga = svga_context( pipe ); local 59 svga_cleanup_framebuffer( svga ); 60 svga_cleanup_tss_binding( svga ); 62 svga_hwtnl_destroy( svga->hwtnl ); 64 svga_cleanup_vertex_state(svga); 66 svga->swc->destroy(svga->swc); 68 svga_destroy_swtnl( svga ); 70 u_upload_destroy( svga->upload_vb ); 71 u_upload_destroy( svga->upload_ib ) 88 struct svga_context *svga = NULL; local [all...] |
svga_pipe_misc.c | 37 struct svga_context *svga = svga_context(pipe); local 39 memcpy( &svga->curr.scissor, scissor, sizeof(*scissor) ); 40 svga->dirty |= SVGA_NEW_SCISSOR; 51 void svga_cleanup_framebuffer(struct svga_context *svga) 53 struct pipe_framebuffer_state *curr = &svga->curr.framebuffer; 54 struct pipe_framebuffer_state *hw = &svga->state.hw_clear.framebuffer; 75 struct svga_context *svga = svga_context(pipe); local 76 struct pipe_framebuffer_state *dst = &svga->curr.framebuffer; 93 svga_hwtnl_flush_retry( svga ); 97 svga_propagate_surface(svga, dst->cbufs[i]) 152 struct svga_context *svga = svga_context(pipe); local 167 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_pipe_vertex.c | 42 struct svga_context *svga = svga_context(pipe); local 47 if (count == svga->curr.num_vertex_buffers && 48 memcmp(svga->curr.vb, buffers, count * sizeof buffers[0]) == 0) 53 pipe_resource_reference(&svga->curr.vb[i].buffer, buffers[i].buffer); 58 for ( ; i < svga->curr.num_vertex_buffers; i++) 59 pipe_resource_reference(&svga->curr.vb[i].buffer, NULL); 62 memcpy(svga->curr.vb, buffers, count * sizeof buffers[0]); 63 svga->curr.num_vertex_buffers = count; 64 svga->curr.any_user_vertex_buffers = any_user_buffer; 66 svga->dirty |= SVGA_NEW_VBUFFER 73 struct svga_context *svga = svga_context(pipe); local 106 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_pipe_vs.c | 102 struct svga_context *svga = svga_context(pipe); local 109 vs->base.tokens = tgsi_dup_tokens(substitute_vs(svga->debug.shader_id, 123 vs->draw_shader = draw_create_vertex_shader(svga->swtnl.draw, &tmp2); 126 vs->base.id = svga->debug.shader_id++; 140 struct svga_context *svga = svga_context(pipe); local 142 svga->curr.vs = vs; 143 svga->dirty |= SVGA_NEW_VS; 149 struct svga_context *svga = svga_context(pipe); local 154 svga_hwtnl_flush_retry( svga ); 156 draw_delete_vertex_shader(svga->swtnl.draw, vs->draw_shader) [all...] |
svga_sampler_view.c | 59 struct svga_context *svga = svga_context(pipe); local 98 SVGA_DBG(DEBUG_VIEWS, "svga: Sampler view: reuse %p, %u %u, last %u\n", 120 "svga: Sampler view: no %p, mips %u..%u, nr %u, size (%ux%ux%u), last %u\n", 135 "svga: Sampler view: yes %p, mips %u..%u, nr %u, size (%ux%ux%u), last %u\n", 144 sv->handle = svga_texture_view_surface(svga, tex, flags, format, 170 svga_validate_sampler_view(struct svga_context *svga, struct svga_sampler_view *v) 177 assert(svga); 192 svga_texture_copy_handle(svga,
|
svga_pipe_rasterizer.c | 67 struct svga_context *svga = svga_context(pipe); local 104 !svga->debug.no_line_width) { 113 if (!svga->debug.force_hw_line_stipple) { 237 struct svga_context *svga = svga_context(pipe); local 241 draw_set_rasterizer_state(svga->swtnl.draw, raster ? &raster->templ : NULL, 243 svga->curr.rast = raster; 245 svga->dirty |= SVGA_NEW_RAST; 255 void svga_init_rasterizer_functions( struct svga_context *svga ) 257 svga->pipe.create_rasterizer_state = svga_create_rasterizer_state; 258 svga->pipe.bind_rasterizer_state = svga_bind_rasterizer_state [all...] |
/external/mesa3d/src/gallium/drivers/svga/ |
svga_pipe_flush.c | 37 struct svga_context *svga = svga_context(pipe); local 41 svga_surfaces_flush( svga ); 45 svga_context_flush(svga, fence); 52 struct pipe_framebuffer_state *fb = &svga->curr.framebuffer; 59 debug_dump_surface_bmp(&svga->pipe, filename, fb->cbufs[i]); 64 debug_dump_surface_bmp(&svga->pipe, filename, fb->zsbuf); 72 void svga_init_flush_functions( struct svga_context *svga ) 74 svga->pipe.flush = svga_flush;
|
svga_pipe_blend.c | 207 struct svga_context *svga = svga_context(pipe); local 209 svga->curr.blend = (struct svga_blend_state*)blend; 210 svga->dirty |= SVGA_NEW_BLEND; 222 struct svga_context *svga = svga_context(pipe); local 224 svga->curr.blend_color = *blend_color; 226 svga->dirty |= SVGA_NEW_BLEND_COLOR; 230 void svga_init_blend_functions( struct svga_context *svga ) 232 svga->pipe.create_blend_state = svga_create_blend_state; 233 svga->pipe.bind_blend_state = svga_bind_blend_state; 234 svga->pipe.delete_blend_state = svga_delete_blend_state [all...] |
svga_pipe_blit.c | 46 struct svga_context *svga = svga_context(pipe); local 56 svga_surfaces_flush( svga ); 84 ret = SVGA3D_BeginSurfaceCopy(svga->swc, 91 svga_context_flush(svga, NULL); 93 ret = SVGA3D_BeginSurfaceCopy(svga->swc, 111 SVGA_FIFOCommitAll(svga->swc); 139 svga_texture_copy_handle(svga, 154 svga_init_blit_functions(struct svga_context *svga) 156 svga->pipe.resource_copy_region = svga_surface_copy;
|
svga_pipe_clear.c | 38 try_clear(struct svga_context *svga, 48 struct pipe_framebuffer_state *fb = &svga->curr.framebuffer; 51 ret = svga_update_state(svga, SVGA_STATE_HW_CLEAR); 55 if (svga->rebind.rendertargets) { 56 ret = svga_reemit_framebuffer_bindings(svga); 74 if ((svga->curr.framebuffer.zsbuf->format == PIPE_FORMAT_S8_UINT_Z24_UNORM) && 82 if (memcmp(&rect, &svga->state.hw_clear.viewport, sizeof(rect)) != 0) { 84 ret = SVGA3D_SetViewport(svga->swc, &rect); 89 ret = SVGA3D_ClearRect(svga->swc, flags, uc.ui, depth, stencil, 95 memcpy(&rect, &svga->state.hw_clear.viewport, sizeof rect) 111 struct svga_context *svga = svga_context( pipe ); local [all...] |
svga_pipe_constants.c | 51 struct svga_context *svga = svga_context(pipe); local 64 pipe_resource_reference( &svga->curr.cb[shader], 68 svga->dirty |= SVGA_NEW_FS_CONST_BUFFER; 70 svga->dirty |= SVGA_NEW_VS_CONST_BUFFER; 79 void svga_init_constbuffer_functions( struct svga_context *svga ) 81 svga->pipe.set_constant_buffer = svga_set_constant_buffer;
|
svga_pipe_depthstencil.c | 127 struct svga_context *svga = svga_context(pipe); local 129 svga->curr.depth = (const struct svga_depth_stencil_state *)depth_stencil; 130 svga->dirty |= SVGA_NEW_DEPTH_STENCIL; 143 struct svga_context *svga = svga_context(pipe); local 145 svga->curr.stencil_ref = *stencil_ref; 147 svga->dirty |= SVGA_NEW_STENCIL_REF; 157 void svga_init_depth_stencil_functions( struct svga_context *svga ) 159 svga->pipe.create_depth_stencil_alpha_state = svga_create_depth_stencil_state; 160 svga->pipe.bind_depth_stencil_alpha_state = svga_bind_depth_stencil_state; 161 svga->pipe.delete_depth_stencil_alpha_state = svga_delete_depth_stencil_state [all...] |
svga_pipe_fs.c | 48 struct svga_context *svga = svga_context(pipe); local 61 fs->base.id = svga->debug.shader_id++; 67 fs->draw_shader = draw_create_fragment_shader(svga->swtnl.draw, templ); 82 struct svga_context *svga = svga_context(pipe); local 84 svga->curr.fs = fs; 85 svga->dirty |= SVGA_NEW_FS; 91 struct svga_context *svga = svga_context(pipe); local 96 svga_hwtnl_flush_retry( svga ); 98 draw_delete_fragment_shader(svga->swtnl.draw, fs->draw_shader); 103 ret = SVGA3D_DestroyShader(svga->swc, [all...] |
svga_context.c | 56 struct svga_context *svga = svga_context( pipe ); local 59 svga_cleanup_framebuffer( svga ); 60 svga_cleanup_tss_binding( svga ); 62 svga_hwtnl_destroy( svga->hwtnl ); 64 svga_cleanup_vertex_state(svga); 66 svga->swc->destroy(svga->swc); 68 svga_destroy_swtnl( svga ); 70 u_upload_destroy( svga->upload_vb ); 71 u_upload_destroy( svga->upload_ib ) 88 struct svga_context *svga = NULL; local [all...] |
svga_pipe_misc.c | 37 struct svga_context *svga = svga_context(pipe); local 39 memcpy( &svga->curr.scissor, scissor, sizeof(*scissor) ); 40 svga->dirty |= SVGA_NEW_SCISSOR; 51 void svga_cleanup_framebuffer(struct svga_context *svga) 53 struct pipe_framebuffer_state *curr = &svga->curr.framebuffer; 54 struct pipe_framebuffer_state *hw = &svga->state.hw_clear.framebuffer; 75 struct svga_context *svga = svga_context(pipe); local 76 struct pipe_framebuffer_state *dst = &svga->curr.framebuffer; 93 svga_hwtnl_flush_retry( svga ); 97 svga_propagate_surface(svga, dst->cbufs[i]) 152 struct svga_context *svga = svga_context(pipe); local 167 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_pipe_vertex.c | 42 struct svga_context *svga = svga_context(pipe); local 47 if (count == svga->curr.num_vertex_buffers && 48 memcmp(svga->curr.vb, buffers, count * sizeof buffers[0]) == 0) 53 pipe_resource_reference(&svga->curr.vb[i].buffer, buffers[i].buffer); 58 for ( ; i < svga->curr.num_vertex_buffers; i++) 59 pipe_resource_reference(&svga->curr.vb[i].buffer, NULL); 62 memcpy(svga->curr.vb, buffers, count * sizeof buffers[0]); 63 svga->curr.num_vertex_buffers = count; 64 svga->curr.any_user_vertex_buffers = any_user_buffer; 66 svga->dirty |= SVGA_NEW_VBUFFER 73 struct svga_context *svga = svga_context(pipe); local 106 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_pipe_vs.c | 102 struct svga_context *svga = svga_context(pipe); local 109 vs->base.tokens = tgsi_dup_tokens(substitute_vs(svga->debug.shader_id, 123 vs->draw_shader = draw_create_vertex_shader(svga->swtnl.draw, &tmp2); 126 vs->base.id = svga->debug.shader_id++; 140 struct svga_context *svga = svga_context(pipe); local 142 svga->curr.vs = vs; 143 svga->dirty |= SVGA_NEW_VS; 149 struct svga_context *svga = svga_context(pipe); local 154 svga_hwtnl_flush_retry( svga ); 156 draw_delete_vertex_shader(svga->swtnl.draw, vs->draw_shader) [all...] |
svga_sampler_view.c | 59 struct svga_context *svga = svga_context(pipe); local 98 SVGA_DBG(DEBUG_VIEWS, "svga: Sampler view: reuse %p, %u %u, last %u\n", 120 "svga: Sampler view: no %p, mips %u..%u, nr %u, size (%ux%ux%u), last %u\n", 135 "svga: Sampler view: yes %p, mips %u..%u, nr %u, size (%ux%ux%u), last %u\n", 144 sv->handle = svga_texture_view_surface(svga, tex, flags, format, 170 svga_validate_sampler_view(struct svga_context *svga, struct svga_sampler_view *v) 177 assert(svga); 192 svga_texture_copy_handle(svga,
|