/external/mesa3d/src/gallium/drivers/svga/ |
svga_swtnl_backend.c | 50 struct svga_context *svga = svga_render->svga; local 52 svga_swtnl_update_vdecl(svga); 64 struct svga_context *svga = svga_render->svga; local 65 struct pipe_screen *screen = svga->pipe.screen; 71 svga->swtnl.new_vdecl = TRUE; 74 if (svga->swtnl.new_vbuf) 76 svga->swtnl.new_vbuf = FALSE; 93 svga_context_flush(svga, NULL) 122 struct svga_context *svga = svga_render->svga; local 149 struct svga_context *svga = svga_render->svga; local 175 struct svga_context *svga = svga_render->svga; local 232 struct svga_context *svga = svga_render->svga; local 261 struct svga_context *svga = svga_render->svga; 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_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_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_state_fs.c | 103 static enum pipe_error compile_fs( struct svga_context *svga, 129 result->id = util_bitmask_add(svga->fs_bm); 135 ret = SVGA3D_DefineShader(svga->swc, 151 util_bitmask_clear( svga->fs_bm, result->id ); 164 make_fs_key(const struct svga_context *svga, 178 if (!svga->state.sw.need_swtnl) { 181 key->light_twoside = svga->curr.rast->templ.light_twoside; 182 key->front_ccw = svga->curr.rast->templ.front_ccw; 199 if (svga->curr.blend->need_white_fragments) { 208 for (i = 0; i < svga->curr.num_sampler_views; i++) [all...] |
svga_pipe_sampler.c | 98 struct svga_context *svga = svga_context(pipe); local 135 if (svga->debug.use_min_mipmap) { 158 struct svga_context *svga = svga_context(pipe); local 169 if (start + num <= svga->curr.num_samplers && 170 !memcmp(svga->curr.sampler + start, samplers, num * sizeof(void *))) { 176 svga->curr.sampler[start + i] = samplers[i]; 180 unsigned j = MAX2(svga->curr.num_samplers, start + num); 181 while (j > 0 && svga->curr.sampler[j - 1] == NULL) 183 svga->curr.num_samplers = j; 186 svga->dirty |= SVGA_NEW_SAMPLER 239 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_state.c | 122 update_state(struct svga_context *svga, 130 ret = svga_hwtnl_flush( svga->hwtnl ); 153 ret = atoms[i]->update( svga, *state ); 176 ret = atoms[i]->update( svga, *state ); 189 svga_update_state(struct svga_context *svga, unsigned max_level) 191 struct svga_screen *screen = svga_screen(svga->pipe.screen); 199 if (svga->state.texture_timestamp != screen->texture_timestamp) { 200 svga->state.texture_timestamp = screen->texture_timestamp; 201 svga->dirty |= SVGA_NEW_TEXTURE; 205 svga->dirty |= svga->state.dirty[i] [all...] |
svga_pipe_query.c | 71 struct svga_context *svga = svga_context( pipe ); local 84 sq->hwbuf = svga_winsys_buffer_create(svga, 136 struct svga_context *svga = svga_context( pipe ); local 142 assert(!svga->sq); 147 svga_hwtnl_flush_retry(svga); 167 ret = SVGA3D_BeginQuery(svga->swc, sq->type); 169 svga_context_flush(svga, NULL); 170 ret = SVGA3D_BeginQuery(svga->swc, sq->type); 174 svga->sq = sq; 180 struct svga_context *svga = svga_context( pipe ) local 212 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_context.h | 422 void svga_mark_surfaces_dirty(struct svga_context *svga); 427 void svga_init_state_functions( struct svga_context *svga ); 428 void svga_init_flush_functions( struct svga_context *svga ); 429 void svga_init_string_functions( struct svga_context *svga ); 430 void svga_init_blit_functions(struct svga_context *svga); 432 void svga_init_blend_functions( struct svga_context *svga ); 433 void svga_init_depth_stencil_functions( struct svga_context *svga ); 434 void svga_init_misc_functions( struct svga_context *svga ); 435 void svga_init_rasterizer_functions( struct svga_context *svga ); 436 void svga_init_sampler_functions( struct svga_context *svga ); [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;
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
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_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_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_state_fs.c | 103 static enum pipe_error compile_fs( struct svga_context *svga, 129 result->id = util_bitmask_add(svga->fs_bm); 135 ret = SVGA3D_DefineShader(svga->swc, 151 util_bitmask_clear( svga->fs_bm, result->id ); 164 make_fs_key(const struct svga_context *svga, 178 if (!svga->state.sw.need_swtnl) { 181 key->light_twoside = svga->curr.rast->templ.light_twoside; 182 key->front_ccw = svga->curr.rast->templ.front_ccw; 199 if (svga->curr.blend->need_white_fragments) { 208 for (i = 0; i < svga->curr.num_sampler_views; i++) [all...] |
svga_pipe_sampler.c | 98 struct svga_context *svga = svga_context(pipe); local 135 if (svga->debug.use_min_mipmap) { 158 struct svga_context *svga = svga_context(pipe); local 169 if (start + num <= svga->curr.num_samplers && 170 !memcmp(svga->curr.sampler + start, samplers, num * sizeof(void *))) { 176 svga->curr.sampler[start + i] = samplers[i]; 180 unsigned j = MAX2(svga->curr.num_samplers, start + num); 181 while (j > 0 && svga->curr.sampler[j - 1] == NULL) 183 svga->curr.num_samplers = j; 186 svga->dirty |= SVGA_NEW_SAMPLER 239 struct svga_context *svga = svga_context(pipe); local [all...] |
svga_state.c | 122 update_state(struct svga_context *svga, 130 ret = svga_hwtnl_flush( svga->hwtnl ); 153 ret = atoms[i]->update( svga, *state ); 176 ret = atoms[i]->update( svga, *state ); 189 svga_update_state(struct svga_context *svga, unsigned max_level) 191 struct svga_screen *screen = svga_screen(svga->pipe.screen); 199 if (svga->state.texture_timestamp != screen->texture_timestamp) { 200 svga->state.texture_timestamp = screen->texture_timestamp; 201 svga->dirty |= SVGA_NEW_TEXTURE; 205 svga->dirty |= svga->state.dirty[i] [all...] |
svga_pipe_query.c | 71 struct svga_context *svga = svga_context( pipe ); local 84 sq->hwbuf = svga_winsys_buffer_create(svga, 136 struct svga_context *svga = svga_context( pipe ); local 142 assert(!svga->sq); 147 svga_hwtnl_flush_retry(svga); 167 ret = SVGA3D_BeginQuery(svga->swc, sq->type); 169 svga_context_flush(svga, NULL); 170 ret = SVGA3D_BeginQuery(svga->swc, sq->type); 174 svga->sq = sq; 180 struct svga_context *svga = svga_context( pipe ) local 212 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_context.h | 422 void svga_mark_surfaces_dirty(struct svga_context *svga); 427 void svga_init_state_functions( struct svga_context *svga ); 428 void svga_init_flush_functions( struct svga_context *svga ); 429 void svga_init_string_functions( struct svga_context *svga ); 430 void svga_init_blit_functions(struct svga_context *svga); 432 void svga_init_blend_functions( struct svga_context *svga ); 433 void svga_init_depth_stencil_functions( struct svga_context *svga ); 434 void svga_init_misc_functions( struct svga_context *svga ); 435 void svga_init_rasterizer_functions( struct svga_context *svga ); 436 void svga_init_sampler_functions( struct svga_context *svga ); [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;
|
Makefile | 4 LIBNAME = svga 10 -I$(TOP)/src/gallium/drivers/svga/include
|
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;
|
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/svga/drm/ |
SConscript | 17 '#/src/gallium/drivers/svga', 18 '#/src/gallium/drivers/svga/include',
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
SConscript | 17 '#/src/gallium/drivers/svga', 18 '#/src/gallium/drivers/svga/include',
|