Home
last modified time | relevance | path

Searched refs:tfb (Results 1 – 4 of 4) sorted by relevance

/external/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_shader_state.c215 struct nvc0_transform_feedback_state *tfb; in nvc0_tfb_validate() local
218 if (nvc0->gmtyprog) tfb = nvc0->gmtyprog->tfb; in nvc0_tfb_validate()
220 if (nvc0->tevlprog) tfb = nvc0->tevlprog->tfb; in nvc0_tfb_validate()
222 tfb = nvc0->vertprog->tfb; in nvc0_tfb_validate()
224 IMMED_NVC0(push, NVC0_3D(TFB_ENABLE), (tfb && nvc0->num_tfbbufs) ? 1 : 0); in nvc0_tfb_validate()
226 if (tfb && tfb != nvc0->state.tfb) { in nvc0_tfb_validate()
228 if (tfb->varying_count[b]) { in nvc0_tfb_validate()
229 unsigned n = (tfb->varying_count[b] + 3) / 4; in nvc0_tfb_validate()
233 PUSH_DATA (push, tfb->varying_count[b]); in nvc0_tfb_validate()
234 PUSH_DATA (push, tfb->stride[b]); in nvc0_tfb_validate()
[all …]
Dnvc0_program.c494 struct nvc0_transform_feedback_state *tfb; in nvc0_program_create_tfb_state() local
497 tfb = MALLOC_STRUCT(nvc0_transform_feedback_state); in nvc0_program_create_tfb_state()
498 if (!tfb) in nvc0_program_create_tfb_state()
501 tfb->stride[b] = pso->stride[b] * 4; in nvc0_program_create_tfb_state()
502 tfb->varying_count[b] = 0; in nvc0_program_create_tfb_state()
504 memset(tfb->varying_index, 0xff, sizeof(tfb->varying_index)); /* = skip */ in nvc0_program_create_tfb_state()
512 tfb->varying_index[b][p++] = in nvc0_program_create_tfb_state()
515 tfb->varying_count[b] = MAX2(tfb->varying_count[b], p); in nvc0_program_create_tfb_state()
518 for (c = tfb->varying_count[b]; c & 3; ++c) in nvc0_program_create_tfb_state()
519 tfb->varying_index[b][c] = 0; in nvc0_program_create_tfb_state()
[all …]
Dnvc0_program.h56 struct nvc0_transform_feedback_state *tfb; member
Dnvc0_context.h110 struct nvc0_transform_feedback_state *tfb; member