<div dir="ltr">On 30 July 2013 14:06, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Jul 31, 2013 at 8:53 AM, Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>> wrote:<br>
>Can you point me to some VS code that does this? I thought that if the VS wrote only to gl_BackColor, then the VUE map would only contain a slot for gl_BackColor.<br>
<br>
</div>The VS now does this:<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<br>
brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c<br>
index 60b40c5..5b8173d 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_vs.c<br>
+++ b/src/mesa/drivers/dri/i965/brw_vs.c<br>
@@ -277,6 +277,12 @@ do_vs_prog(struct brw_context *brw,<br>
if (c.key.point_coord_replace & (1 << i))<br>
outputs_written |= BITFIELD64_BIT(VARYING_SLOT_TEX0 + i);<br>
}<br>
+<br>
+ /* if back colors are written, allocate slots for front colors too */<br>
+ if (outputs_written & BITFIELD64_BIT(VARYING_SLOT_BFC0))<br>
+ outputs_written |= BITFIELD64_BIT(VARYING_SLOT_COL0);<br>
+ if (outputs_written & BITFIELD64_BIT(VARYING_SLOT_BFC1))<br>
+ outputs_written |= BITFIELD64_BIT(VARYING_SLOT_COL1);<br>
}<br>
<br>
brw_compute_vue_map(brw, &prog_data.base.vue_map, outputs_written,<br>
</blockquote></div><br></div><div class="gmail_extra">Aha! That's what I was missing, thanks.<br></div></div>