/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_swtnl_state.c | 190 const SVGA3dVertexDecl *vdecl, unsigned num_decls) in svga_vdecl_to_input_element() 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[ in svga_swtnl_update_vdecl() 189 svga_vdecl_to_input_element(struct svga_context *svga, const SVGA3dVertexDecl *vdecl, unsigned num_decls) svga_vdecl_to_input_element() argument [all...] |
H A D | svga_swtnl_backend.c | 218 SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS]; in svga_vbuf_submit_state() local 223 /* if the vdecl or vbuf hasn't changed do nothing */ in svga_vbuf_submit_state() 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()
|
H A D | svga_draw.c | 125 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[ in draw_vgpu9() [all...] |
H A D | svga_swtnl_private.h | 72 SVGA3dVertexDecl vdecl[PIPE_MAX_ATTRIBS]; member
|
H A D | svga_draw_private.h | 144 SVGA3dVertexDecl vdecl[SVGA3D_INPUTREG_MAX]; member
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_shader.h | 183 struct NineVertexDeclaration9 *vdecl; member 190 struct NineVertexDeclaration9 *vdecl, in nine_shader_variant_so_get() 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() 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() 189 nine_shader_variant_so_get(struct nine_shader_variant_so *list, struct NineVertexDeclaration9 *vdecl, struct pipe_stream_output_info *so) nine_shader_variant_so_get() argument 203 nine_shader_variant_so_add(struct nine_shader_variant_so *list, struct NineVertexDeclaration9 *vdecl, struct pipe_stream_output_info *so, void *cso) nine_shader_variant_so_add() argument [all...] |
H A D | nine_ff.h | 72 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()
|
H A D | stateblock9.c | 73 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()
|
H A D | device9.c | 3043 user_assert(This->state.vdecl, D3DERR_INVALIDCALL); in NineDevice9_DrawIndexedPrimitive() 3217 struct NineVertexDeclaration9 *vdecl = NineVertexDeclaration9(pVertexDecl); in NineDevice9_ProcessVertices() local 3227 bool programmable_vs = This->state.vs && !(This->state.vdecl && This->state.vdecl->position_t); in NineDevice9_ProcessVertices() 3248 user_assert(vdecl || (vs->byte_code.version < 0x30 && dst->desc.FVF), in NineDevice9_ProcessVertices() 3250 if (!vdecl) { in NineDevice9_ProcessVertices() 3252 vdecl = util_hash_table_get(This->ff.ht_fvf, &FVF); in NineDevice9_ProcessVertices() 3253 if (!vdecl) { in NineDevice9_ProcessVertices() 3254 hr = NineVertexDeclaration9_new_from_fvf(This, FVF, &vdecl); in NineDevice9_ProcessVertices() 3257 vdecl in NineDevice9_ProcessVertices() 3350 struct NineVertexDeclaration9 *vdecl; NineDevice9_CreateVertexDeclaration() local 3369 struct NineVertexDeclaration9 *vdecl = NineVertexDeclaration9(pDecl); NineDevice9_SetVertexDeclaration() local 3405 struct NineVertexDeclaration9 *vdecl; NineDevice9_SetFVF() local [all...] |
H A D | nine_state.c | 838 const struct NineVertexDeclaration9 *vdecl = device->context.vdecl; in update_vertex_elements() local 852 if (vdecl) { in update_vertex_elements() 854 DBG("looking up input %u (usage %u) from vdecl(%p)\n", in update_vertex_elements() 855 n, vs->input_map[n].ndecl, vdecl); in update_vertex_elements() 857 for (i = 0; i < vdecl->nelems; i++) { in update_vertex_elements() 858 if (vdecl->usage_map[i] == vs->input_map[n].ndecl) { in update_vertex_elements() 860 used_streams |= BITFIELD_BIT(vdecl->elems[i].vertex_buffer_index); in update_vertex_elements() 886 ve.velems[n] = vdecl->elems[index]; in update_vertex_elements() 1641 ARG_BIND_REF(struct NineVertexDeclaration9, vdecl)) in CSMT_ITEM_NO_WAIT() 3046 const struct NineVertexDeclaration9 *vdecl = device->state.vdecl; update_vertex_elements_sw() local [all...] |
H A D | nine_state.h | 205 struct NineVertexDeclaration9 *vdecl; member 274 struct NineVertexDeclaration9 *vdecl; member 279 uint32_t stream_usage_mask; /* derived from VS and vdecl */ 407 struct NineVertexDeclaration9 *vdecl);
|
H A D | vertexshader9.c | 150 while (var_so && var_so->vdecl) { in NineVertexShader9_dtor()
|
H A D | nine_ff.c | 1591 if (context->vdecl) { in nine_ff_get_vs() 1594 for (i = 0; i < context->vdecl->nelems; i++) { in nine_ff_get_vs() 1595 uint16_t usage = context->vdecl->usage_map[i]; in nine_ff_get_vs() 1616 input_texture_coord[s] = nine_decltype_get_dim(context->vdecl->decls[i].Type); in nine_ff_get_vs()
|