HomeSort by relevance Sort by last modified time
    Searched refs:svga (Results 1 - 25 of 64) sorted by null

1 2 3

  /external/mesa3d/src/gallium/drivers/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.h 36 boolean svga_init_swtnl( struct svga_context *svga );
37 void svga_destroy_swtnl( struct svga_context *svga );
41 svga_swtnl_draw_vbo(struct svga_context *svga,
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_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_streamout.h 38 svga_create_stream_output(struct svga_context *svga,
43 svga_set_stream_output(struct svga_context *svga,
47 svga_delete_stream_output(struct svga_context *svga,
51 svga_rebind_stream_output_targets(struct svga_context *svga);
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_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_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_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_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_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_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_flush.c 39 struct svga_context *svga = svga_context(pipe); local
43 svga_surfaces_flush( svga );
47 svga_context_flush(svga, fence);
54 struct pipe_framebuffer_state *fb = &svga->curr.framebuffer;
61 debug_dump_surface_bmp(&svga->pipe, filename, fb->cbufs[i]);
66 debug_dump_surface_bmp(&svga->pipe, filename, fb->zsbuf);
74 void svga_init_flush_functions( struct svga_context *svga )
76 svga->pipe.flush = svga_flush;
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_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...]
svga_resource.h 39 void svga_init_resource_functions(struct svga_context *svga );
svga_pipe_constants.c 52 struct svga_context *svga = svga_context(pipe); local
67 assert(index < ARRAY_SIZE(svga->curr.constbufs[shader]));
71 pipe_resource_reference(&svga->curr.constbufs[shader][index].buffer, buf);
76 svga->curr.constbufs[shader][index].buffer_size =
79 svga->curr.constbufs[shader][index].buffer_offset = cb ? cb->buffer_offset : 0;
80 svga->curr.constbufs[shader][index].user_buffer = NULL; /* not used */
83 svga->dirty |= SVGA_NEW_FS_CONST_BUFFER;
85 svga->dirty |= SVGA_NEW_VS_CONST_BUFFER;
87 svga->dirty |= SVGA_NEW_GS_CONST_BUFFER;
90 svga->state.dirty_constbufs[shader] |= (1 << index)
    [all...]
svga_state.h 36 void svga_init_state( struct svga_context *svga );
37 void svga_destroy_state( struct svga_context *svga );
43 enum pipe_error (*update)( struct svga_context *svga, unsigned dirty );
91 enum pipe_error svga_update_state( struct svga_context *svga,
94 void svga_update_state_retry( struct svga_context *svga,
98 enum pipe_error svga_emit_initial_state( struct svga_context *svga );
100 enum pipe_error svga_reemit_framebuffer_bindings( struct svga_context *svga );
102 enum pipe_error svga_rebind_framebuffer_bindings( struct svga_context *svga );
104 enum pipe_error svga_reemit_tss_bindings( struct svga_context *svga );
106 enum pipe_error svga_reemit_vs_bindings(struct svga_context *svga);
    [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_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_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_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_constants.c 51 * Extra space for svga-specific VS/PS constants (such as texcoord
66 svga_get_extra_constants_common(struct svga_context *svga,
75 struct pipe_sampler_view *sv = svga->curr.sampler_views[shader][i];
117 svga_get_extra_fs_constants(struct svga_context *svga, float *dest)
119 const struct svga_shader_variant *variant = svga->state.hw_draw.fs;
122 count += svga_get_extra_constants_common(svga, variant,
136 svga_get_prescale_constants(struct svga_context *svga, float **dest)
138 memcpy(*dest, svga->state.hw_clear.prescale.scale, 4 * sizeof(float));
141 memcpy(*dest, svga->state.hw_clear.prescale.translate, 4 * sizeof(float));
151 svga_get_pt_sprite_constants(struct svga_context *svga, float **dest
    [all...]
svga_state_vdecl.c 43 emit_hw_vs_vdecl(struct svga_context *svga, unsigned dirty)
45 const struct pipe_vertex_element *ve = svga->curr.velems->velem;
51 assert(svga->curr.velems->count >=
52 svga->curr.vs->base.info.file_count[TGSI_FILE_INPUT]);
69 for (i = 0; i < svga->curr.velems->count; i++) {
71 &svga->curr.vb[ve[i].vertex_buffer_index];
88 for (i = 0; i < svga->curr.velems->count; i++) {
90 &svga->curr.vb[ve[i].vertex_buffer_index];
102 decls[i].identity.type = svga->curr.velems->decl_type[i];
123 svga_hwtnl_vertex_decls(svga->hwtnl
    [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...]

Completed in 544 milliseconds

1 2 3