i965/gs: Don't assign gl_Layer its own slot in the VUE map.
authorPaul Berry <stereotype441@gmail.com>
Tue, 3 Sep 2013 20:57:35 +0000 (13:57 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 5 Sep 2013 16:52:20 +0000 (09:52 -0700)
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_vs.c

index b81a53856a0e198a93eac9bd584dcd9a308fd060..7c7493f96325e3eb15267af1d4510d5d560c1df4 100644 (file)
@@ -64,6 +64,11 @@ brw_compute_vue_map(struct brw_context *brw, struct brw_vue_map *vue_map,
    vue_map->slots_valid = slots_valid;
    int i;
 
+   /* gl_Layer doesn't get its own varying slot--it's stored in the virst VUE
+    * slot (VARYING_SLOT_PSIZ).
+    */
+   slots_valid &= ~VARYING_BIT_LAYER;
+
    /* Make sure that the values we store in vue_map->varying_to_slot and
     * vue_map->slot_to_varying won't overflow the signed chars that are used
     * to store them.  Note that since vue_map->slot_to_varying sometimes holds