[Intel-gfx] [RFC] drm/i915: context support unit test-r2

Ben Widawsky bwidawsk at gmail.com
Tue Jan 25 01:18:02 CET 2011


Another update to the unit test which shows resubmission of the context
on failure. This was brought up by Daniel Vetter. The first version of
context support will require the client to resubmit context if any of
the buffers associated with the context have moved.

Use case works like this
term1> ./gem_ctx_basic #start test, blit and setup context
term2> sudo ./gem_fill #fill up the GTT
term1> <enter>  #run the contexted blit, which will fail since context
>------->-------#buffers have been evicted
term2> <enter>  #remove all crap from gtt
term1> <enter>  # try blit again restoring context

Any comments are welcome.
Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gem_ctx_basic.c
Type: text/x-c
Size: 5567 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110124/1a86116d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gem_fill.c
Type: text/x-c
Size: 2773 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110124/1a86116d/attachment-0001.bin>


More information about the Intel-gfx mailing list