[Libva] Suggestion: libva debug print patches

Xiang, Haihao haihao.xiang at intel.com
Thu May 5 19:39:53 PDT 2011


On Wed, 2011-05-04 at 17:21 +0800, Osin, Alexander I wrote:
> 	Hi,
> 	I recovered 'libva' debug print functionality. Also I implemented i965_LockSurface/i965_UnlockSurface associated functionality. My changes don't affect "va.h" and didn't change existing functionality. They recovered absent (old) functionality only. Could I share my patches with you, please? 
> 
> 	Details. My patch affects 5 files.
> 
> a) "i965_drv_video" functionality:
> 	1) 0001-Implemented-i965_LockSurface-i965_UnlockSurface-i965.patch
> 	"i965_drv_video/i965_drv_video.c" -Implemented i965_BufferInfo, i965_LockSurface (w/o synchronization), i965_UnlockSurface (w/o synchronization). Added " object_surface.locked_image_id" initialization. (+ replaced rare \t by spaces.)
> 	2) 0002-Added-locked_image_id-in-struct-object_surface.patch
> 	"i965_drv_video/i965_drv_video.h" -Added "locked_image_id" field in 'object_surface' internal structure. It is needed for correct 'ImageID' pass between i965_LockSurface and i965_UnlockSurface.
> 
> b) "va" functionality:
> 	1) 0003-Fixed-number-bugs-in-va_TraceSurface.patch
> 	"va/va_trace.c" -Fixed some critical bugs for correct debug print functionality.
> 	2) 0004-corrected-vaBufferInfo-interface.patch
> 	"va/va.c" Corrected ctx->vtable->vaBufferInfo() INTERNAL interface.
> 	3) 0005-corrected-vaBufferInfo-interface.patch
> 	"va/va_backend.h" Corrected ctx->vtable->vaBufferInfo() INTERNAL interface.

Hi, Austin
	Could you take a look at Alexander's patches? These patches are useful
for i965 driver but I am not sure they affect other drivers or not.

Thanks
Haihao


> 
> 	I didn't correct YUV output prints. There is quite simple implementation in vaTrace. IMHO, it could be wrong for some cases.
> 
> Thank you,
> Alexander
> 
> P.S.
> BTW, debug prints are switched in '/etc/libva.conf' file or in environment by 4 defined (details are in libva's readme).
> I sent my proposals last week. My e-mail was banned because I was outside 'libva' group. I have recent it again.
> 
> -----Original Message-----
> From: Xiang, Haihao 
> Sent: Wednesday, April 27, 2011 6:24 AM
> To: Osin, Alexander I
> Subject: Re: LockSurface/UnlockSurface/libvaPrint patch
> 
> On Wed, 2011-04-27 at 00:25 +0800, Osin, Alexander I wrote:
> > 	Haihao,
> > 	I attached my patch for 'master' branch. Please, could you review it? 'Libva' debug print works fine now.
> 
> [skip]
> The fix for i965 driver is ok for me.
> [skip]
> BTW Could you send your patches to libva mail list, maybe some others are interested in your fixes about VA.
> 
> Thanks
> Haihao
> 
> 
> --------------------------------------------------------------------
> Closed Joint Stock Company Intel A/O
> Registered legal address: Krylatsky Hills Business Park, 
> 17 Krylatskaya Str., Bldg 4, Moscow 121614, 
> Russian Federation
> 
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.




More information about the Libva mailing list