OSDN Git Service

i965: Initialize "separate" flag in VUE maps.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 6 Dec 2016 10:43:07 +0000 (02:43 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Dec 2016 06:14:58 +0000 (22:14 -0800)
This was uninitialized, which resulted in weird looking printouts where
it appeared that the TCS output and TES input patch URB entries differed
in SSO/non-SSO layout.  There is no "separable" layout for both, as
they're tied together.

It should have no other actual effect.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vue_map.c

index 4d509d3..982a31f 100644 (file)
@@ -205,6 +205,9 @@ brw_compute_tess_vue_map(struct brw_vue_map *vue_map,
    /* I don't think anything actually uses this... */
    vue_map->slots_valid = vertex_slots;
 
+   /* separate isn't really meaningful, but make sure it's initialized */
+   vue_map->separate = false;
+
    vertex_slots &= ~(VARYING_BIT_TESS_LEVEL_OUTER |
                      VARYING_BIT_TESS_LEVEL_INNER);