summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vue_map.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-09-09 20:21:59 -0700
committerKenneth Graunke <kenneth@whitecape.org>2015-09-26 11:59:56 -0700
commit268008f98c3810b9f276df985dc93efc0c49f33e (patch)
treedc77667bfc06e1d97d08bbdc2904de99fd375228 /src/mesa/drivers/dri/i965/brw_vue_map.c
parent39d4b553a87228fd93bfdd7100d0687e55aec4b7 (diff)
downloadexternal_mesa3d-268008f98c3810b9f276df985dc93efc0c49f33e.zip
external_mesa3d-268008f98c3810b9f276df985dc93efc0c49f33e.tar.gz
external_mesa3d-268008f98c3810b9f276df985dc93efc0c49f33e.tar.bz2
i965: Initialize unused VUE map slots to BRW_VARYING_SLOT_PAD.
Nothing actually relies on unused slots being initialized to BRW_VARYING_SLOT_COUNT. Soon, we're going to have VUE maps with holes in them, at which point pre-filling with BRW_VARYING_SLOT_PAD make a lot more sense. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vue_map.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vue_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vue_map.c b/src/mesa/drivers/dri/i965/brw_vue_map.c
index 7687578..9d828289 100644
--- a/src/mesa/drivers/dri/i965/brw_vue_map.c
+++ b/src/mesa/drivers/dri/i965/brw_vue_map.c
@@ -80,7 +80,7 @@ brw_compute_vue_map(const struct brw_device_info *devinfo,
vue_map->num_slots = 0;
for (i = 0; i < BRW_VARYING_SLOT_COUNT; ++i) {
vue_map->varying_to_slot[i] = -1;
- vue_map->slot_to_varying[i] = BRW_VARYING_SLOT_COUNT;
+ vue_map->slot_to_varying[i] = BRW_VARYING_SLOT_PAD;
}
/* VUE header: format depends on chip generation and whether clipping is