[PATCH] tests: Make it easy to tell if rendercopy is doing the right thing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 27, 2013 at 06:28:07PM +0000, Damien Lespiau wrote:
> When dumping an .aub file, gem_render_linear_blit samples a texture to
> write it in a render target 1:1.
> 
> When enabling new platforms, it's really handy to be able to see if you
> are actually rendering to the target which is hard to see currently as
> all the buffers are initialized with incrementing numbers and look very
> much alike.
> 
> So, when dumping an .aub file for inspection, let's fill the destination
> buffer with a constant color (0xff0000ff) and dump both src and dest bos
> into bmp files.

Just create a new target that just does this extremely simple operation.
Arbtrarily reusing gem_render_linear_blits and making it perform
differently under tracing is going to a source of major confusion later.

Something like gem_render_copy and a note in the README about how you
use it during bringup.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux