<div class="gmail_quote">On Tue, May 25, 2010 at 9:51 AM, Jerome Glisse <span dir="ltr">&lt;<a href="mailto:glisse@freedesktop.org">glisse@freedesktop.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On Tue, May 25, 2010 at 12:35:45AM +0200, Bas Nieuwenhuizen wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I wrote two patches that fix various things to get r600g running on my<br>
&gt; computer and to get r600_clear and depthtesting working.<br>
&gt;<br>
&gt; I wrote them starting from Marek&#39;s r600g branch.<br>
&gt;<br>
&gt; Feel free to criticize as this is my first contribution to a large<br>
&gt; project.<br>
&gt;<br>
&gt; - Bas Nieuwenhuizen<br>
&gt;<br>
&gt; patches:<br>
&gt; <a href="http://www.basnieuwenhuizen.nl/0001-r600g-various-fixes.patch" target="_blank">http://www.basnieuwenhuizen.nl/0001-r600g-various-fixes.patch</a><br>
<br>
</div>I don&#39;t think change to r600_texture_destroy is right, why did you<br>
remove the unreference there ?<br></blockquote><div><br>pipe_resource_reference calls resource_destroy (that is r600_texture_destroy here) if the reference counter is zero. Using pipe_resource_reference in the destroy function itself seems rather pointless and I think it&#39;s even undefined.<br>

</div></div><br>-Marek<br>