Home | History | Annotate | Download | only in core

Lines Matching refs:vf

131 vf_set_gen6_3DSTATE_VERTEX_ELEMENTS(struct ilo_state_vf *vf,
172 STATIC_ASSERT(ARRAY_SIZE(vf->user_ve[i]) >= 2);
173 vf->user_ve[i][0] = dw0;
174 vf->user_ve[i][1] = dw1;
177 vf->user_ve_count = i;
179 vf->edge_flag_supported = (i && get_gen6_edge_flag_format(dev,
181 if (vf->edge_flag_supported) {
185 vf->last_user_ve[0][0] = dw0;
186 vf->last_user_ve[0][1] = dw1;
207 vf->last_user_ve[1][0] = dw0;
208 vf->last_user_ve[1][1] = dw1;
215 vf_set_gen6_vertex_buffer_state(struct ilo_state_vf *vf,
223 memset(vf->vb_to_first_elem, -1, sizeof(vf->vb_to_first_elem));
228 STATIC_ASSERT(ARRAY_SIZE(vf->user_instancing[i]) >= 2);
230 vf->user_instancing[i][0] = (elem->instancing_enable) ?
233 vf->user_instancing[i][1] = elem->instancing_step_rate;
239 if (vf->vb_to_first_elem[elem->buffer] < 0) {
240 vf->vb_to_first_elem[elem->buffer] = i;
243 &info->elements[vf->vb_to_first_elem[elem->buffer]];
254 vf_set_gen8_3DSTATE_VF_INSTANCING(struct ilo_state_vf *vf,
265 STATIC_ASSERT(ARRAY_SIZE(vf->user_instancing[i]) >= 2);
266 vf->user_instancing[i][0] = (elem->instancing_enable) ?
268 vf->user_instancing[i][1] = elem->instancing_step_rate;
300 vf_params_set_gen6_internal_ve(struct ilo_state_vf *vf,
348 STATIC_ASSERT(ARRAY_SIZE(vf->internal_ve[i]) >= 2);
349 vf->internal_ve[i][0] = GEN6_VE_DW0_VALID;
350 vf->internal_ve[i][1] = dw1[i];
353 vf->internal_ve_count = internal_ve_count;
359 vf_params_set_gen8_3DSTATE_VF_SGVS(struct ilo_state_vf *vf,
382 STATIC_ASSERT(ARRAY_SIZE(vf->sgvs) >= 1);
383 vf->sgvs[0] = dw1;
432 vf_params_set_gen6_3dstate_index_buffer(struct ilo_state_vf *vf,
449 STATIC_ASSERT(ARRAY_SIZE(vf->cut) >= 1);
450 vf->cut[0] = dw0;
456 vf_params_set_gen75_3DSTATE_VF(struct ilo_state_vf *vf,
469 STATIC_ASSERT(ARRAY_SIZE(vf->cut) >= 2);
470 vf->cut[0] = dw0;
471 vf->cut[1] = params->cut_index;
770 ilo_state_vf_init(struct ilo_state_vf *vf,
776 assert(ilo_is_zeroed(vf, sizeof(*vf)));
781 vf->user_ve = (uint32_t (*)[2]) info->data;
782 vf->user_instancing =
783 (uint32_t (*)[2]) (vf->user_ve + info->element_count);
785 ret &= vf_set_gen6_3DSTATE_VERTEX_ELEMENTS(vf, dev, info);
788 ret &= vf_set_gen8_3DSTATE_VF_INSTANCING(vf, dev, info);
790 ret &= vf_set_gen6_vertex_buffer_state(vf, dev, info);
792 ret &= ilo_state_vf_set_params(vf, dev, &info->params);
800 ilo_state_vf_init_for_rectlist(struct ilo_state_vf *vf,
826 return ilo_state_vf_init(vf, dev, &info);
830 ilo_state_vf_set_params(struct ilo_state_vf *vf,
838 ret &= vf_params_set_gen6_internal_ve(vf, dev, params, vf->user_ve_count);
840 ret &= vf_params_set_gen8_3DSTATE_VF_SGVS(vf, dev, params);
856 * prior to submission to the 3D vf."
865 assert(vf->edge_flag_supported);
870 if (vf->edge_flag_supported) {
871 assert(vf->user_ve_count);
872 memcpy(vf->user_ve[vf->user_ve_count - 1],
873 vf->last_user_ve[params->last_element_edge_flag],
874 sizeof(vf->user_ve[vf->user_ve_count - 1]));
878 ret &= vf_params_set_gen75_3DSTATE_VF(vf, dev, params);
880 ret &= vf_params_set_gen6_3dstate_index_buffer(vf, dev, params);
888 ilo_state_vf_full_delta(const struct ilo_state_vf *vf,
908 ilo_state_vf_get_delta(const struct ilo_state_vf *vf,
914 assert(vf->user_ve != old->user_ve &&
915 vf->user_instancing != old->user_instancing);
919 if (vf->internal_ve_count != old->internal_ve_count ||
920 vf->user_ve_count != old->user_ve_count ||
921 memcmp(vf->internal_ve, old->internal_ve,
922 sizeof(vf->internal_ve[0]) * vf->internal_ve_count) ||
923 memcmp(vf->user_ve, old->user_ve,
924 sizeof(vf->user_ve[0]) * vf->user_ve_count))
927 if (vf->user_ve_count != old->user_ve_count ||
928 memcmp(vf->user_instancing, old->user_instancing,
929 sizeof(vf->user_instancing[0]) * vf->user_ve_count)) {
937 if (vf->sgvs[0] != old->sgvs[0])
942 if (memcmp(vf->cut, old->cut, sizeof(vf->cut)))
945 if (vf->cut[0] != old->cut[0])