Lines Matching refs:velems
595 struct swr_vertex_element_state *velems; in swr_create_vertex_elements_state() local
597 velems = new swr_vertex_element_state; in swr_create_vertex_elements_state()
598 if (velems) { in swr_create_vertex_elements_state()
599 memset((void*)&velems->fsState, 0, sizeof(velems->fsState)); in swr_create_vertex_elements_state()
600 velems->fsState.bVertexIDOffsetEnable = true; in swr_create_vertex_elements_state()
601 velems->fsState.numAttribs = num_elements; in swr_create_vertex_elements_state()
608 velems->fsState.layout[i].AlignedByteOffset = attribs[i].src_offset; in swr_create_vertex_elements_state()
609 velems->fsState.layout[i].Format = in swr_create_vertex_elements_state()
611 velems->fsState.layout[i].StreamIndex = in swr_create_vertex_elements_state()
613 velems->fsState.layout[i].InstanceEnable = in swr_create_vertex_elements_state()
615 velems->fsState.layout[i].ComponentControl0 = in swr_create_vertex_elements_state()
619 velems->fsState.layout[i].ComponentControl1 = in swr_create_vertex_elements_state()
623 velems->fsState.layout[i].ComponentControl2 = in swr_create_vertex_elements_state()
627 velems->fsState.layout[i].ComponentControl3 = in swr_create_vertex_elements_state()
631 velems->fsState.layout[i].ComponentPacking = ComponentEnable::XYZW; in swr_create_vertex_elements_state()
632 velems->fsState.layout[i].InstanceAdvancementState = in swr_create_vertex_elements_state()
638 velems->stream_pitch[attribs[i].vertex_buffer_index] += swr_desc.Bpp; in swr_create_vertex_elements_state()
641 velems->instanced_bufs |= 1U << attribs[i].vertex_buffer_index; in swr_create_vertex_elements_state()
643 &velems->min_instance_div[attribs[i].vertex_buffer_index]; in swr_create_vertex_elements_state()
651 return velems; in swr_create_vertex_elements_state()
655 swr_bind_vertex_elements_state(struct pipe_context *pipe, void *velems) in swr_bind_vertex_elements_state() argument
659 (struct swr_vertex_element_state *)velems; in swr_bind_vertex_elements_state()
661 ctx->velems = swr_velems; in swr_bind_vertex_elements_state()
666 swr_delete_vertex_elements_state(struct pipe_context *pipe, void *velems) in swr_delete_vertex_elements_state() argument
669 (struct swr_vertex_element_state *) velems; in swr_delete_vertex_elements_state()
1118 const struct swr_vertex_element_state *velems, in swr_user_vbuf_range() argument
1128 unsigned elem_pitch = vb->stride + velems->stream_pitch[i]; in swr_user_vbuf_range()
1129 if (velems->instanced_bufs & (1U << i)) { in swr_user_vbuf_range()
1130 elems = info->instance_count / velems->min_instance_div[i] + 1; in swr_user_vbuf_range()
1142 *size = velems->stream_pitch[i]; in swr_user_vbuf_range()
1441 swr_user_vbuf_range(&info, ctx->velems, vb, i, &elems, &base, &size, draw->index_bias); in swr_update_derived()
1466 size = ctx->velems->stream_pitch[i]; in swr_update_derived()
1545 struct swr_vertex_element_state *velems = ctx->velems; in swr_update_derived() local
1546 if (velems && velems->fsState.indexType != index_type) { in swr_update_derived()
1547 velems->fsFunc = NULL; in swr_update_derived()
1548 velems->fsState.indexType = index_type; in swr_update_derived()