[Mesa-dev] [PATCH 2/6] i965: Initialize unused VUE map slots to BRW_VARYING_SLOT_PAD.
Kenneth Graunke
kenneth at whitecape.org
Fri Sep 11 23:58:46 PDT 2015
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 at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_vue_map.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.5.1
More information about the mesa-dev
mailing list