Lines Matching refs:hdr
236 struct pgm_header *hdr;
393 for (i = 0; i < state->hdr->num_varyings; i++) {
396 for (i = 0; i < state->hdr->num_attribs; i++) {
399 for (i = 0; i < state->hdr->num_uniforms; i++) {
402 for (i = 0; i < state->hdr->num_samplers; i++) {
555 if (state->hdr->revision >= 0xb)
557 else if (state->hdr->revision >= 7)
604 if (state->hdr->revision >= 7) {
632 if (state->hdr->revision >= 0xb)
634 else if (state->hdr->revision >= 8)
636 else if (state->hdr->revision == 7)
685 if (state->hdr->revision >= 7) {
706 state->hdr = next_sect(state, §_size);
709 printf("\tsize: %d\n", state->hdr->size);
710 printf("\trevision: %d\n", state->hdr->revision);
711 printf("\tattributes: %d\n", state->hdr->num_attribs);
712 printf("\tuniforms: %d\n", state->hdr->num_uniforms);
713 printf("\tsamplers: %d\n", state->hdr->num_samplers);
714 printf("\tvaryings: %d\n", state->hdr->num_varyings);
715 printf("\tuniform blocks: %d\n", state->hdr->num_uniformblocks);
717 dump_hex((void *)state->hdr, sect_size);
728 for (i = 0; (i < state->hdr->num_attribs) && (state->sz > 0); i++) {
747 for (i = 0; (i < state->hdr->num_uniforms) && (state->sz > 0); i++) {
771 for (i = 0; (i < state->hdr->num_samplers) && (state->sz > 0); i++) {
792 if (state->hdr->revision >= 7) {
793 for (i = 0; (i < state->hdr->num_samplers) && (state->sz > 0); i++) {
799 for (i = 0; (i < state->hdr->num_varyings) && (state->sz > 0); i++) {
819 if (state->hdr->revision >= 14) {
820 for (i = 0; (i < state->hdr->num_varyings) && (state->sz > 0); i++) {
829 if (state->hdr->revision >= 7) {
841 for (i = 0; (i < state->hdr->num_uniformblocks) && (state->sz > 0); i++) {
922 if (state->hdr->num_uniformblocks > 0)