/external/mesa3d/src/gallium/drivers/svga/ |
SConscript | 8 print 'warning: not building svga' 24 svga = env.ConvenienceLibrary( 25 target = 'svga', 29 env.Alias('svga', svga) 31 Export('svga')
|
svga_context.c | 60 struct svga_context *svga = svga_context(pipe); local 64 for (i = 0; i < ARRAY_SIZE(svga->rasterizer_no_cull); i++) { 65 if (svga->rasterizer_no_cull[i]) { 66 pipe->delete_rasterizer_state(pipe, svga->rasterizer_no_cull[i]); 71 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) { 72 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader], NULL); 75 pipe->delete_blend_state(pipe, svga->noop_blend); 78 if (svga->gb_query) { 80 svga->gb_query = NULL; 83 util_blitter_destroy(svga->blitter) 123 struct svga_context *svga = NULL; local [all...] |
svga_swtnl_draw.c | 40 svga_swtnl_draw_vbo(struct svga_context *svga, 46 struct draw_context *draw = svga->swtnl.draw; 52 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_SWTNLDRAWVBO); 54 assert(!svga->dirty); 55 assert(svga->state.sw.need_swtnl); 59 svga->state.sw.in_swtnl_draw = TRUE; 61 ret = svga_update_state(svga, SVGA_STATE_SWTNL_DRAW); 63 svga_context_flush(svga, NULL); 64 ret = svga_update_state(svga, SVGA_STATE_SWTNL_DRAW); 65 svga->swtnl.new_vbuf = TRUE [all...] |
svga_state_rss.c | 48 #define EMIT_RS(svga, value, token, fail) \ 50 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \ 51 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \ 53 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \ 57 #define EMIT_RS_FLOAT(svga, fvalue, token, fail) \ 60 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \ 61 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \ 63 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \ 84 emit_rss_vgpu9(struct svga_context *svga, unsigned dirty) 86 struct svga_screen *screen = svga_screen(svga->pipe.screen) [all...] |
svga_state_gs.c | 52 translate_geometry_program(struct svga_context *svga, 56 assert(svga_have_vgpu10(svga)); 57 return svga_tgsi_vgpu10_translate(svga, &gs->base, key, 63 * Translate TGSI shader into an svga shader variant. 66 compile_gs(struct svga_context *svga, 74 variant = translate_geometry_program(svga, gs, key); 84 variant = translate_geometry_program(svga, gs, key); 90 ret = svga_define_shader(svga, SVGA3D_SHADERTYPE_GS, variant); 92 svga_destroy_shader_variant(svga, SVGA3D_SHADERTYPE_GS, variant); 103 make_gs_key(struct svga_context *svga, struct svga_compile_key *key [all...] |
Automake.inc | 6 $(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \ 7 $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
|
svga_pipe_draw.c | 48 retry_draw_range_elements( struct svga_context *svga, 63 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_DRAWELEMENTS); 65 svga_hwtnl_set_fillmode(svga->hwtnl, svga->curr.rast->hw_fillmode); 67 ret = svga_update_state( svga, SVGA_STATE_HW_DRAW ); 74 svga_hwtnl_set_flatshade(svga->hwtnl, 75 svga->curr.rast->templ.flatshade || 76 svga->state.hw_draw.fs->uses_flat_interp, 77 svga->curr.rast->templ.flatshade_first); 79 ret = svga_hwtnl_draw_range_elements( svga->hwtnl 183 struct svga_context *svga = svga_context( pipe ); local [all...] |
svga_state_tss.c | 42 void svga_cleanup_tss_binding(struct svga_context *svga) 47 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.views); i++) { 48 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i]; 51 pipe_sampler_view_release(&svga->pipe, 52 &svga->curr.sampler_views[shader][i]); 74 emit_tex_binding_unit(struct svga_context *svga, 116 view->v = svga_get_tex_sampler_view(&svga->pipe, 134 svga_validate_sampler_view(svga, view->v); 140 update_tss_binding(struct svga_context *svga, 144 boolean reemit = svga->rebind.flags.texture_samplers [all...] |
svga_state_need_swtnl.c | 36 update_need_swvfetch(struct svga_context *svga, unsigned dirty) 38 if (!svga->curr.velems) { 43 if (svga->state.sw.need_swvfetch != svga->curr.velems->need_swvfetch) { 44 svga->state.sw.need_swvfetch = svga->curr.velems->need_swvfetch; 45 svga->dirty |= SVGA_NEW_NEED_SWVFETCH; 61 update_need_pipeline(struct svga_context *svga, unsigned dirty) 64 struct svga_vertex_shader *vs = svga->curr.vs; 69 if (svga->curr.rast->need_pipeline & (1 << svga->curr.reduced_prim)) [all...] |
svga_pipe_clear.c | 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 236 struct svga_context *svga = svga_context( pipe ); local 277 struct svga_context *svga = svga_context(pipe); local 567 struct svga_context *svga = svga_context( pipe ); local [all...] |
svga_pipe_query.c | 91 define_query_vgpu9(struct svga_context *svga, 94 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; 96 sq->hwbuf = svga_winsys_buffer_create(svga, 1, 122 begin_query_vgpu9(struct svga_context *svga, struct svga_query *sq) 124 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; 136 svga_get_query_result(&svga->pipe, &sq->base, TRUE, (void*)&result); 143 ret = SVGA3D_BeginQuery(svga->swc, sq->svga_type); 145 svga_context_flush(svga, NULL); 146 ret = SVGA3D_BeginQuery(svga->swc, sq->svga_type); 152 end_query_vgpu9(struct svga_context *svga, struct svga_query *sq 669 struct svga_context *svga = svga_context(pipe); local 772 struct svga_context *svga = svga_context(pipe); local 845 struct svga_context *svga = svga_context(pipe); local 955 struct svga_context *svga = svga_context(pipe); local 1069 struct svga_context *svga = svga_context(pipe); local 1198 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_pipe_gs.c | 43 struct svga_context *svga = svga_context(pipe); local 49 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_CREATEGS); 57 gs->draw_shader = draw_create_geometry_shader(svga->swtnl.draw, templ); 59 gs->base.id = svga->debug.shader_id++; 65 gs->base.stream_output = svga_create_stream_output(svga, &gs->base, 69 SVGA_STATS_TIME_POP(svga_sws(svga)); 78 struct svga_context *svga = svga_context(pipe); local 80 svga->curr.user_gs = gs; 81 svga->dirty |= SVGA_NEW_GS; 88 struct svga_context *svga = svga_context(pipe) local [all...] |
svga_swtnl_backend.c | 51 struct svga_context *svga = svga_render->svga; local 53 svga_swtnl_update_vdecl(svga); 65 struct svga_context *svga = svga_render->svga; local 66 struct pipe_screen *screen = svga->pipe.screen; 71 SVGA_STATS_TIME_PUSH(svga_sws(svga), 75 svga->swtnl.new_vdecl = TRUE; 78 if (svga->swtnl.new_vbuf) 80 svga->swtnl.new_vbuf = FALSE 128 struct svga_context *svga = svga_render->svga; local 167 struct svga_context *svga = svga_render->svga; local 210 struct svga_context *svga = svga_render->svga; local 280 struct svga_context *svga = svga_render->svga; local 318 struct svga_context *svga = svga_render->svga; local [all...] |
svga_pipe_misc.c | 43 struct svga_context *svga = svga_context(pipe); local 45 memcpy(&svga->curr.scissor, scissors, sizeof(*scissors)); 46 svga->dirty |= SVGA_NEW_SCISSOR; 54 struct svga_context *svga = svga_context(pipe); local 57 pipe_resource_reference(&svga->polygon_stipple.texture, NULL); 60 if (svga->polygon_stipple.sampler_view) { 62 &svga->polygon_stipple.sampler_view->base); 66 svga->polygon_stipple.texture = 70 svga->polygon_stipple.sampler_view = 73 svga->polygon_stipple.texture) 111 struct svga_context *svga = svga_context(pipe); local 215 struct svga_context *svga = svga_context(pipe); local 229 struct svga_context *svga = svga_context(pipe); local 245 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_state_vs.c | 75 translate_vertex_program(struct svga_context *svga, 79 if (svga_have_vgpu10(svga)) { 80 return svga_tgsi_vgpu10_translate(svga, &vs->base, key, 84 return svga_tgsi_vgpu9_translate(svga, &vs->base, key, 95 get_compiled_dummy_vertex_shader(struct svga_context *svga, 109 variant = translate_vertex_program(svga, vs, key); 115 * Translate TGSI shader into an svga shader variant. 118 compile_vs(struct svga_context *svga, 126 variant = translate_vertex_program(svga, vs, key); 130 variant = get_compiled_dummy_vertex_shader(svga, vs, key) [all...] |
svga_pipe_streamout.c | 48 svga_create_stream_output(struct svga_context *svga, 64 if (!svga_have_vgpu10(svga)) 70 id = util_bitmask_add(svga->stream_output_id_bm); 137 ret = SVGA3D_vgpu10_DefineStreamOutput(svga->swc, id, 142 svga_context_flush(svga, NULL); 143 ret = SVGA3D_vgpu10_DefineStreamOutput(svga->swc, id, 148 util_bitmask_clear(svga->stream_output_id_bm, id); 157 svga_set_stream_output(struct svga_context *svga, 163 if (!svga_have_vgpu10(svga)) { 170 if (svga->current_so != streamout) 214 struct svga_context *svga = svga_context(pipe); local 255 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_pipe_fs.c | 44 struct svga_context *svga = svga_context(pipe); local 51 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_CREATEFS); 59 fs->base.id = svga->debug.shader_id++; 65 fs->draw_shader = draw_create_fragment_shader(svga->swtnl.draw, templ); 67 SVGA_STATS_TIME_POP(svga_sws(svga)); 76 struct svga_context *svga = svga_context(pipe); local 78 svga->curr.fs = fs; 79 svga->dirty |= SVGA_NEW_FS; 86 struct svga_context *svga = svga_context(pipe); local 91 svga_hwtnl_flush_retry(svga); [all...] |
svga_pipe_vertex.c | 47 struct svga_context *svga = svga_context(pipe); local 49 util_set_vertex_buffers_count(svga->curr.vb, 50 &svga->curr.num_vertex_buffers, 53 svga->dirty |= SVGA_NEW_VBUFFER; 60 struct svga_context *svga = svga_context(pipe); local 62 util_set_index_buffer(&svga->curr.ib, ib); 127 define_input_element_object(struct svga_context *svga, 135 assert(svga_have_vgpu10(svga)); 195 velems->id = util_bitmask_add(svga->input_element_object_id_bm); 197 ret = SVGA3D_vgpu10_DefineElementLayout(svga->swc, velems->count 250 struct svga_context *svga = svga_context(pipe); local 289 struct svga_context *svga = svga_context(pipe); local 300 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_pipe_sampler.c | 160 define_sampler_state_object(struct svga_context *svga, 172 assert(svga_have_vgpu10(svga)); 186 ss->id = util_bitmask_add(svga->sampler_object_id_bm); 202 SVGA3D_vgpu10_DefineSamplerState(svga->swc, 216 svga_context_flush(svga, NULL); 225 struct svga_context *svga = svga_context(pipe); local 262 if (svga->debug.use_min_mipmap) { 271 if (svga_have_vgpu10(svga)) { 272 define_sampler_state_object(svga, cso, sampler); 279 svga->hud.num_sampler_objects++ 294 struct svga_context *svga = svga_context(pipe); local 331 struct svga_context *svga = svga_context(pipe); local 356 struct svga_context *svga = svga_context(pipe); local 383 struct svga_context *svga = svga_context(pipe); local 425 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_pipe_vs.c | 101 struct svga_context *svga = svga_context(pipe); local 107 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_CREATEVS); 111 vs->base.tokens = tgsi_dup_tokens(substitute_vs(svga->debug.shader_id, 124 vs->draw_shader = draw_create_vertex_shader(svga->swtnl.draw, &tmp2); 127 vs->base.id = svga->debug.shader_id++; 133 vs->base.stream_output = svga_create_stream_output(svga, &vs->base, 137 SVGA_STATS_TIME_POP(svga_sws(svga)); 146 struct svga_context *svga = svga_context(pipe); local 148 if (vs == svga->curr.vs) 156 if (svga->curr.vs != NULL && svga->curr.vs->gs != NULL 167 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_swtnl_state.c | 51 static void set_draw_viewport( struct svga_context *svga ) 53 struct pipe_viewport_state vp = svga->curr.viewport; 57 if (svga_have_vgpu10(svga)) { 58 if (svga->curr.reduced_prim == PIPE_PRIM_TRIANGLES) { 63 switch (svga->curr.reduced_prim) { 73 if (svga->curr.rast->need_pipeline & SVGA_PIPELINE_FLAG_LINES) 93 draw_set_viewport_states(svga->swtnl.draw, 0, 1, &vp); 97 update_swtnl_draw( struct svga_context *svga, 100 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_SWTNLUPDATEDRAW); 102 draw_flush( svga->swtnl.draw ) [all...] |
svga_state_fs.c | 84 translate_fragment_program(struct svga_context *svga, 88 if (svga_have_vgpu10(svga)) { 89 return svga_tgsi_vgpu10_translate(svga, &fs->base, key, 93 return svga_tgsi_vgpu9_translate(svga, &fs->base, key, 104 get_compiled_dummy_shader(struct svga_context *svga, 118 variant = translate_fragment_program(svga, fs, key); 124 * Translate TGSI shader into an svga shader variant. 127 compile_fs(struct svga_context *svga, 135 variant = translate_fragment_program(svga, fs, key); 139 variant = get_compiled_dummy_shader(svga, fs, key) [all...] |
svga_pipe_depthstencil.c | 76 * svga depth/stencil state. 79 define_depth_stencil_state_object(struct svga_context *svga, 84 assert(svga_have_vgpu10(svga)); 86 ds->id = util_bitmask_add(svga->ds_object_id_bm); 101 ret = SVGA3D_vgpu10_DefineDepthStencilState(svga->swc, 125 svga_context_flush(svga, NULL); 134 struct svga_context *svga = svga_context(pipe); local 203 if (svga_have_vgpu10(svga)) { 204 define_depth_stencil_state_object(svga, ds); 207 svga->hud.num_depthstencil_objects++ 219 struct svga_context *svga = svga_context(pipe); local 234 struct svga_context *svga = svga_context(pipe); local 268 struct svga_context *svga = svga_context(pipe); local 285 struct svga_context *svga = svga_context(pipe); local [all...] |
/external/mesa3d/src/gallium/drivers/svga/include/ |
README | 1 This directory contains the headers from the VMware SVGA Device Developer Kit: 3 https://vmware-svga.svn.sourceforge.net/svnroot/vmware-svga/trunk/lib/vmware/
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
SConscript | 13 '#/src/gallium/drivers/svga', 14 '#/src/gallium/drivers/svga/include',
|