<div dir="ltr">On 15 July 2013 17:14, Jordan Justen <span dir="ltr"><<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We now also need to stop setting the FORCE_ZERO_RTAINDEX bit<br>
in the clip date so render target array values other than zero<br></blockquote><div><br></div><div>Do you mean "clip state"?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
can be used.<br>
<br>
Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br>
---<br>
src/mesa/drivers/dri/i965/gen7_clip_state.c | 3 +--<br>
1 file changed, 1 insertion(+), 2 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/gen7_clip_state.c b/src/mesa/drivers/dri/i965/gen7_clip_state.c<br>
index 36a793c..e0ed882 100644<br>
--- a/src/mesa/drivers/dri/i965/gen7_clip_state.c<br>
+++ b/src/mesa/drivers/dri/i965/gen7_clip_state.c<br>
@@ -117,8 +117,7 @@ upload_clip_state(struct brw_context *brw)<br>
GEN6_CLIP_XY_TEST |<br>
dw2);<br>
OUT_BATCH(U_FIXED(0.125, 3) << GEN6_CLIP_MIN_POINT_WIDTH_SHIFT |<br>
- U_FIXED(255.875, 3) << GEN6_CLIP_MAX_POINT_WIDTH_SHIFT |<br>
- GEN6_CLIP_FORCE_ZERO_RTAINDEX);<br>
+ U_FIXED(255.875, 3) << GEN6_CLIP_MAX_POINT_WIDTH_SHIFT);<br></blockquote><div><br></div><div>What happens if a shader is in use that writes to gl_Layer, but the current framebuffer is not layered?<br>
<br>According to the AMD_vertex_shader_layer spec, "A layer number written by a vertex or geometry shader has no effect if the framebuffer is not layered." There's similar language in the ARB_geometry_shader4 and GL 3.2 specs.<br>
<br>It looks to me like in order to achieve that, we need to set GEN6_CLIP_FORCE_ZERO_RTAINDEX whenever rendering to a non-layered framebuffer.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
ADVANCE_BATCH();<br>
}<br>
<span class=""><font color="#888888"><br>
--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>