Lines Matching refs:velems

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()
517 velems->fsState.layout[i].ComponentControl0 = in swr_create_vertex_elements_state()
521 velems->fsState.layout[i].ComponentControl1 = in swr_create_vertex_elements_state()
525 velems->fsState.layout[i].ComponentControl2 = in swr_create_vertex_elements_state()
529 velems->fsState.layout[i].ComponentControl3 = in swr_create_vertex_elements_state()
533 velems->fsState.layout[i].ComponentPacking = ComponentEnable::XYZW; in swr_create_vertex_elements_state()
534 velems->fsState.layout[i].InstanceAdvancementState = in swr_create_vertex_elements_state()
540 velems->stream_pitch[attribs[i].vertex_buffer_index] += swr_desc.Bpp; in swr_create_vertex_elements_state()
543 velems->instanced_bufs |= 1U << attribs[i].vertex_buffer_index; in swr_create_vertex_elements_state()
545 &velems->min_instance_div[attribs[i].vertex_buffer_index]; in swr_create_vertex_elements_state()
553 return velems; in swr_create_vertex_elements_state()
557 swr_bind_vertex_elements_state(struct pipe_context *pipe, void *velems) in swr_bind_vertex_elements_state() argument
561 (struct swr_vertex_element_state *)velems; in swr_bind_vertex_elements_state()
563 ctx->velems = swr_velems; in swr_bind_vertex_elements_state()
568 swr_delete_vertex_elements_state(struct pipe_context *pipe, void *velems) in swr_delete_vertex_elements_state() argument
571 (struct swr_vertex_element_state *) velems; in swr_delete_vertex_elements_state()
999 const struct swr_vertex_element_state *velems, in swr_user_vbuf_range() argument
1008 if (velems->instanced_bufs & (1U << i)) { in swr_user_vbuf_range()
1009 elems = info->instance_count / velems->min_instance_div[i] + 1; in swr_user_vbuf_range()
1021 *size = velems->stream_pitch[i]; in swr_user_vbuf_range()
1284 size = ctx->velems->stream_pitch[i]; in swr_update_derived()
1305 swr_user_vbuf_range(&info, ctx->velems, vb, i, &elems, &base, &size); in swr_update_derived()
1384 struct swr_vertex_element_state *velems = ctx->velems; in swr_update_derived() local
1385 if (velems && velems->fsState.indexType != index_type) { in swr_update_derived()
1386 velems->fsFunc = NULL; in swr_update_derived()
1387 velems->fsState.indexType = index_type; in swr_update_derived()