/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_vertex.c | 120 struct svga_velems_state *velems) in define_input_element_object() argument 125 assert(velems->count <= PIPE_MAX_ATTRIBS); in define_input_element_object() 128 for (i = 0; i < velems->count; i++) { in define_input_element_object() 129 const struct pipe_vertex_element *elem = velems->velem + i; in define_input_element_object() 136 velems->decl_type[i] = in define_input_element_object() 153 velems->need_swvfetch = TRUE; in define_input_element_object() 157 velems->attrib_is_pure_int |= (1 << i); in define_input_element_object() 161 velems->adjust_attrib_w_1 |= (1 << i); in define_input_element_object() 165 velems->adjust_attrib_utof |= (1 << i); in define_input_element_object() 168 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 | 196 key->vs.adjust_attrib_range = svga->curr.velems->adjust_attrib_range; in make_vs_key() 197 key->vs.adjust_attrib_w_1 = svga->curr.velems->adjust_attrib_w_1; in make_vs_key() 198 key->vs.attrib_is_pure_int = svga->curr.velems->attrib_is_pure_int; in make_vs_key() 199 key->vs.adjust_attrib_itof = svga->curr.velems->adjust_attrib_itof; in make_vs_key() 200 key->vs.adjust_attrib_utof = svga->curr.velems->adjust_attrib_utof; in make_vs_key() 201 key->vs.attrib_is_bgra = svga->curr.velems->attrib_is_bgra; in make_vs_key() 202 key->vs.attrib_puint_to_snorm = svga->curr.velems->attrib_puint_to_snorm; in make_vs_key() 203 key->vs.attrib_puint_to_uscaled = svga->curr.velems->attrib_puint_to_uscaled; in make_vs_key() 204 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()
|
/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 …]
|
/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 …]
|
/external/mesa3d/src/gallium/drivers/swr/ |
D | swr_draw.cpp | 126 struct swr_vertex_element_state *velems = ctx->velems; in swr_draw_vbo() local 128 velems->fsState.cutIndex = info->restart_index; in swr_draw_vbo() 130 velems->fsState.cutIndex = 0; in swr_draw_vbo() 131 velems->fsState.bEnableCutIndex = info->primitive_restart; in swr_draw_vbo() 132 velems->fsState.bPartialVertexBuffer = (info->min_index > 0); in swr_draw_vbo() 135 swr_generate_fetch_key(key, velems); in swr_draw_vbo() 136 auto search = velems->map.find(key); in swr_draw_vbo() 137 if (search != velems->map.end()) { in swr_draw_vbo() 138 velems->fsFunc = search->second; in swr_draw_vbo() 141 velems->fsFunc = JitCompileFetch(hJitMgr, velems->fsState); in swr_draw_vbo() [all …]
|
D | swr_state.cpp | 583 struct swr_vertex_element_state *velems; in swr_create_vertex_elements_state() local 585 velems = new swr_vertex_element_state; in swr_create_vertex_elements_state() 586 if (velems) { in swr_create_vertex_elements_state() 587 memset((void*)&velems->fsState, 0, sizeof(velems->fsState)); in swr_create_vertex_elements_state() 588 velems->fsState.bVertexIDOffsetEnable = true; in swr_create_vertex_elements_state() 589 velems->fsState.numAttribs = num_elements; in swr_create_vertex_elements_state() 596 velems->fsState.layout[i].AlignedByteOffset = attribs[i].src_offset; in swr_create_vertex_elements_state() 597 velems->fsState.layout[i].Format = in swr_create_vertex_elements_state() 599 velems->fsState.layout[i].StreamIndex = in swr_create_vertex_elements_state() 601 velems->fsState.layout[i].InstanceEnable = in swr_create_vertex_elements_state() [all …]
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
D | pp_program.c | 113 p->velem.velems[0].src_offset = 0; in pp_init_prog() 114 p->velem.velems[0].instance_divisor = 0; in pp_init_prog() 115 p->velem.velems[0].vertex_buffer_index = 0; in pp_init_prog() 116 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in pp_init_prog() 117 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); in pp_init_prog() 118 p->velem.velems[1].instance_divisor = 0; in pp_init_prog() 119 p->velem.velems[1].vertex_buffer_index = 0; in pp_init_prog() 120 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in pp_init_prog()
|
/external/mesa3d/src/gallium/frontends/xa/ |
D | xa_renderer.c | 91 struct cso_velems_state velems; in renderer_draw() local 92 velems.count = r->attrs_per_vertex; in renderer_draw() 93 memcpy(velems.velems, r->velems, sizeof(r->velems[0]) * velems.count); in renderer_draw() 95 cso_set_vertex_elements(r->cso, &velems); in renderer_draw() 134 memset(&r->velems[0], 0, sizeof(r->velems[0]) * 3); in renderer_init_state() 136 r->velems[i].src_offset = i * 4 * sizeof(float); in renderer_init_state() 137 r->velems[i].instance_divisor = 0; in renderer_init_state() 138 r->velems[i].vertex_buffer_index = 0; in renderer_init_state() 139 r->velems[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in renderer_init_state() 524 struct cso_velems_state velems; in renderer_draw_yuv() local [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_drawtex.c | 173 struct cso_velems_state velems; in st_DrawTex() local 311 velems.velems[i].src_offset = i * 4 * sizeof(float); in st_DrawTex() 312 velems.velems[i].instance_divisor = 0; in st_DrawTex() 313 velems.velems[i].vertex_buffer_index = 0; in st_DrawTex() 314 velems.velems[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in st_DrawTex() 316 velems.count = numAttribs; in st_DrawTex() 318 cso_set_vertex_elements(cso, &velems); in st_DrawTex()
|
D | st_atom_array.c | 177 init_velement(vp, velements->velems, &attrib->Format, 0, in st_setup_arrays() 219 init_velement(vp, velements->velems, &attrib->Format, off, in st_setup_arrays() 263 init_velement(vp, velements->velems, &attrib->Format, cursor - data, in st_setup_current() 314 init_velement(vp, velements->velems, &attrib->Format, 0, 0, in st_setup_current_user()
|
D | st_context.c | 629 st->util_velems.velems[0].src_offset = 0; in st_create_context_priv() 630 st->util_velems.velems[0].vertex_buffer_index = 0; in st_create_context_priv() 631 st->util_velems.velems[0].src_format = PIPE_FORMAT_R32G32B32_FLOAT; in st_create_context_priv() 632 st->util_velems.velems[1].src_offset = 3 * sizeof(float); in st_create_context_priv() 633 st->util_velems.velems[1].vertex_buffer_index = 0; in st_create_context_priv() 634 st->util_velems.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in st_create_context_priv() 635 st->util_velems.velems[2].src_offset = 7 * sizeof(float); in st_create_context_priv() 636 st->util_velems.velems[2].vertex_buffer_index = 0; in st_create_context_priv() 637 st->util_velems.velems[2].src_format = PIPE_FORMAT_R32G32_FLOAT; in st_create_context_priv()
|
/external/mesa3d/src/gallium/tests/trivial/ |
D | tri.c | 202 p->velem.velems[0].src_offset = 0 * 4 * sizeof(float); /* offset 0, first element */ in init_prog() 203 p->velem.velems[0].instance_divisor = 0; in init_prog() 204 p->velem.velems[0].vertex_buffer_index = 0; in init_prog() 205 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog() 207 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); /* offset 16, second element */ in init_prog() 208 p->velem.velems[1].instance_divisor = 0; in init_prog() 209 p->velem.velems[1].vertex_buffer_index = 0; in init_prog() 210 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
|
D | quad-tex.c | 259 p->velem.velems[0].src_offset = 0 * 4 * sizeof(float); /* offset 0, first element */ in init_prog() 260 p->velem.velems[0].instance_divisor = 0; in init_prog() 261 p->velem.velems[0].vertex_buffer_index = 0; in init_prog() 262 p->velem.velems[0].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog() 264 p->velem.velems[1].src_offset = 1 * 4 * sizeof(float); /* offset 16, second element */ in init_prog() 265 p->velem.velems[1].instance_divisor = 0; in init_prog() 266 p->velem.velems[1].vertex_buffer_index = 0; in init_prog() 267 p->velem.velems[1].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; in init_prog()
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_state.c | 1022 struct i915_velems_state *velems; in i915_create_vertex_elements_state() local 1024 velems = (struct i915_velems_state *) MALLOC(sizeof(struct i915_velems_state)); in i915_create_vertex_elements_state() 1025 if (velems) { in i915_create_vertex_elements_state() 1026 velems->count = count; in i915_create_vertex_elements_state() 1027 memcpy(velems->velem, attribs, sizeof(*attribs) * count); in i915_create_vertex_elements_state() 1029 return velems; in i915_create_vertex_elements_state() 1034 void *velems) in i915_bind_vertex_elements_state() argument 1037 struct i915_velems_state *i915_velems = (struct i915_velems_state *) velems; in i915_bind_vertex_elements_state() 1039 if (i915->velems == velems) in i915_bind_vertex_elements_state() 1042 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 | 1780 static void r300_vertex_psc(struct r300_vertex_element_state *velems) in r300_vertex_psc() argument 1782 struct r300_vertex_stream_state *vstream = &velems->vertex_stream; in r300_vertex_psc() 1790 for (i = 0; i < velems->count; i++) { in r300_vertex_psc() 1791 format = velems->velem[i].src_format; in r300_vertex_psc() 1827 struct r300_vertex_element_state *velems; in r300_create_vertex_elements_state() local 1842 velems = CALLOC_STRUCT(r300_vertex_element_state); in r300_create_vertex_elements_state() 1843 if (!velems) in r300_create_vertex_elements_state() 1846 velems->count = count; in r300_create_vertex_elements_state() 1847 memcpy(velems->velem, attribs, sizeof(struct pipe_vertex_element) * count); in r300_create_vertex_elements_state() 1852 r300_vertex_psc(velems); in r300_create_vertex_elements_state() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_vbuf.c | 341 const struct cso_velems_state *velems) in u_vbuf_set_vertex_elements_internal() argument 349 key_size = sizeof(struct pipe_vertex_element) * velems->count + in u_vbuf_set_vertex_elements_internal() 351 hash_key = cso_construct_key((void*)velems, key_size); in u_vbuf_set_vertex_elements_internal() 353 (void*)velems, key_size); in u_vbuf_set_vertex_elements_internal() 357 memcpy(&cso->state, velems, key_size); in u_vbuf_set_vertex_elements_internal() 358 cso->data = u_vbuf_create_vertex_elements(mgr, velems->count, in u_vbuf_set_vertex_elements_internal() 359 velems->velems); in u_vbuf_set_vertex_elements_internal() 378 const struct cso_velems_state *velems) in u_vbuf_set_vertex_elements() argument 380 mgr->ve = u_vbuf_set_vertex_elements_internal(mgr, velems); in u_vbuf_set_vertex_elements() 739 mgr->fallback_velems.velems[i].instance_divisor = mgr->ve->ve[i].instance_divisor; in u_vbuf_translate_begin() [all …]
|
D | u_vbuf.h | 75 const struct cso_velems_state *velems);
|
/external/mesa3d/src/gallium/auxiliary/driver_ddebug/ |
D | dd_pipe.h | 213 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member 215 } velems; member 241 struct dd_state *velems; member 270 struct dd_state velems; member
|
D | dd_draw.c | 381 if (dstate->velems) { in dd_dump_draw_vbo() 383 dstate->velems->state.velems.count); in dd_dump_draw_vbo() 384 for (i = 0; i < dstate->velems->state.velems.count; i++) { in dd_dump_draw_vbo() 386 DUMP_I(vertex_element, &dstate->velems->state.velems.velems[i], i); in dd_dump_draw_vbo() 799 state->base.velems = &state->velems; in dd_init_copy_of_draw_state() 906 if (src->velems) in dd_copy_draw_state() 907 dst->velems->state.velems = src->velems->state.velems; in dd_copy_draw_state() 909 dst->velems = NULL; in dd_copy_draw_state()
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_context.c | 1042 const struct cso_velems_state *velems) in cso_set_vertex_elements_direct() argument 1053 key_size = sizeof(struct pipe_vertex_element) * velems->count + in cso_set_vertex_elements_direct() 1055 hash_key = cso_construct_key((void*)velems, key_size); in cso_set_vertex_elements_direct() 1057 (void*)velems, key_size); in cso_set_vertex_elements_direct() 1064 memcpy(&cso->state, velems, key_size); in cso_set_vertex_elements_direct() 1066 velems->count, in cso_set_vertex_elements_direct() 1067 &cso->state.velems[0]); in cso_set_vertex_elements_direct() 1092 const struct cso_velems_state *velems) in cso_set_vertex_elements() argument 1097 u_vbuf_set_vertex_elements(vbuf, velems); in cso_set_vertex_elements() 1101 cso_set_vertex_elements_direct(ctx, velems); in cso_set_vertex_elements() [all …]
|
D | cso_context.h | 87 const struct cso_velems_state *velems); 210 const struct cso_velems_state *velems,
|
D | cso_cache.h | 137 struct pipe_vertex_element velems[PIPE_MAX_ATTRIBS]; member
|