Searched defs:svga (Results 1 - 25 of 74) sorted by relevance

123

/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
H A Dsvga_pipe_flush.c37 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;
H A Dsvga_resource.c59 svga_init_resource_functions(struct svga_context *svga) argument
61 svga->pipe.get_transfer = u_get_transfer_vtbl;
62 svga->pipe.transfer_map = u_transfer_map_vtbl;
63 svga->pipe.transfer_flush_region = u_transfer_flush_region_vtbl;
64 svga->pipe.transfer_unmap = u_transfer_unmap_vtbl;
65 svga->pipe.transfer_destroy = u_transfer_destroy_vtbl;
66 svga->pipe.transfer_inline_write = u_transfer_inline_write_vtbl;
H A Dsvga_context.c56 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
88 struct svga_context *svga = NULL; local
201 svga_context_flush( struct svga_context *svga, struct pipe_fence_handle **pfence ) argument
266 svga_hwtnl_flush_buffer( struct svga_context *svga, struct pipe_resource *buffer ) argument
277 svga_surfaces_flush(struct svga_context *svga) argument
[all...]
H A Dsvga_pipe_blend.c207 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
[all...]
H A Dsvga_pipe_clear.c38 try_clear(struct svga_context *svga, argument
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
111 struct svga_context *svga = svga_context( pipe ); local
[all...]
H A Dsvga_pipe_constants.c51 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;
H A Dsvga_pipe_depthstencil.c127 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
[all...]
H A Dsvga_pipe_fs.c48 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
[all...]
H A Dsvga_pipe_vs.c102 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
[all...]
H A Dsvga_state_need_swtnl.c75 update_need_swvfetch( struct svga_context *svga, argument
81 if (!svga->curr.velems) {
86 for (i = 0; i < svga->curr.velems->count; i++) {
87 svga->state.sw.ve_format[i] = svga_translate_vertex_format(svga->curr.velems->velem[i].src_format);
88 if (svga->state.sw.ve_format[i] == SVGA3D_DECLTYPE_MAX) {
95 if (need_swvfetch != svga->state.sw.need_swvfetch) {
96 svga->state.sw.need_swvfetch = need_swvfetch;
97 svga->dirty |= SVGA_NEW_NEED_SWVFETCH;
115 update_need_pipeline( struct svga_context *svga, argument
194 update_need_swtnl( struct svga_context *svga, unsigned dirty ) argument
[all...]
H A Dsvga_state_vdecl.c46 emit_hw_vs_vdecl(struct svga_context *svga, unsigned dirty) argument
48 const struct pipe_vertex_element *ve = svga->curr.velems->velem;
53 assert(svga->curr.velems->count >=
54 svga->curr.vs->base.info.file_count[TGSI_FILE_INPUT]);
56 svga_hwtnl_reset_vdecl( svga->hwtnl,
57 svga->curr.velems->count );
74 for (i = 0; i < svga->curr.velems->count; i++) {
76 &svga->curr.vb[ve[i].vertex_buffer_index];
93 for (i = 0; i < svga->curr.velems->count; i++) {
95 &svga
136 emit_hw_vdecl(struct svga_context *svga, unsigned dirty) argument
[all...]
H A Dsvga_swtnl_draw.c39 svga_swtnl_draw_vbo(struct svga_context *svga, argument
45 struct draw_context *draw = svga->swtnl.draw;
50 assert(!svga->dirty);
51 assert(svga->state.sw.need_swtnl);
55 svga->state.sw.in_swtnl_draw = TRUE;
57 ret = svga_update_state(svga, SVGA_STATE_SWTNL_DRAW);
59 svga_context_flush(svga, NULL);
60 ret = svga_update_state(svga, SVGA_STATE_SWTNL_DRAW);
61 svga->swtnl.new_vbuf = TRUE;
68 for (i = 0; i < svga
[all...]
H A Dsvga_pipe_blit.c46 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) argument
156 svga->pipe.resource_copy_region = svga_surface_copy;
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_flush.c37 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;
H A Dsvga_resource.c59 svga_init_resource_functions(struct svga_context *svga) argument
61 svga->pipe.get_transfer = u_get_transfer_vtbl;
62 svga->pipe.transfer_map = u_transfer_map_vtbl;
63 svga->pipe.transfer_flush_region = u_transfer_flush_region_vtbl;
64 svga->pipe.transfer_unmap = u_transfer_unmap_vtbl;
65 svga->pipe.transfer_destroy = u_transfer_destroy_vtbl;
66 svga->pipe.transfer_inline_write = u_transfer_inline_write_vtbl;
H A Dsvga_context.c56 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
88 struct svga_context *svga = NULL; local
201 svga_context_flush( struct svga_context *svga, struct pipe_fence_handle **pfence ) argument
266 svga_hwtnl_flush_buffer( struct svga_context *svga, struct pipe_resource *buffer ) argument
277 svga_surfaces_flush(struct svga_context *svga) argument
[all...]
H A Dsvga_pipe_blend.c207 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
[all...]
H A Dsvga_pipe_clear.c38 try_clear(struct svga_context *svga, argument
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
111 struct svga_context *svga = svga_context( pipe ); local
[all...]
H A Dsvga_pipe_constants.c51 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;
H A Dsvga_pipe_depthstencil.c127 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
[all...]
H A Dsvga_pipe_fs.c48 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
[all...]
H A Dsvga_pipe_vs.c102 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
[all...]
H A Dsvga_state_need_swtnl.c75 update_need_swvfetch( struct svga_context *svga, argument
81 if (!svga->curr.velems) {
86 for (i = 0; i < svga->curr.velems->count; i++) {
87 svga->state.sw.ve_format[i] = svga_translate_vertex_format(svga->curr.velems->velem[i].src_format);
88 if (svga->state.sw.ve_format[i] == SVGA3D_DECLTYPE_MAX) {
95 if (need_swvfetch != svga->state.sw.need_swvfetch) {
96 svga->state.sw.need_swvfetch = need_swvfetch;
97 svga->dirty |= SVGA_NEW_NEED_SWVFETCH;
115 update_need_pipeline( struct svga_context *svga, argument
194 update_need_swtnl( struct svga_context *svga, unsigned dirty ) argument
[all...]
H A Dsvga_state_vdecl.c46 emit_hw_vs_vdecl(struct svga_context *svga, unsigned dirty) argument
48 const struct pipe_vertex_element *ve = svga->curr.velems->velem;
53 assert(svga->curr.velems->count >=
54 svga->curr.vs->base.info.file_count[TGSI_FILE_INPUT]);
56 svga_hwtnl_reset_vdecl( svga->hwtnl,
57 svga->curr.velems->count );
74 for (i = 0; i < svga->curr.velems->count; i++) {
76 &svga->curr.vb[ve[i].vertex_buffer_index];
93 for (i = 0; i < svga->curr.velems->count; i++) {
95 &svga
136 emit_hw_vdecl(struct svga_context *svga, unsigned dirty) argument
[all...]
H A Dsvga_swtnl_draw.c39 svga_swtnl_draw_vbo(struct svga_context *svga, argument
45 struct draw_context *draw = svga->swtnl.draw;
50 assert(!svga->dirty);
51 assert(svga->state.sw.need_swtnl);
55 svga->state.sw.in_swtnl_draw = TRUE;
57 ret = svga_update_state(svga, SVGA_STATE_SWTNL_DRAW);
59 svga_context_flush(svga, NULL);
60 ret = svga_update_state(svga, SVGA_STATE_SWTNL_DRAW);
61 svga->swtnl.new_vbuf = TRUE;
68 for (i = 0; i < svga
[all...]

Completed in 783 milliseconds

123