/external/mesa3d/src/gallium/drivers/svga/ |
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_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_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_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_blend.c | 38 svga_translate_blend_factor(const struct svga_context *svga, unsigned factor) 58 if (svga_have_vgpu10(svga)) 63 if (svga_have_vgpu10(svga)) 96 * svga blend state. 99 define_blend_state_object(struct svga_context *svga, 106 assert(svga_have_vgpu10(svga)); 108 bs->id = util_bitmask_add(svga->blend_object_id_bm); 128 ret = SVGA3D_vgpu10_DefineBlendState(svga->swc, 135 svga_context_flush(svga, NULL); 144 struct svga_context *svga = svga_context(pipe) local 350 struct svga_context *svga = svga_context(pipe); local 359 struct svga_context *svga = svga_context(pipe); local 387 struct svga_context *svga = svga_context(pipe); local [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...] |
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_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_sampler_view.c | 61 struct svga_context *svga = svga_context(pipe); local 73 assert(!svga_have_vgpu10(svga)); 100 SVGA_DBG(DEBUG_VIEWS, "svga: Sampler view: reuse %p, %u %u, last %u\n", 125 "svga: Sampler view: no %p, mips %u..%u, nr %u, size (%ux%ux%u), last %u\n", 140 "svga: Sampler view: yes %p, mips %u..%u, nr %u, size (%ux%ux%u), last %u\n", 149 sv->handle = svga_texture_view_surface(svga, tex, 179 svga_validate_sampler_view(struct svga_context *svga, 188 assert(svga); 189 assert(!svga_have_vgpu10(svga)); 205 svga_texture_copy_handle(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_resource_buffer.c | 75 struct svga_context *svga = svga_context(pipe); local 80 int64_t begin = svga_get_time(svga); 82 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_BUFFERTRANSFERMAP); 114 assert(svga_have_vgpu10(svga)); 117 (void) svga_buffer_handle(svga, resource); 121 svga_buffer_upload_flush(svga, sbuf); 122 svga_context_finish(svga); 127 ret = SVGA3D_vgpu10_ReadbackSubResource(svga->swc, sbuf->handle, 0); 129 svga_context_flush(svga, NULL); 130 ret = SVGA3D_vgpu10_ReadbackSubResource(svga->swc, sbuf->handle, 0) 310 struct svga_context *svga = svga_context(pipe); local [all...] |
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_draw_arrays.c | 48 struct pipe_context *pipe = &hwtnl->svga->pipe; 103 SVGA_STATS_TIME_PUSH(svga_sws(hwtnl->svga), SVGA_STATS_TIME_GENERATEINDICES); 170 SVGA_STATS_TIME_POP(svga_sws(hwtnl->svga)); 218 struct svga_context *svga = hwtnl->svga; local 220 SVGA_STATS_TIME_PUSH(svga_sws(svga), SVGA_STATS_TIME_HWTNLDRAWARRAYS); 222 if (svga->curr.rast->templ.fill_front != 223 svga->curr.rast->templ.fill_back) { 227 if (svga->curr.rast->templ.flatshade && 228 svga->state.hw_draw.fs->constant_color_output) [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_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_swtnl_private.h | 36 * Primitive renderer for svga. 41 struct svga_context *svga; member in struct:svga_vbuf_render 92 svga_vbuf_render_create( struct svga_context *svga ); 96 svga_swtnl_update_vdecl( struct svga_context *svga );
|
svga_draw_private.h | 42 * handled by the svga device. Other types will be converted to 155 struct svga_context *svga; member in struct:svga_hwtnl 195 const struct svga_context *svga = hwtnl->svga; local 202 if (svga_have_vgpu10(svga)) {
|
svga_pipe_blit.c | 45 copy_region_vgpu10(struct svga_context *svga, struct pipe_resource *src_tex, 74 ret = SVGA3D_vgpu10_PredCopyRegion(svga->swc, 78 svga_context_flush(svga, NULL); 79 ret = SVGA3D_vgpu10_PredCopyRegion(svga->swc, 124 struct svga_context *svga = svga_context(pipe); local 130 svga_surfaces_flush( svga ); 134 if (svga_have_vgpu10(svga) && src_tex != dst_tex) { 140 src_surf = svga_buffer_handle(svga, src_tex); 141 dst_surf = svga_buffer_handle(svga, dst_tex); 143 ret = SVGA3D_vgpu10_BufferCopy(svga->swc, src_surf, dst_surf 318 struct svga_context *svga = svga_context(pipe); local [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_rasterizer.c | 105 define_rasterizer_object(struct svga_context *svga, 108 struct svga_screen *svgascreen = svga_screen(svga->pipe.screen); 123 rast->id = util_bitmask_add(svga->rast_object_id_bm); 137 SVGA3D_vgpu10_DefineRasterizerState(svga->swc, 156 svga_context_flush(svga, NULL); 165 struct svga_context *svga = svga_context(pipe); local 215 else if (svga->debug.no_line_width) { 225 if (screen->haveLineStipple || svga->debug.force_hw_line_stipple) { 238 if (!svga_have_vgpu10(svga) && templ->point_smooth) { 352 debug_printf("svga: rast need_pipeline = 0x%x\n", rast->need_pipeline) 378 struct svga_context *svga = svga_context(pipe); local 397 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_draw.c | 48 svga_hwtnl_create(struct svga_context *svga) 54 hwtnl->svga = svga; 56 hwtnl->cmd.swc = svga->swc; 90 struct svga_screen *svgascreen = svga_screen(hwtnl->svga->pipe.screen); 180 struct svga_context *svga = hwtnl->svga; local 191 handle = svga_buffer_handle(svga, hwtnl->cmd.vbufs[j].buffer); 200 handle = svga_buffer_handle(svga, hwtnl->cmd.prim_ib[i]); 210 if (svga->rebind.flags.rendertargets) 464 struct svga_context *svga = hwtnl->svga; 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_resource_buffer.h | 62 * SVGA pipe buffer. 183 struct svga_context *svga; member in struct:svga_buffer::__anon30109 260 svga_buffer_hw_storage_map(struct svga_context *svga, 266 svga->hud.num_buffers_mapped++; 269 return svga->swc->surface_map(svga->swc, sbuf->handle, flags, retry); 280 svga_buffer_hw_storage_unmap(struct svga_context *svga, 286 struct svga_winsys_context *swc = svga->swc; 294 svga_context_flush(svga, NULL); 326 svga_buffer_handle(struct svga_context *svga, [all...] |
svga_surface.c | 48 svga_texture_copy_handle(struct svga_context *svga, 61 assert(svga); 89 ret = SVGA3D_BeginSurfaceCopy(svga->swc, 94 svga_context_flush(svga, NULL); 95 ret = SVGA3D_BeginSurfaceCopy(svga->swc, 102 SVGA_FIFOCommitAll(svga->swc); 107 svga_texture_view_surface(struct svga_context *svga, 119 struct svga_screen *ss = svga_screen(svga->pipe.screen); 126 "svga: Create surface view: layer %d zslice %d mips %d..%d\n", 182 svga_texture_copy_handle(svga, 210 struct svga_context *svga = svga_context(pipe); local 343 struct svga_context *svga = svga_context(pipe); local 515 struct svga_context *svga = svga_context(pipe); local [all...] |