/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_context.c | 75 struct draw_context *draw = CALLOC_STRUCT( draw_context ); in draw_create_context() local 76 if (draw == NULL) in draw_create_context() 81 draw->llvm = draw_llvm_create(draw); in draw_create_context() 82 if (!draw->llvm) in draw_create_context() 87 draw->pipe = pipe; in draw_create_context() 89 if (!draw_init(draw)) in draw_create_context() 92 return draw; in draw_create_context() 95 draw_destroy( draw ); in draw_create_context() 121 boolean draw_init(struct draw_context *draw) in draw_init() argument 129 ASSIGN_4V( draw->plane[0], -1, 0, 0, 1 ); in draw_init() [all …]
|
D | draw_pipe.c | 39 boolean draw_pipeline_init( struct draw_context *draw ) in draw_pipeline_init() argument 42 draw->pipeline.wide_line = draw_wide_line_stage( draw ); in draw_pipeline_init() 43 draw->pipeline.wide_point = draw_wide_point_stage( draw ); in draw_pipeline_init() 44 draw->pipeline.stipple = draw_stipple_stage( draw ); in draw_pipeline_init() 45 draw->pipeline.unfilled = draw_unfilled_stage( draw ); in draw_pipeline_init() 46 draw->pipeline.twoside = draw_twoside_stage( draw ); in draw_pipeline_init() 47 draw->pipeline.offset = draw_offset_stage( draw ); in draw_pipeline_init() 48 draw->pipeline.clip = draw_clip_stage( draw ); in draw_pipeline_init() 49 draw->pipeline.flatshade = draw_flatshade_stage( draw ); in draw_pipeline_init() 50 draw->pipeline.cull = draw_cull_stage( draw ); in draw_pipeline_init() [all …]
|
D | draw_pt.c | 55 draw_pt_arrays(struct draw_context *draw, in draw_pt_arrays() argument 74 if (!draw->force_passthrough) { in draw_pt_arrays() 75 unsigned gs_out_prim = (draw->gs.geometry_shader ? in draw_pt_arrays() 76 draw->gs.geometry_shader->output_primitive : in draw_pt_arrays() 79 if (!draw->render) { in draw_pt_arrays() 83 if (draw_need_pipeline(draw, in draw_pt_arrays() 84 draw->rasterizer, in draw_pt_arrays() 89 if ((draw->clip_xy || in draw_pt_arrays() 90 draw->clip_z || in draw_pt_arrays() 91 draw->clip_user) && !draw->pt.test_fse) { in draw_pt_arrays() [all …]
|
D | draw_vs.c | 59 draw_vs_set_constants(struct draw_context *draw, in draw_vs_set_constants() argument 69 if (size > draw->vs.const_storage_size[slot]) { in draw_vs_set_constants() 70 if (draw->vs.aligned_constant_storage[slot]) { in draw_vs_set_constants() 71 align_free((void *)draw->vs.aligned_constant_storage[slot]); in draw_vs_set_constants() 72 draw->vs.const_storage_size[slot] = 0; in draw_vs_set_constants() 74 draw->vs.aligned_constant_storage[slot] = in draw_vs_set_constants() 76 if (draw->vs.aligned_constant_storage[slot]) { in draw_vs_set_constants() 77 draw->vs.const_storage_size[slot] = size; in draw_vs_set_constants() 81 if (draw->vs.aligned_constant_storage[slot]) { in draw_vs_set_constants() 82 memcpy((void *)draw->vs.aligned_constant_storage[slot], in draw_vs_set_constants() [all …]
|
D | draw_context.h | 69 void draw_destroy( struct draw_context *draw ); 71 void draw_flush(struct draw_context *draw); 73 void draw_set_viewport_state( struct draw_context *draw, 94 void draw_set_rasterizer_state( struct draw_context *draw, 98 void draw_set_rasterize_stage( struct draw_context *draw, 101 void draw_wide_point_threshold(struct draw_context *draw, float threshold); 103 void draw_wide_point_sprites(struct draw_context *draw, boolean draw_sprite); 105 void draw_wide_line_threshold(struct draw_context *draw, float threshold); 107 void draw_enable_line_stipple(struct draw_context *draw, boolean enable); 109 void draw_enable_point_sprites(struct draw_context *draw, boolean enable); [all …]
|
D | draw_pt_fetch_emit.c | 77 struct draw_context *draw; member 96 struct draw_context *draw = feme->draw; in fetch_emit_prepare() local 100 unsigned gs_out_prim = (draw->gs.geometry_shader ? in fetch_emit_prepare() 101 draw->gs.geometry_shader->output_primitive : in fetch_emit_prepare() 104 draw->render->set_primitive(draw->render, gs_out_prim); in fetch_emit_prepare() 108 vinfo = feme->vinfo = draw->render->get_vertex_info(draw->render); in fetch_emit_prepare() 117 const struct pipe_vertex_element *src = &draw->pt.vertex_element[vinfo->attrib[i].src_index]; in fetch_emit_prepare() 133 input_buffer = draw->pt.nr_vertex_buffers; in fetch_emit_prepare() 161 draw->pt.nr_vertex_buffers, in fetch_emit_prepare() 167 feme->point_size = draw->rasterizer->point_size; in fetch_emit_prepare() [all …]
|
D | draw_pt_fetch_shade_emit.c | 51 struct draw_context *draw; member 75 struct draw_context *draw = fse->draw; in fse_prepare() local 76 unsigned num_vs_inputs = draw->vs.vertex_shader->info.num_inputs; in fse_prepare() 83 assert(!draw->gs.geometry_shader); in fse_prepare() 85 draw->render->set_primitive(draw->render, prim); in fse_prepare() 89 fse->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in fse_prepare() 98 fse->key.viewport = !draw->identity_viewport; in fse_prepare() 99 fse->key.clip = draw->clip_xy || draw->clip_z || draw->clip_user; in fse_prepare() 106 const struct pipe_vertex_element *src = &draw->pt.vertex_element[i]; in fse_prepare() 118 if (draw->pt.vertex_buffer[i].stride == 0) in fse_prepare() [all …]
|
D | draw_pipe_validate.c | 65 draw_need_pipeline(const struct draw_context *draw, in draw_need_pipeline() argument 71 if (draw->render && in draw_need_pipeline() 72 draw->render->need_pipeline) in draw_need_pipeline() 74 return draw->render->need_pipeline( draw->render, in draw_need_pipeline() 86 if (rasterizer->line_stipple_enable && draw->pipeline.line_stipple) in draw_need_pipeline() 90 if (roundf(rasterizer->line_width) > draw->pipeline.wide_line_threshold) in draw_need_pipeline() 94 if (rasterizer->line_smooth && draw->pipeline.aaline) in draw_need_pipeline() 101 if (rasterizer->point_size > draw->pipeline.wide_point_threshold) in draw_need_pipeline() 106 && draw->pipeline.wide_point_sprites) in draw_need_pipeline() 110 if (rasterizer->point_smooth && draw->pipeline.aapoint) in draw_need_pipeline() [all …]
|
D | draw_pt_fetch.c | 39 struct draw_context *draw; member 65 struct draw_context *draw = fetch->draw; in draw_pt_fetch_prepare() local 85 assert(draw->pt.nr_vertex_elements + num_extra_inputs >= vs_input_count); in draw_pt_fetch_prepare() 87 nr_inputs = MIN2(vs_input_count, draw->pt.nr_vertex_elements + num_extra_inputs); in draw_pt_fetch_prepare() 97 } else if (util_format_is_pure_sint(draw->pt.vertex_element[i].src_format)) { in draw_pt_fetch_prepare() 99 key.element[nr].input_format = draw->pt.vertex_element[ei].src_format; in draw_pt_fetch_prepare() 100 key.element[nr].input_buffer = draw->pt.vertex_element[ei].vertex_buffer_index; in draw_pt_fetch_prepare() 101 key.element[nr].input_offset = draw->pt.vertex_element[ei].src_offset; in draw_pt_fetch_prepare() 102 key.element[nr].instance_divisor = draw->pt.vertex_element[ei].instance_divisor; in draw_pt_fetch_prepare() 108 } else if (util_format_is_pure_uint(draw->pt.vertex_element[i].src_format)) { in draw_pt_fetch_prepare() [all …]
|
D | draw_pt_emit.c | 38 struct draw_context *draw; member 54 struct draw_context *draw = emit->draw; in draw_pt_emit_prepare() local 62 draw_do_flush( draw, DRAW_FLUSH_BACKEND ); in draw_pt_emit_prepare() 69 draw->render->set_primitive(draw->render, emit->prim); in draw_pt_emit_prepare() 73 emit->vinfo = vinfo = draw->render->get_vertex_info(draw->render); in draw_pt_emit_prepare() 115 *max_vertices = (draw->render->max_vertex_buffer_bytes / in draw_pt_emit_prepare() 129 struct draw_context *draw = emit->draw; in draw_pt_emit() local 131 struct vbuf_render *render = draw->render; in draw_pt_emit() 137 draw_do_flush( draw, DRAW_FLUSH_BACKEND ); in draw_pt_emit() 145 draw->render->set_primitive(draw->render, emit->prim); in draw_pt_emit() [all …]
|
D | draw_pt_fetch_shade_pipeline_llvm.c | 42 struct draw_context *draw; member 67 struct draw_context *draw = fpme->draw; in llvm_middle_end_prepare() local 69 llvm_vertex_shader(draw->vs.vertex_shader); in llvm_middle_end_prepare() 74 const unsigned out_prim = (draw->gs.geometry_shader ? in llvm_middle_end_prepare() 75 draw->gs.geometry_shader->output_primitive : in llvm_middle_end_prepare() 98 draw->clip_xy, in llvm_middle_end_prepare() 99 draw->clip_z, in llvm_middle_end_prepare() 100 draw->clip_user, in llvm_middle_end_prepare() 101 draw->guard_band_xy, in llvm_middle_end_prepare() 102 draw->identity_viewport, in llvm_middle_end_prepare() [all …]
|
D | draw_pt_so_emit.c | 41 struct draw_context *draw; member 56 struct draw_context *draw = emit->draw; in draw_pt_so_emit_prepare() local 58 emit->has_so = (draw->vs.vertex_shader->state.stream_output.num_outputs > 0); in draw_pt_so_emit_prepare() 65 for (i = 0; i < draw->so.num_targets; ++i) { in draw_pt_so_emit_prepare() 66 if (draw->so.targets[i]) { in draw_pt_so_emit_prepare() 79 draw_do_flush( draw, DRAW_FLUSH_BACKEND ); in draw_pt_so_emit_prepare() 88 struct draw_context *draw = so->draw; in so_emit_prim() local 91 &draw->vs.vertex_shader->state.stream_output; in so_emit_prim() 99 for (i = 0; i < draw->so.num_targets; i++) { in so_emit_prim() 100 struct draw_so_target *target = draw->so.targets[i]; in so_emit_prim() [all …]
|
D | draw_pipe_wide_point.c | 97 const struct draw_context *draw = wide->stage.draw; in set_texcoords() local 98 const struct pipe_rasterizer_state *rast = draw->rasterizer; in set_texcoords() 124 const unsigned pos = draw_current_shader_position_output(stage->draw); in widepoint_point() 125 const boolean sprite = (boolean) stage->draw->rasterizer->point_quad_rasterization; in widepoint_point() 197 struct draw_context *draw = stage->draw; in widepoint_first_point() local 198 struct pipe_context *pipe = draw->pipe; in widepoint_first_point() 199 const struct pipe_rasterizer_state *rast = draw->rasterizer; in widepoint_first_point() 212 r = draw_get_rasterizer_no_cull(draw, rast->scissor, rast->flatshade); in widepoint_first_point() 213 draw->suspend_flushing = TRUE; in widepoint_first_point() 215 draw->suspend_flushing = FALSE; in widepoint_first_point() [all …]
|
D | draw_pt_fetch_shade_pipeline.c | 41 struct draw_context *draw; member 60 struct draw_context *draw = fpme->draw; in fetch_pipeline_prepare() local 61 struct draw_vertex_shader *vs = draw->vs.vertex_shader; in fetch_pipeline_prepare() 65 unsigned gs_out_prim = (draw->gs.geometry_shader ? in fetch_pipeline_prepare() 66 draw->gs.geometry_shader->output_primitive : in fetch_pipeline_prepare() 103 draw->clip_xy, in fetch_pipeline_prepare() 104 draw->clip_z, in fetch_pipeline_prepare() 105 draw->clip_user, in fetch_pipeline_prepare() 106 draw->guard_band_xy, in fetch_pipeline_prepare() 107 draw->identity_viewport, in fetch_pipeline_prepare() [all …]
|
D | draw_pipe_wide_line.c | 62 const unsigned pos = draw_current_shader_position_output(stage->draw); in wideline_line() 63 const float half_width = 0.5f * stage->draw->rasterizer->line_width; in wideline_line() 81 stage->draw->rasterizer->gl_rasterization_rules; in wideline_line() 155 struct draw_context *draw = stage->draw; in wideline_first_line() local 156 struct pipe_context *pipe = draw->pipe; in wideline_first_line() 157 const struct pipe_rasterizer_state *rast = draw->rasterizer; in wideline_first_line() 161 r = draw_get_rasterizer_no_cull(draw, rast->scissor, rast->flatshade); in wideline_first_line() 162 draw->suspend_flushing = TRUE; in wideline_first_line() 164 draw->suspend_flushing = FALSE; in wideline_first_line() 174 struct draw_context *draw = stage->draw; in wideline_flush() local [all …]
|
D | draw_private.h | 361 boolean draw_init(struct draw_context *draw); 366 boolean draw_vs_init( struct draw_context *draw ); 367 void draw_vs_destroy( struct draw_context *draw ); 383 boolean draw_gs_init( struct draw_context *draw ); 391 void draw_gs_destroy( struct draw_context *draw ); 396 uint draw_current_shader_outputs(const struct draw_context *draw); 397 uint draw_current_shader_position_output(const struct draw_context *draw); 398 uint draw_current_shader_clipvertex_output(const struct draw_context *draw); 399 uint draw_current_shader_clipdistance_output(const struct draw_context *draw, int index); 400 int draw_alloc_extra_vertex_attrib(struct draw_context *draw, [all …]
|
/external/mesa3d/src/gallium/auxiliary/ |
D | Makefile.sources | 7 draw/draw_context.c \ 8 draw/draw_fs.c \ 9 draw/draw_gs.c \ 10 draw/draw_pipe.c \ 11 draw/draw_pipe_aaline.c \ 12 draw/draw_pipe_aapoint.c \ 13 draw/draw_pipe_clip.c \ 14 draw/draw_pipe_cull.c \ 15 draw/draw_pipe_flatshade.c \ 16 draw/draw_pipe_offset.c \ [all …]
|
/external/mesa3d/src/gallium/state_trackers/dri/common/ |
D | dri_drawable.c | 42 swap_fences_unref(struct dri_drawable *draw); 293 swap_fences_pop_front(struct dri_drawable *draw) in swap_fences_pop_front() argument 295 struct pipe_screen *screen = draw->screen->base.screen; in swap_fences_pop_front() 298 if (draw->desired_fences == 0) in swap_fences_pop_front() 301 if (draw->cur_fences >= draw->desired_fences) { in swap_fences_pop_front() 302 screen->fence_reference(screen, &fence, draw->swap_fences[draw->tail]); in swap_fences_pop_front() 303 screen->fence_reference(screen, &draw->swap_fences[draw->tail++], NULL); in swap_fences_pop_front() 304 draw->tail &= DRI_SWAP_FENCES_MASK; in swap_fences_pop_front() 305 --draw->cur_fences; in swap_fences_pop_front() 318 swap_fences_push_back(struct dri_drawable *draw, in swap_fences_push_back() argument [all …]
|
/external/mesa3d/src/gallium/state_trackers/dri/drm/ |
D | dri_drawable.c | 42 swap_fences_unref(struct dri_drawable *draw); 293 swap_fences_pop_front(struct dri_drawable *draw) in swap_fences_pop_front() argument 295 struct pipe_screen *screen = draw->screen->base.screen; in swap_fences_pop_front() 298 if (draw->desired_fences == 0) in swap_fences_pop_front() 301 if (draw->cur_fences >= draw->desired_fences) { in swap_fences_pop_front() 302 screen->fence_reference(screen, &fence, draw->swap_fences[draw->tail]); in swap_fences_pop_front() 303 screen->fence_reference(screen, &draw->swap_fences[draw->tail++], NULL); in swap_fences_pop_front() 304 draw->tail &= DRI_SWAP_FENCES_MASK; in swap_fences_pop_front() 305 --draw->cur_fences; in swap_fences_pop_front() 318 swap_fences_push_back(struct dri_drawable *draw, in swap_fences_push_back() argument [all …]
|
/external/mesa3d/src/gallium/state_trackers/dri/sw/ |
D | dri_drawable.c | 42 swap_fences_unref(struct dri_drawable *draw); 293 swap_fences_pop_front(struct dri_drawable *draw) in swap_fences_pop_front() argument 295 struct pipe_screen *screen = draw->screen->base.screen; in swap_fences_pop_front() 298 if (draw->desired_fences == 0) in swap_fences_pop_front() 301 if (draw->cur_fences >= draw->desired_fences) { in swap_fences_pop_front() 302 screen->fence_reference(screen, &fence, draw->swap_fences[draw->tail]); in swap_fences_pop_front() 303 screen->fence_reference(screen, &draw->swap_fences[draw->tail++], NULL); in swap_fences_pop_front() 304 draw->tail &= DRI_SWAP_FENCES_MASK; in swap_fences_pop_front() 305 --draw->cur_fences; in swap_fences_pop_front() 318 swap_fences_push_back(struct dri_drawable *draw, in swap_fences_push_back() argument [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_swtnl_draw.c | 45 struct draw_context *draw = svga->swtnl.draw; in svga_swtnl_draw_vbo() local 52 assert(draw); in svga_swtnl_draw_vbo() 75 draw_set_mapped_vertex_buffer(draw, i, map); in svga_swtnl_draw_vbo() 85 draw_set_indexes(draw, in svga_swtnl_draw_vbo() 97 draw, PIPE_SHADER_VERTEX, 0, in svga_swtnl_draw_vbo() 102 draw_vbo(draw, info); in svga_swtnl_draw_vbo() 104 draw_flush(svga->swtnl.draw); in svga_swtnl_draw_vbo() 115 draw_set_mapped_vertex_buffer(draw, i, NULL); in svga_swtnl_draw_vbo() 121 draw_set_indexes(draw, NULL, 0); in svga_swtnl_draw_vbo() 147 svga->swtnl.draw = draw_create(&svga->pipe); in svga_init_swtnl() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_feedback.c | 83 feedback_vertex(struct gl_context *ctx, const struct draw_context *draw, in feedback_vertex() argument 122 struct draw_context *draw = stage->draw; in feedback_tri() local 125 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_tri() 126 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_tri() 127 feedback_vertex(fs->ctx, draw, prim->v[2]); in feedback_tri() 135 struct draw_context *draw = stage->draw; in feedback_line() local 143 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_line() 144 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_line() 152 struct draw_context *draw = stage->draw; in feedback_point() local 154 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_point() [all …]
|
/external/skia/tests/ |
D | MatrixClipCollapseTest.cpp | 64 input.draw(&debugCanvas); in gets_ops() 142 DrawOpType draw, SkTDArray<DrawType>* expected, 145 ClipType clip, DrawOpType draw, 148 ClipType clip, PFEmitBody emitBody, DrawOpType draw, 283 static void emit_draw(SkCanvas* canvas, DrawOpType draw, SkTDArray<DrawType>* expected) { in emit_draw() argument 284 switch (draw) { in emit_draw() 326 DrawOpType draw, SkTDArray<DrawType>* expected, in emit_clip_and_mat() argument 331 if (kNone_DrawOpType == draw) { in emit_clip_and_mat() 347 DrawOpType draw, SkTDArray<DrawType>* expected, in emit_mat_and_clip() argument 352 if (kNone_DrawOpType == draw) { in emit_mat_and_clip() [all …]
|
/external/skia/src/animator/ |
D | SkDisplayList.cpp | 31 bool SkDisplayList::draw(SkAnimateMaker& maker, SkMSec inTime) { in draw() function in SkDisplayList 42 SkADrawable* draw = fDrawList[index]; in draw() local 43 draw->initialize(); // allow matrices to reset themselves in draw() 44 SkASSERT(draw->isDrawable()); in draw() 46 result |= draw->draw(maker); in draw() 75 SkADrawable* draw = (**list)[index]; in SearchForMatch() local 76 if (draw == match) in SearchForMatch() 78 if (draw->isApply()) { in SearchForMatch() 79 SkApply* apply = (SkApply*) draw; in SearchForMatch() 93 … if (draw->isGroup() && SearchGroupForMatch(draw, match, list, parent, found, grandList, index)) in SearchForMatch() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_context.c | 55 struct draw_context *draw = i915->draw; in i915_draw_vbo() local 74 draw_set_indexes(draw, in i915_draw_vbo() 80 draw_set_mapped_constant_buffer(draw, PIPE_SHADER_VERTEX, 0, in i915_draw_vbo() 85 draw_set_mapped_constant_buffer(draw, PIPE_SHADER_VERTEX, 0, NULL, 0); in i915_draw_vbo() 93 draw_vbo(i915->draw, info); in i915_draw_vbo() 96 draw_set_indexes(draw, NULL, 0); in i915_draw_vbo() 105 draw_flush(i915->draw); in i915_draw_vbo() 122 draw_destroy(i915->draw); in i915_destroy() 176 i915->draw = draw_create(&i915->base); in i915_create_context() 177 assert(i915->draw); in i915_create_context() [all …]
|