[Intel-gfx] functionality case for GL_APPLE_object_purgeable

Shuang He shuang.he at intel.com
Mon Feb 1 13:38:42 CET 2010


Hi, Chris
     I have come out a simple and loose criteria for it. It's simply 
that "the lighter memory stress, the bigger object retain rate".
     The piglit case is attached for review. According to the testing 
result of this case, it's working well.

     Also do you have plan or comment on test cases I sent out, or for 
those bugs I reported for this feature?
26126 <https://bugs.freedesktop.org/show_bug.cgi?id=26126> 	nor 	med 
chris at chris-wilson.co.uk 	NEW 	
	Linu 	
	[APPLE_object_purgeable] is not working with VBO
26127 <https://bugs.freedesktop.org/show_bug.cgi?id=26127> 	nor 	med 
chris at chris-wilson.co.uk 	NEW 	
	Linu 	
	[APPLE_object_purgeable] is not working with PBO
26128 <https://bugs.freedesktop.org/show_bug.cgi?id=26128> 	nor 	med 
chris at chris-wilson.co.uk 	NEW 	
	Linu 	
	[APPLE_object_purgeable] Purgeable(VOLATILE) should always return VOLATILE
26129 <https://bugs.freedesktop.org/show_bug.cgi?id=26129> 	nor 	med 
chris at chris-wilson.co.uk 	NEW 	
	Linu 	
	[APPLE_object_purgeable] error should be generated when 
purgeable/unpurgeable called between Begin()/End()


     The test case for performance testing is still under design.

     And Following is the output from this piglit case.
[root at moblin-desktop piglit]# bin/object_purgeable-texture -auto
Start test with 10% percent memory stress
    Available free memory: 762818560 Bytes
    Available free memory after creating objects and marking as 
purgeable: 654897152 Bytes
    76234752 bytes, 1551 texture objects created:
    Available free memory after marking as unpurgeable: 654897152 Bytes
    after mark objects to purgeable:
    1551 texture objects stay volatile
    0 texture objects get released
    after mark objects to unpurgeable:
    1551 texture objects get retained
    0 texture objects get undefined
    100.000000% objects get retained
Start test with 50% percent memory stress
    Available free memory: 654897152 Bytes
    Available free memory after creating objects and marking as 
purgeable: 306110464 Bytes
    327401472 bytes, 6661 texture objects created:
    Available free memory after marking as unpurgeable: 306110464 Bytes
    after mark objects to purgeable:
    6661 texture objects stay volatile
    0 texture objects get released
    after mark objects to unpurgeable:
    2057 texture objects get retained
    4604 texture objects get undefined
    30.881250% objects get retained
Start test with 150% percent memory stress
    Available free memory: 612438016 Bytes
    Available free memory after creating objects and marking as 
purgeable: 11595776 Bytes
    918650880 bytes, 18690 texture objects created:
    Available free memory after marking as unpurgeable: 14405632 Bytes
    after mark objects to purgeable:
    18690 texture objects stay volatile
    0 texture objects get released
    after mark objects to unpurgeable:
    2057 texture objects get retained
    16633 texture objects get undefined
    11.005885% objects get retained
PIGLIT: {'result': 'pass' }

Thanks
     --Shuang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20100201/abedf171/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: object_purgeable-texture.c
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20100201/abedf171/attachment.c>


More information about the Intel-gfx mailing list