/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_vertex.c | 120 struct svga_velems_state *velems) in define_input_element_object() argument 126 assert(velems->count <= PIPE_MAX_ATTRIBS); in define_input_element_object() 129 for (i = 0; i < velems->count; i++) { in define_input_element_object() 130 const struct pipe_vertex_element *elem = velems->velem + i; in define_input_element_object() 137 velems->decl_type[i] = in define_input_element_object() 154 velems->need_swvfetch = TRUE; in define_input_element_object() 158 velems->attrib_is_pure_int |= (1 << i); in define_input_element_object() 162 velems->adjust_attrib_w_1 |= (1 << i); in define_input_element_object() 166 velems->adjust_attrib_utof |= (1 << i); in define_input_element_object() 169 velems->adjust_attrib_itof |= (1 << i); in define_input_element_object() [all …]
|
D | svga_state_vdecl.c | 45 const struct pipe_vertex_element *ve = svga->curr.velems->velem; in emit_hw_vs_vdecl() 51 assert(svga->curr.velems->count >= in emit_hw_vs_vdecl() 69 for (i = 0; i < svga->curr.velems->count; i++) { in emit_hw_vs_vdecl() 88 for (i = 0; i < svga->curr.velems->count; i++) { in emit_hw_vs_vdecl() 102 decls[i].identity.type = svga->curr.velems->decl_type[i]; in emit_hw_vs_vdecl() 124 svga->curr.velems->count, in emit_hw_vs_vdecl() 127 svga->curr.velems->id); in emit_hw_vs_vdecl()
|
D | svga_state_vs.c | 188 key->vs.adjust_attrib_range = svga->curr.velems->adjust_attrib_range; in make_vs_key() 189 key->vs.adjust_attrib_w_1 = svga->curr.velems->adjust_attrib_w_1; in make_vs_key() 190 key->vs.attrib_is_pure_int = svga->curr.velems->attrib_is_pure_int; in make_vs_key() 191 key->vs.adjust_attrib_itof = svga->curr.velems->adjust_attrib_itof; in make_vs_key() 192 key->vs.adjust_attrib_utof = svga->curr.velems->adjust_attrib_utof; in make_vs_key() 193 key->vs.attrib_is_bgra = svga->curr.velems->attrib_is_bgra; in make_vs_key() 194 key->vs.attrib_puint_to_snorm = svga->curr.velems->attrib_puint_to_snorm; in make_vs_key() 195 key->vs.attrib_puint_to_uscaled = svga->curr.velems->attrib_puint_to_uscaled; in make_vs_key() 196 key->vs.attrib_puint_to_sscaled = svga->curr.velems->attrib_puint_to_sscaled; in make_vs_key()
|
D | svga_state_need_swtnl.c | 38 if (!svga->curr.velems) { in update_need_swvfetch() 43 if (svga->state.sw.need_swvfetch != svga->curr.velems->need_swvfetch) { in update_need_swvfetch() 44 svga->state.sw.need_swvfetch = svga->curr.velems->need_swvfetch; in update_need_swvfetch()
|
D | svga_swtnl_state.c | 122 svga->curr.velems->count, in update_swtnl_draw() 123 svga->curr.velems->velem); in update_swtnl_draw()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_vertex.c | 46 struct lp_velems_state *velems; in llvmpipe_create_vertex_elements_state() local 48 velems = (struct lp_velems_state *) MALLOC(sizeof(struct lp_velems_state)); in llvmpipe_create_vertex_elements_state() 49 if (velems) { in llvmpipe_create_vertex_elements_state() 50 velems->count = count; in llvmpipe_create_vertex_elements_state() 51 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in llvmpipe_create_vertex_elements_state() 53 return velems; in llvmpipe_create_vertex_elements_state() 58 void *velems) in llvmpipe_bind_vertex_elements_state() argument 61 struct lp_velems_state *lp_velems = (struct lp_velems_state *) velems; in llvmpipe_bind_vertex_elements_state() 63 llvmpipe->velems = lp_velems; in llvmpipe_bind_vertex_elements_state() 67 if (velems) in llvmpipe_bind_vertex_elements_state() [all …]
|
D | lp_context.h | 68 const struct lp_velems_state *velems; member
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_vertex.c | 47 struct sp_velems_state *velems; in softpipe_create_vertex_elements_state() local 49 velems = (struct sp_velems_state *) MALLOC(sizeof(struct sp_velems_state)); in softpipe_create_vertex_elements_state() 50 if (velems) { in softpipe_create_vertex_elements_state() 51 velems->count = count; in softpipe_create_vertex_elements_state() 52 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in softpipe_create_vertex_elements_state() 54 return velems; in softpipe_create_vertex_elements_state() 60 void *velems) in softpipe_bind_vertex_elements_state() argument 63 struct sp_velems_state *sp_velems = (struct sp_velems_state *) velems; in softpipe_bind_vertex_elements_state() 65 softpipe->velems = sp_velems; in softpipe_bind_vertex_elements_state() 75 softpipe_delete_vertex_elements_state(struct pipe_context *pipe, void *velems) in softpipe_delete_vertex_elements_state() argument [all …]
|
D | sp_context.h | 72 struct sp_velems_state *velems; member
|
D | sp_surface.c | 64 util_blitter_save_vertex_elements(sp->blitter, sp->velems); in sp_blit()
|
/external/mesa3d/src/gallium/drivers/swr/ |
D | swr_draw.cpp | 114 struct swr_vertex_element_state *velems = ctx->velems; in swr_draw_vbo() local 116 velems->fsState.cutIndex = info->restart_index; in swr_draw_vbo() 118 velems->fsState.cutIndex = 0; in swr_draw_vbo() 119 velems->fsState.bEnableCutIndex = info->primitive_restart; in swr_draw_vbo() 120 velems->fsState.bPartialVertexBuffer = (info->min_index > 0); in swr_draw_vbo() 123 swr_generate_fetch_key(key, velems); in swr_draw_vbo() 124 auto search = velems->map.find(key); in swr_draw_vbo() 125 if (search != velems->map.end()) { in swr_draw_vbo() 126 velems->fsFunc = search->second; in swr_draw_vbo() 129 velems->fsFunc = JitCompileFetch(hJitMgr, velems->fsState); in swr_draw_vbo() [all …]
|
D | swr_state.cpp | 497 struct swr_vertex_element_state *velems; in swr_create_vertex_elements_state() local 499 velems = new swr_vertex_element_state; in swr_create_vertex_elements_state() 500 if (velems) { in swr_create_vertex_elements_state() 501 memset(&velems->fsState, 0, sizeof(velems->fsState)); in swr_create_vertex_elements_state() 502 velems->fsState.bVertexIDOffsetEnable = true; in swr_create_vertex_elements_state() 503 velems->fsState.numAttribs = num_elements; in swr_create_vertex_elements_state() 510 velems->fsState.layout[i].AlignedByteOffset = attribs[i].src_offset; in swr_create_vertex_elements_state() 511 velems->fsState.layout[i].Format = in swr_create_vertex_elements_state() 513 velems->fsState.layout[i].StreamIndex = in swr_create_vertex_elements_state() 515 velems->fsState.layout[i].InstanceEnable = in swr_create_vertex_elements_state() [all …]
|
D | swr_shader.h | 54 struct swr_vertex_element_state *velems);
|
D | swr_context.h | 125 struct swr_vertex_element_state *velems;
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_state.c | 1028 struct i915_velems_state *velems; in i915_create_vertex_elements_state() local 1030 velems = (struct i915_velems_state *) MALLOC(sizeof(struct i915_velems_state)); in i915_create_vertex_elements_state() 1031 if (velems) { in i915_create_vertex_elements_state() 1032 velems->count = count; in i915_create_vertex_elements_state() 1033 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in i915_create_vertex_elements_state() 1035 return velems; in i915_create_vertex_elements_state() 1040 void *velems) in i915_bind_vertex_elements_state() argument 1043 struct i915_velems_state *i915_velems = (struct i915_velems_state *) velems; in i915_bind_vertex_elements_state() 1045 if (i915->velems == velems) in i915_bind_vertex_elements_state() 1048 i915->velems = velems; in i915_bind_vertex_elements_state() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_render.c | 152 struct pipe_vertex_element *velem = r300->velems->velem; in r300_split_index_bias() 161 for (i = 0; i < r300->velems->count; i++) { in r300_split_index_bias() 322 if (count * r300->velems->vertex_size_dwords > IMMD_DWORDS) { in immd_is_good_idea() 340 unsigned vertex_element_count = r300->velems->count; in r300_draw_arrays_immediate() 344 unsigned vertex_size = r300->velems->vertex_size_dwords; in r300_draw_arrays_immediate() 367 velem = &r300->velems->velem[i]; in r300_draw_arrays_immediate() 368 size[i] = r300->velems->format_size[i] / 4; in r300_draw_arrays_immediate() 735 unsigned i, nr = r300->velems->count; in r300_max_vertex_count() 736 struct pipe_vertex_element *velems = r300->velems->velem; in r300_max_vertex_count() local 741 &r300->vertex_buffer[velems[i].vertex_buffer_index]; in r300_max_vertex_count() [all …]
|
D | r300_state.c | 1786 static void r300_vertex_psc(struct r300_vertex_element_state *velems) in r300_vertex_psc() argument 1788 struct r300_vertex_stream_state *vstream = &velems->vertex_stream; in r300_vertex_psc() 1796 for (i = 0; i < velems->count; i++) { in r300_vertex_psc() 1797 format = velems->velem[i].src_format; in r300_vertex_psc() 1833 struct r300_vertex_element_state *velems; in r300_create_vertex_elements_state() local 1848 velems = CALLOC_STRUCT(r300_vertex_element_state); in r300_create_vertex_elements_state() 1849 if (!velems) in r300_create_vertex_elements_state() 1852 velems->count = count; in r300_create_vertex_elements_state() 1853 memcpy(velems->velem, attribs, sizeof(struct pipe_vertex_element) * count); in r300_create_vertex_elements_state() 1858 r300_vertex_psc(velems); in r300_create_vertex_elements_state() [all …]
|
/external/mesa3d/src/gallium/drivers/ddebug/ |
D | dd_pipe.h | 206 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member 208 } velems; member 234 struct dd_state *velems; member 263 struct dd_state velems; member
|
D | dd_draw.c | 309 if (dstate->velems) { in dd_dump_draw_vbo() 311 dstate->velems->state.velems.count); in dd_dump_draw_vbo() 312 for (i = 0; i < dstate->velems->state.velems.count; i++) { in dd_dump_draw_vbo() 314 DUMP_I(vertex_element, &dstate->velems->state.velems.velems[i], i); in dd_dump_draw_vbo() 717 state->base.velems = &state->velems; in dd_init_copy_of_draw_state() 824 if (src->velems) in dd_copy_draw_state() 825 dst->velems->state.velems = src->velems->state.velems; in dd_copy_draw_state() 827 dst->velems = NULL; in dd_copy_draw_state()
|
D | dd_context.c | 253 memcpy(hstate->state.velems.velems, elems, sizeof(elems[0]) * num_elems); in dd_context_create_vertex_elements_state() 254 hstate->state.velems.count = num_elems; in dd_context_create_vertex_elements_state() 258 DD_CSO_BIND(vertex_elements, velems) in DD_CSO_BIND() argument
|
/external/mesa3d/src/gallium/state_trackers/xa/ |
D | xa_renderer.c | 91 cso_set_vertex_elements(r->cso, r->attrs_per_vertex, r->velems); in renderer_draw() 129 memset(&r->velems[0], 0, sizeof(r->velems[0]) * 3); in renderer_init_state() 131 r->velems[i].src_offset = i * 4 * sizeof(float); in renderer_init_state() 132 r->velems[i].instance_divisor = 0; in renderer_init_state() 133 r->velems[i].vertex_buffer_index = 0; in renderer_init_state() 134 r->velems[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in renderer_init_state() 542 cso_set_vertex_elements(r->cso, num_attribs, r->velems); in renderer_draw_yuv()
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_cache.h | 137 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member
|
/external/virglrenderer/src/gallium/auxiliary/cso_cache/ |
D | cso_cache.h | 136 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member
|
/external/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_private.h | 63 struct pipe_vertex_element velems[2]; member
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_descriptors.c | 1014 struct si_vertex_elements *velems = sctx->vertex_elements; in si_upload_vertex_buffer_descriptors() local 1021 if (!sctx->vertex_buffers_dirty || !velems) in si_upload_vertex_buffer_descriptors() 1024 count = velems->count; in si_upload_vertex_buffer_descriptors() 1029 desc_list_byte_size = velems->desc_list_byte_size; in si_upload_vertex_buffer_descriptors() 1030 first_vb_use_mask = velems->first_vb_use_mask; in si_upload_vertex_buffer_descriptors() 1058 unsigned vbo_index = velems->vertex_buffer_index[i]; in si_upload_vertex_buffer_descriptors() 1069 velems->src_offset[i]; in si_upload_vertex_buffer_descriptors() 1075 num_records = (num_records - velems->format_size[i]) / in si_upload_vertex_buffer_descriptors() 1084 desc[3] = velems->rsrc_word3[i]; in si_upload_vertex_buffer_descriptors()
|