<div class="gmail_quote">On Wed, Dec 21, 2011 at 16:46, Daniel Vetter <span dir="ltr"><<a href="mailto:daniel@ffwll.ch">daniel@ffwll.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Wed, Dec 21, 2011 at 10:09:30AM -0800, Eric Anholt wrote:<br>
> I was once again embarassed while explaining to either Ken or Paul<br>
> about how we handle reusing the intel_decode.c file in two trees.<br>
> Here's my attempt at a solution to the problem: Move the code into<br>
> libdrm, and try to give it an API that we won't have to continually<br>
> rev as we throw the kitchen sink into the intel_decode() function<br>
> arguments.<br>
><br>
> One of the things I'm interested in is doing a version that directly<br>
> pokes at BOs instead of just a pointer, which would let us decode<br>
> associated blocks as we see the various state pointers to them.<br>
> There's also room for some interesting validation in that case.<br>
><br>
> Further patches (mostly fixing up style) are in my libdrm tree on the<br>
> intel-decode branch.  I've tested it with Mesa on gen7 (I have further<br>
> code to land to make gen7 decode more reasonable).<br>
<br>
</div>I've only done a high-level cruise review of this series, but this is<br>
awesome (and has been sitting on my todo list for way to long).<br>
<br>
Very-Much-Acked-by: Daniel Vetter <<a href="mailto:daniel.vetter@ffwll.ch">daniel.vetter@ffwll.ch</a>><br></blockquote><div><br>Yeah, I agree with Daniel - I'll be very happy to have this in libdrm. Thanks a lot! <br>

</div></div><br>-- <br>Eugeni Dodonov<a href="http://eugeni.dodonov.net/" target="_blank"><br></a><br>