<div dir="auto">Tes too, right? Also does the logic that forces recompiles work ok? I seem to recall it was tied to vs.</div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jun 30, 2018, 10:18 Karol Herbst <<a href="mailto:kherbst@redhat.com">kherbst@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">this will be needed for compatibility profiles<br>
<br>
Signed-off-by: Karol Herbst <<a href="mailto:kherbst@redhat.com" target="_blank" rel="noreferrer">kherbst@redhat.com</a>><br>
---<br>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 5 ++++-<br>
1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp<br>
index c92acc996c4..1151e0ee255 100644<br>
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp<br>
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp<br>
@@ -3613,6 +3613,9 @@ Converter::handleInstruction(const struct tgsi_full_instruction *insn)<br>
info->out[info->io.viewportId].slot[0] * 4);<br>
mkStore(OP_EXPORT, TYPE_U32, vpSym, NULL, viewport);<br>
}<br>
+ /* handle user clip planes for each emitted vertex */<br>
+ if (info->io.genUserClip > 0)<br>
+ handleUserClipPlanes();<br>
/* fallthrough */<br>
case TGSI_OPCODE_ENDPRIM:<br>
{<br>
@@ -3787,7 +3790,7 @@ Converter::handleInstruction(const struct tgsi_full_instruction *insn)<br>
setPosition(epilogue, true);<br>
if (prog->getType() == Program::TYPE_FRAGMENT)<br>
exportOutputs();<br>
- if (info->io.genUserClip > 0)<br>
+ if (prog->getType() == Program::TYPE_VERTEX && info->io.genUserClip > 0)<br>
handleUserClipPlanes();<br>
mkOp(OP_EXIT, TYPE_NONE, NULL)->terminator = 1;<br>
}<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank" rel="noreferrer">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>