Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_swtnl_state.c190 const SVGA3dVertexDecl *vdecl, unsigned num_decls) in svga_vdecl_to_input_element() argument
201 elements[i].alignedByteOffset = vdecl[i].array.offset; in svga_vdecl_to_input_element()
202 elements[i].format = translate_vertex_format(vdecl[i].identity.type); in svga_vdecl_to_input_element()
223 SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS]; in svga_swtnl_update_vdecl() local
234 memset(vdecl, 0, sizeof(vdecl)); in svga_swtnl_update_vdecl()
242 vdecl[0].array.offset = offset; in svga_swtnl_update_vdecl()
243 vdecl[0].identity.method = SVGA3D_DECLMETHOD_DEFAULT; in svga_swtnl_update_vdecl()
244 vdecl[0].identity.type = SVGA3D_DECLTYPE_FLOAT4; in svga_swtnl_update_vdecl()
245 vdecl[0].identity.usage = SVGA3D_DECLUSAGE_POSITIONT; in svga_swtnl_update_vdecl()
246 vdecl[0].identity.usageIndex = 0; in svga_swtnl_update_vdecl()
[all …]
Dsvga_swtnl_backend.c218 SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS]; in svga_vbuf_submit_state() local
230 memcpy(vdecl, svga_render->vdecl, sizeof(vdecl)); in svga_vbuf_submit_state()
240 vdecl[i].array.offset += svga_render->vdecl_offset; in svga_vbuf_submit_state()
245 vdecl, in svga_vbuf_submit_state()
255 vb.stride = vdecl[0].array.stride; in svga_vbuf_submit_state()
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_private.h72 SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS]; member
Dsvga_draw_private.h144 SVGA3dVertexDecl vdecl[SVGA3D_INPUTREG_MAX]; member
/third_party/mesa3d/src/gallium/frontends/nine/
Dnine_shader.h183 struct NineVertexDeclaration9 *vdecl; member
190 struct NineVertexDeclaration9 *vdecl, in nine_shader_variant_so_get() argument
193 while (list->vdecl != vdecl && list->next) in nine_shader_variant_so_get()
195 if (list->vdecl == vdecl) { in nine_shader_variant_so_get()
204 struct NineVertexDeclaration9 *vdecl, in nine_shader_variant_so_add() argument
207 if (list->vdecl == NULL) { /* first shader */ in nine_shader_variant_so_add()
209 nine_bind(&list->vdecl, vdecl); in nine_shader_variant_so_add()
215 assert(list->vdecl != vdecl); in nine_shader_variant_so_add()
222 nine_bind(&list->vdecl, vdecl); in nine_shader_variant_so_add()
234 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.c3041 user_assert(This->state.vdecl, D3DERR_INVALIDCALL); in NineDevice9_DrawIndexedPrimitive()
3215 struct NineVertexDeclaration9 *vdecl = NineVertexDeclaration9(pVertexDecl); in NineDevice9_ProcessVertices() local
3225 bool programmable_vs = This->state.vs && !(This->state.vdecl && This->state.vdecl->position_t); in NineDevice9_ProcessVertices()
3246 user_assert(vdecl || (vs->byte_code.version < 0x30 && dst->desc.FVF), in NineDevice9_ProcessVertices()
3248 if (!vdecl) { in NineDevice9_ProcessVertices()
3250 vdecl = util_hash_table_get(This->ff.ht_fvf, &FVF); in NineDevice9_ProcessVertices()
3251 if (!vdecl) { in NineDevice9_ProcessVertices()
3252 hr = NineVertexDeclaration9_new_from_fvf(This, FVF, &vdecl); in NineDevice9_ProcessVertices()
3255 vdecl->fvf = FVF; in NineDevice9_ProcessVertices()
3256 _mesa_hash_table_insert(This->ff.ht_fvf, &vdecl->fvf, vdecl); in NineDevice9_ProcessVertices()
[all …]
Dnine_state.c839 const struct NineVertexDeclaration9 *vdecl = device->context.vdecl; in update_vertex_elements() local
853 if (vdecl) { in update_vertex_elements()
856 n, vs->input_map[n].ndecl, vdecl); in update_vertex_elements()
858 for (i = 0; i < vdecl->nelems; i++) { in update_vertex_elements()
859 if (vdecl->usage_map[i] == vs->input_map[n].ndecl) { in update_vertex_elements()
861 used_streams |= BITFIELD_BIT(vdecl->elems[i].vertex_buffer_index); in update_vertex_elements()
887 ve.velems[n] = vdecl->elems[index]; in update_vertex_elements()
1645 ARG_BIND_REF(struct NineVertexDeclaration9, vdecl)) in CSMT_ITEM_NO_WAIT() argument
1650 nine_bind(&context->vdecl, vdecl); in CSMT_ITEM_NO_WAIT()
1652 context->programmable_vs = context->vs && !(context->vdecl && context->vdecl->position_t); in CSMT_ITEM_NO_WAIT()
[all …]
Dstateblock9.c73 nine_bind(&state->vdecl, NULL); in NineStateBlock9_dtor()
551 nine_bind(&dst->vdecl, src->vdecl); in NineStateBlock9_Capture()
575 if ((src->changed.group & NINE_STATE_VDECL) && src->vdecl) in NineStateBlock9_Apply()
576 nine_bind(&dst->vdecl, src->vdecl); in NineStateBlock9_Apply()
Dnine_state.h205 struct NineVertexDeclaration9 *vdecl; member
274 struct NineVertexDeclaration9 *vdecl; member
407 struct NineVertexDeclaration9 *vdecl);
Dvertexshader9.c145 while (var_so && var_so->vdecl) { in NineVertexShader9_dtor()
Dnine_ff.c1588 if (context->vdecl) { in nine_ff_get_vs()
1591 for (i = 0; i < context->vdecl->nelems; i++) { in nine_ff_get_vs()
1592 uint16_t usage = context->vdecl->usage_map[i]; in nine_ff_get_vs()
1613 input_texture_coord[s] = nine_decltype_get_dim(context->vdecl->decls[i].Type); in nine_ff_get_vs()