<div dir="auto">Thank you! I've been meaning to do this. That said, I think we need something in cmd_state_reset as well.</div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 27, 2017 5:22 PM, "Nanley Chery" <<a href="mailto:nanleychery@gmail.com">nanleychery@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
---<br>
src/intel/vulkan/genX_cmd_<wbr>buffer.c | 7 +++++++<br>
1 file changed, 7 insertions(+)<br>
<br>
diff --git a/src/intel/vulkan/genX_cmd_<wbr>buffer.c b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
index 1c31082136..b5eda3a13d 100644<br>
--- a/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
+++ b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
@@ -2438,4 +2438,11 @@ void genX(CmdEndRenderPass)(<br>
#ifndef NDEBUG<br>
anv_dump_add_framebuffer(cmd_<wbr>buffer, cmd_buffer->state.framebuffer)<wbr>;<br>
#endif<br>
+<br>
+ /* Remove references to render pass specific state. This enables us to<br>
+ * detect whether or not we're in a renderpass.<br>
+ */<br>
+ cmd_buffer->state.framebuffer = NULL;<br>
+ cmd_buffer->state.pass = NULL;<br>
+ cmd_buffer->state.subpass = NULL;<br>
}<br>
--<br>
2.11.1<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>