The documentation uses the term "vertex URB entries", the code talks
about "entry size", and so on. Also, handles are just "pointers" to
entries (actually small integers).
Also rename max_gs_handles to max_gs_entries.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
brw->wm_max_threads = 40;
brw->vs_max_threads = 60;
brw->urb.size = 64; /* volume 5c.5 section 5.1 */
- brw->urb.max_vs_handles = 128; /* volume 2a (see 3DSTATE_URB) */
+ brw->urb.max_vs_entries = 128; /* volume 2a (see 3DSTATE_URB) */
} else {
brw->wm_max_threads = 40;
brw->vs_max_threads = 24;
brw->urb.size = 32; /* volume 5c.5 section 5.1 */
- brw->urb.max_vs_handles = 256; /* volume 2a (see 3DSTATE_URB) */
+ brw->urb.max_vs_entries = 256; /* volume 2a (see 3DSTATE_URB) */
}
} else if (intel->gen == 5) {
brw->urb.size = 1024;
GLboolean constrained;
- GLuint max_vs_handles; /* Maximum number of VS handles */
- GLuint max_gs_handles; /* Maximum number of GS handles */
+ GLuint max_vs_entries; /* Maximum number of VS entries */
+ GLuint max_gs_entries; /* Maximum number of GS entries */
GLuint nr_vs_entries;
GLuint nr_gs_entries;
/* Calculate how many VS URB entries fit in the total URB size */
nr_vs_entries = (brw->urb.size * 1024) / (brw->urb.vs_size * 128);
- if (nr_vs_entries > brw->urb.max_vs_handles)
- nr_vs_entries = brw->urb.max_vs_handles;
+ if (nr_vs_entries > brw->urb.max_vs_entries)
+ nr_vs_entries = brw->urb.max_vs_entries;
/* According to volume 2a, nr_vs_entries must be a multiple of 4. */
brw->urb.nr_vs_entries = ROUND_DOWN_TO(nr_vs_entries, 4);