Home
last modified time | relevance | path

Searched refs:vdecl (Results 1 – 13 of 13) sorted by relevance

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_swtnl_state.c190 const SVGA3dVertexDecl *vdecl, unsigned num_decls) in svga_vdecl_to_input_element() argument
202 elements[i].alignedByteOffset = vdecl[i].array.offset; in svga_vdecl_to_input_element()
203 elements[i].format = translate_vertex_format(vdecl[i].identity.type); in svga_vdecl_to_input_element()
229 SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS]; in svga_swtnl_update_vdecl() local
240 memset(vdecl, 0, sizeof(vdecl)); in svga_swtnl_update_vdecl()
248 vdecl[0].array.offset = offset; in svga_swtnl_update_vdecl()
249 vdecl[0].identity.method = SVGA3D_DECLMETHOD_DEFAULT; in svga_swtnl_update_vdecl()
250 vdecl[0].identity.type = SVGA3D_DECLTYPE_FLOAT4; in svga_swtnl_update_vdecl()
251 vdecl[0].identity.usage = SVGA3D_DECLUSAGE_POSITIONT; in svga_swtnl_update_vdecl()
252 vdecl[0].identity.usageIndex = 0; in svga_swtnl_update_vdecl()
[all …]
Dsvga_draw.c125 memcpy(hwtnl->cmd.vdecl, decls, count * sizeof(*decls)); in svga_hwtnl_vertex_decls()
199 SVGA3dVertexDecl *vdecl; in draw_vgpu9() local
278 &vdecl, in draw_vgpu9()
284 memcpy(vdecl, in draw_vgpu9()
285 hwtnl->cmd.vdecl, in draw_vgpu9()
286 hwtnl->cmd.vdecl_count * sizeof hwtnl->cmd.vdecl[0]); in draw_vgpu9()
290 assert(vdecl[i].array.offset % 4 == 0); in draw_vgpu9()
291 assert(vdecl[i].array.stride % 4 == 0); in draw_vgpu9()
298 vdecl[i].rangeHint.first = hwtnl->cmd.min_index[0]; in draw_vgpu9()
299 vdecl[i].rangeHint.last = hwtnl->cmd.max_index[0] + 1; in draw_vgpu9()
[all …]
Dsvga_swtnl_backend.c216 SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS]; in svga_vbuf_submit_state() local
228 memcpy(vdecl, svga_render->vdecl, sizeof(vdecl)); in svga_vbuf_submit_state()
241 vdecl[i].array.offset += svga_render->vdecl_offset; in svga_vbuf_submit_state()
246 vdecl, in svga_vbuf_submit_state()
256 vb.stride = vdecl[0].array.stride; in svga_vbuf_submit_state()
Dsvga_swtnl_private.h72 SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS]; member
Dsvga_draw_private.h135 SVGA3dVertexDecl vdecl[SVGA3D_INPUTREG_MAX]; member
/external/mesa3d/src/gallium/state_trackers/nine/
Dnine_shader.h169 struct NineVertexDeclaration9 *vdecl; member
176 struct NineVertexDeclaration9 *vdecl, in nine_shader_variant_so_get() argument
179 while (list->vdecl != vdecl && list->next) in nine_shader_variant_so_get()
181 if (list->vdecl == vdecl) { in nine_shader_variant_so_get()
190 struct NineVertexDeclaration9 *vdecl, in nine_shader_variant_so_add() argument
193 if (list->vdecl == NULL) { /* first shader */ in nine_shader_variant_so_add()
195 nine_bind(&list->vdecl, vdecl); in nine_shader_variant_so_add()
201 assert(list->vdecl != vdecl); in nine_shader_variant_so_add()
208 nine_bind(&list->vdecl, vdecl); in nine_shader_variant_so_add()
220 nine_bind(&ptr->vdecl, NULL); in nine_shader_variants_so_free()
[all …]
Dnine_ff.h72 if (context->vdecl) { in nine_ff_get_projected_key()
73 for (i = 0; i < context->vdecl->nelems; i++) { in nine_ff_get_projected_key()
74 uint16_t usage = context->vdecl->usage_map[i]; in nine_ff_get_projected_key()
78 input_texture_coord[s] = nine_decltype_get_dim(context->vdecl->decls[i].Type); in nine_ff_get_projected_key()
Ddevice9.c2784 user_assert(This->state.vdecl, D3DERR_INVALIDCALL); in NineDevice9_DrawIndexedPrimitive()
2939 struct NineVertexDeclaration9 *vdecl = NineVertexDeclaration9(pVertexDecl); in NineDevice9_ProcessVertices() local
2948 bool programmable_vs = This->state.vs && !(This->state.vdecl && This->state.vdecl->position_t); in NineDevice9_ProcessVertices()
2967 user_assert(vdecl || (vs->byte_code.version < 0x30 && dst->desc.FVF), in NineDevice9_ProcessVertices()
2969 if (!vdecl) { in NineDevice9_ProcessVertices()
2971 vdecl = util_hash_table_get(This->ff.ht_fvf, &FVF); in NineDevice9_ProcessVertices()
2972 if (!vdecl) { in NineDevice9_ProcessVertices()
2973 hr = NineVertexDeclaration9_new_from_fvf(This, FVF, &vdecl); in NineDevice9_ProcessVertices()
2976 vdecl->fvf = FVF; in NineDevice9_ProcessVertices()
2977 util_hash_table_set(This->ff.ht_fvf, &vdecl->fvf, vdecl); in NineDevice9_ProcessVertices()
[all …]
Dnine_state.c732 const struct NineVertexDeclaration9 *vdecl = device->context.vdecl; in update_vertex_elements() local
747 if (vdecl) { in update_vertex_elements()
750 n, vs->input_map[n].ndecl, vdecl); in update_vertex_elements()
752 for (i = 0; i < vdecl->nelems; i++) { in update_vertex_elements()
753 if (vdecl->usage_map[i] == vs->input_map[n].ndecl) { in update_vertex_elements()
755 used_streams[vdecl->elems[i].vertex_buffer_index] = 1; in update_vertex_elements()
783 ve[n] = vdecl->elems[index]; in update_vertex_elements()
1514 ARG_BIND_REF(struct NineVertexDeclaration9, vdecl)) in CSMT_ITEM_NO_WAIT() argument
1519 nine_bind(&context->vdecl, vdecl); in CSMT_ITEM_NO_WAIT()
1521 context->programmable_vs = context->vs && !(context->vdecl && context->vdecl->position_t); in CSMT_ITEM_NO_WAIT()
[all …]
Dstateblock9.c524 nine_bind(&dst->vdecl, src->vdecl); in NineStateBlock9_Capture()
548 if ((src->changed.group & NINE_STATE_VDECL) && src->vdecl) in NineStateBlock9_Apply()
549 nine_bind(&dst->vdecl, src->vdecl); in NineStateBlock9_Apply()
Dnine_state.h202 struct NineVertexDeclaration9 *vdecl; member
267 struct NineVertexDeclaration9 *vdecl; member
380 struct NineVertexDeclaration9 *vdecl);
Dvertexshader9.c129 while (var_so && var_so->vdecl) { in NineVertexShader9_dtor()
Dnine_ff.c1583 if (context->vdecl) { in nine_ff_get_vs()
1586 for (i = 0; i < context->vdecl->nelems; i++) { in nine_ff_get_vs()
1587 uint16_t usage = context->vdecl->usage_map[i]; in nine_ff_get_vs()
1608 input_texture_coord[s] = nine_decltype_get_dim(context->vdecl->decls[i].Type); in nine_ff_get_vs()