~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/r300/r300_shader_semantics.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define ATTR_UNUSED             (-1)
27
27
#define ATTR_COLOR_COUNT        2
28
28
#define ATTR_GENERIC_COUNT      32
 
29
#define ATTR_TEXCOORD_COUNT     8
29
30
 
30
31
/* This structure contains information about what attributes are written by VS
31
32
 * or read by FS. (but not both) It's much easier to work with than
39
40
    int color[ATTR_COLOR_COUNT];
40
41
    int bcolor[ATTR_COLOR_COUNT];
41
42
    int face;
 
43
    int texcoord[ATTR_TEXCOORD_COUNT];
42
44
    int generic[ATTR_GENERIC_COUNT];
43
45
    int fog;
44
46
    int wpos;
 
47
    int pcoord;
45
48
 
 
49
    int num_texcoord;
46
50
    int num_generic;
47
51
};
48
52
 
56
60
    info->face = ATTR_UNUSED;
57
61
    info->fog = ATTR_UNUSED;
58
62
    info->wpos = ATTR_UNUSED;
 
63
    info->pcoord = ATTR_UNUSED;
59
64
 
60
65
    for (i = 0; i < ATTR_COLOR_COUNT; i++) {
61
66
        info->color[i] = ATTR_UNUSED;
62
67
        info->bcolor[i] = ATTR_UNUSED;
63
68
    }
64
69
 
 
70
    for (i = 0; i < ATTR_TEXCOORD_COUNT; i++) {
 
71
        info->texcoord[i] = ATTR_UNUSED;
 
72
    }
 
73
 
65
74
    for (i = 0; i < ATTR_GENERIC_COUNT; i++) {
66
75
        info->generic[i] = ATTR_UNUSED;
67
76
    }
68
77
 
 
78
    info->num_texcoord = 0;
69
79
    info->num_generic = 0;
70
80
}
71
81