Re: [Intel-gfx] [PATCH v3 6/6] drm/i915/huc: Add BXT HuC Loading Support

2016-07-13 Thread Xiang, Haihao
Hi Rodrigo, We will use HuC on BXT. Thanks Haihao > vaapi-intel-driver, the userspace component here is only using HuC > for > SKL for now, so I believe this one will be on hold for now, right? > > > > On Wed, 2016-07-06 at 15:24 +0100, Peter Antoine wrote: > > This patch adds the HuC Loadin

Re: [Intel-gfx] [PATCH 4/6] drm/i915/huc: Add debugfs for HuC loading status check

2016-07-13 Thread Xiang, Haihao
rom: Thierry, Michel > > Sent: Thursday, June 23, 2016 3:48 AM > > To: Antoine, Peter ; Xiang, Haihao > > ; daniel.vet...@ffwll.ch > > Cc: Kelley, Sean V ; intel- > > g...@lists.freedesktop.org; Li, Lawrence T > > ; Vivi, > > Rodrigo > > Subject: Re: [Inte

Re: [Intel-gfx] [Libva] keep Nalu start code in VASliceDataBufferType data

2016-08-30 Thread Xiang, Haihao
On Tue, 2016-08-30 at 08:59 +0800, Randy Li wrote: > Hi all: >    When I just doing the driver for us chip, we would request the > Nalu > header present in the data to be process. But I found the data be > Rendered to with type VASliceDataBufferType is removed the Nalu start > code. Is there any

Re: [Intel-gfx] [PATCH 4/6] drm/i915/huc: Add debugfs for HuC loading status check

2016-06-23 Thread Xiang, Haihao
Hi Peter, Besides debugfs, could you add a IOCTL to check HuC loading status? Userspace media driver needs to advertise the features based on HuC to user. Thanks Haihao > From: Alex Dai > > Add debugfs entry for HuC loading status check. > > Signed-off-by: Alex Dai > Signed-off-by: Peter A

[Intel-gfx] [intel-gfx][PATCH] intel: add a new interface drm_intel_bo_alloc_direct

2010-05-24 Thread Xiang, Haihao
This interface is the same as drm_intel_bo_alloc except the allocated size isn't rounded up, so it bypasses the cache bucket. The size of the BO created by drm_intel_bo_alloc for a 1920x800,4:2:0 YUV planar surface is 4M, it is about 2.2M if using drm_intel_bo_alloc_direct. Signed-off-by:

Re: [Intel-gfx] [intel-gfx][PATCH] intel: add a new interface drm_intel_bo_alloc_direct

2010-05-26 Thread Xiang, Haihao
On Thu, 2010-05-27 at 04:52 +0800, Eric Anholt wrote: > On Tue, 25 May 2010 13:06:50 +0800, "Xiang, Haihao" > wrote: > > This interface is the same as drm_intel_bo_alloc except the allocated > > size isn't rounded up, so it bypasses the cache bucket. >

Re: [Intel-gfx] [intel-gfx][PATCH] intel: add a new interface drm_intel_bo_alloc_direct

2010-06-01 Thread Xiang, Haihao
On Fri, 2010-05-28 at 22:04 +0800, Daniel Vetter wrote: > On Tue, May 25, 2010 at 01:06:50PM +0800, Xiang, Haihao wrote: > > This interface is the same as drm_intel_bo_alloc except the allocated > > size isn't rounded up, so it bypasses the cache bucket. > > > &g

Re: [Intel-gfx] [PATCH] intel: Add more intermediate sizes of cache buckets between powers of 2.

2010-06-06 Thread Xiang, Haihao
On Sat, 2010-06-05 at 08:16 +0800, Eric Anholt wrote: > We had two cases recently where the rounding to powers of two hurt > badly: 4:2:0 YUV HD video frames would round up from 2.2MB to 4MB, > Urban Terror was hitting aperture size limitations. Mipmap trees for > power of two sizes will land righ

Re: [Intel-gfx] [PATCH] intel: Add more intermediate sizes of cache buckets between powers of 2.

2010-06-07 Thread Xiang, Haihao
On Mon, 2010-06-07 at 10:28 +0800, Xiang, Haihao wrote: > On Sat, 2010-06-05 at 08:16 +0800, Eric Anholt wrote: > > We had two cases recently where the rounding to powers of two hurt > > badly: 4:2:0 YUV HD video frames would round up from 2.2MB to 4MB, > > Urban Terror was

Re: [Intel-gfx] [PATCH Inte-gpu-tools 1/5] Assembler/bdw: Remove the unsupported cache agent for WRITE(...)

2014-02-12 Thread Xiang, Haihao
_CACHE && > $9 != GEN7_SFID_DATAPORT_DATA_CACHE && > $9 != HSW_SFID_DATAPORT_DATA_CACHE1) { > error (&@9, "error: wrong cache type\n"); It is OK for me Reviewed-by: Xiang, Haihao ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] intel_audio_dump: fix CTS/M value index

2014-03-13 Thread Xiang, Haihao
On Thu, 2014-03-13 at 16:38 -0400, mengdong@intel.com wrote: > From: Mengdong Lin > > This patch fixes the reversed CTS/M value index when dumping the > 'audio M/CTS programing enable' register. > > Signed-off-by: Mengdong Lin > > diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2013-11-26 Thread Xiang, Haihao
On Tue, 2013-11-26 at 20:35 +0100, Daniel Vetter wrote: > Hi Brad, > > On Tue, Nov 26, 2013 at 08:51:17AM -0800, bradley.d.vol...@intel.com wrote: > > From: Brad Volkin > > > > Certain OpenGL features (e.g. transform feedback, performance monitoring) > > require userspace code to submit batches

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2013-11-27 Thread Xiang, Haihao
On Wed, 2013-11-27 at 09:10 +0100, Daniel Vetter wrote: > On Wed, Nov 27, 2013 at 09:32:32AM +0800, ykzhao wrote: > > On Tue, 2013-11-26 at 13:24 -0700, Volkin, Bradley D wrote: > > > On Tue, Nov 26, 2013 at 11:35:38AM -0800, Daniel Vetter wrote: > > > > Hi Brad, > > > > > > > > On Tue, Nov 26, 2

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2013-11-27 Thread Xiang, Haihao
On Wed, 2013-11-27 at 09:31 +0100, Daniel Vetter wrote: > On Wed, Nov 27, 2013 at 9:23 AM, Xiang, Haihao wrote: > >> So are these 2nd level batches constructed by the gpu in some cases? That > >> would be fairly horribly to take into account with the batch checker ... > &

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2013-11-27 Thread Xiang, Haihao
On Wed, 2013-11-27 at 09:47 +0100, Daniel Vetter wrote: > On Wed, Nov 27, 2013 at 04:42:11PM +0800, Xiang, Haihao wrote: > > On Wed, 2013-11-27 at 09:31 +0100, Daniel Vetter wrote: > > > On Wed, Nov 27, 2013 at 9:23 AM, Xiang, Haihao > > > wrote: > > &g

[Intel-gfx] [Intel gfx][i-g-t PATCH 4/4] tests/gem_media_fill: the assembly code for the shader used in the case

2013-11-28 Thread Xiang, Haihao
From: "Xiang, Haihao" The code is for reference only Signed-off-by: Xiang, Haihao --- shaders/media/README |6 ++ shaders/media/media_fill.gxa | 30 ++ 2 files changed, 36 insertions(+) create mode 100644 shaders/media/README create m

[Intel-gfx] [Intel gfx][i-g-t PATCH 3/4] tests/gem_media_fill: add support for gen7

2013-11-28 Thread Xiang, Haihao
From: "Xiang, Haihao" Signed-off-by: Xiang, Haihao --- lib/Makefile.sources |2 + lib/gen7_media.h | 323 + lib/media_fill.c |2 + lib/media_fill.h |7 + lib/media_fill_gen

[Intel-gfx] [Intel gfx][i-g-t PATCH 2/4] tests/gem_media_fill: add support for gen8

2013-11-28 Thread Xiang, Haihao
From: "Xiang, Haihao" Signed-off-by: Xiang, Haihao --- lib/Makefile.sources |2 + lib/gen8_media.h | 371 + lib/media_fill.c |3 + lib/media_fill.h |7 + lib/media_fill_gen

[Intel-gfx] [Intel gfx][i-g-t PATCH 1/4] tests: add gem_media_fill

2013-11-28 Thread Xiang, Haihao
From: "Xiang, Haihao" It is to check whether media pipeline on render ring works. Codes are copied and modified from the rendercopy case which uses 3D pipeline. However media pipeline is simpler than 3D pipeline and there is few changes between gen6,gen7 and gen8 Signed-off-by: Xia

Re: [Intel-gfx] [Intel gfx][i-g-t PATCH 4/4] tests/gem_media_fill: the assembly code for the shader used in the case

2013-12-01 Thread Xiang, Haihao
> On Thu, 2013-11-28 at 23:57 -0700, Xiang, Haihao wrote: > > From: "Xiang, Haihao" > > > > The code is for reference only > > > > Signed-off-by: Xiang, Haihao > > --- > > shaders/media/README |6 ++ > > shaders/medi

Re: [Intel-gfx] [Intel gfx][i-g-t PATCH 1/4] tests: add gem_media_fill

2013-12-01 Thread Xiang, Haihao
On Fri, 2013-11-29 at 09:02 +0100, Daniel Vetter wrote: > On Fri, Nov 29, 2013 at 02:57:13PM +0800, Xiang, Haihao wrote: > > From: "Xiang, Haihao" > > > > It is to check whether media pipeline on render ring works. Codes > > are copied and modified f

[Intel-gfx] [Intel gfx][i-g-t PATCH (v2) 1/4] tests: add gem_media_fill

2013-12-01 Thread Xiang, Haihao
From: "Xiang, Haihao" It is to check whether media pipeline on render ring works. Codes are copied and modified from the rendercopy case which uses 3D pipeline. However media pipeline is simpler than 3D pipeline and there is few changes between gen6,gen7 and gen8 Signed-off-by: Xia

[Intel-gfx] [Intel gfx][i-g-t PATCH (v2) 4/4] tests/gem_media_fill: the assembly code for the shader used in the case

2013-12-01 Thread Xiang, Haihao
From: "Xiang, Haihao" The code is for reference only v2: Fixed the source register used for the send with EOT Fixed the posted destination operand for the send with EOT Signed-off-by: Xiang, Haihao --- shaders/media/README |6 ++ shaders/media/media_fill.

[Intel-gfx] [Intel gfx][i-g-t PATCH (v2) 2/4] tests/gem_media_fill: add support for gen8

2013-12-01 Thread Xiang, Haihao
From: "Xiang, Haihao" v2: Fixed the source register used for the send with EOT Fixed the posted destination operand for the send with EOT Signed-off-by: Xiang, Haihao --- lib/Makefile.sources |2 + lib/gen8_media.h | 371

[Intel-gfx] [Intel gfx][i-g-t PATCH (v2) 3/4] tests/gem_media_fill: add support for gen7

2013-12-01 Thread Xiang, Haihao
From: "Xiang, Haihao" v2: Fixed the source register used for the send with EOT Fixed the posted destination operand for the send with EOT Signed-off-by: Xiang, Haihao --- lib/Makefile.sources |2 + lib/gen7_media.h | 323

[Intel-gfx] [Intel gfx][i-g-t PATCH (v3) 1/4] tests: add gem_media_fill

2013-12-05 Thread Xiang, Haihao
From: "Xiang, Haihao" It is to check whether media pipeline on render ring works. Codes are copied and modified from the rendercopy case which uses 3D pipeline. However media pipeline is simpler than 3D pipeline and there is few changes between gen6,gen7 and gen8 Reviewed-by: Zhao Yak

[Intel-gfx] [Intel gfx][i-g-t PATCH (v3) 2/4] tests/gem_media_fill: add support for gen8

2013-12-05 Thread Xiang, Haihao
From: "Xiang, Haihao" v2: Fixed the source register used for the send with EOT Fixed the posted destination operand for the send with EOT v3: Workaround: Insert MEDIA_STATE_FLUSH after MEDIA_OBJECT. Fixed the cache agent used in media_block_write message Set Instruction B

[Intel-gfx] [Intel gfx][i-g-t PATCH (v3) 3/4] tests/gem_media_fill: add support for gen7

2013-12-05 Thread Xiang, Haihao
From: "Xiang, Haihao" v2: Fixed the source register used for the send with EOT Fixed the posted destination operand for the send with EOT Reviewed-by: Zhao Yakui Signed-off-by: Xiang, Haihao --- lib/Makefile.sources |2 + lib/gen7_media.h

[Intel-gfx] [Intel gfx][i-g-t PATCH (v3) 4/4] tests/gem_media_fill: the assembly code for the shader used in the case

2013-12-05 Thread Xiang, Haihao
From: "Xiang, Haihao" The code is for reference only v2: Fixed the source register used for the send with EOT Fixed the posted destination operand for the send with EOT v3: Fixed the cache agent used in media_block_write message on GEN8 Reviewed-by: Zhao Yakui Signed-off

[Intel-gfx] [Intel gfx][assembler][i-g-t PATCH] assembler/bdw: Update write(...)

2013-12-05 Thread Xiang, Haihao
From: "Xiang, Haihao" write(...) is used for Render Target Write and Media Block Write. The two message types no longer share the same cache agent on GEN8, So a parameter is needed for cache agent. The 4th parameter of write() is used for write commit bit which has been removed since G

[Intel-gfx] [Intel gfx][i-g-t PATCH 2/4] rendercopy/bdw: Set Instruction Buffer size Modify Enable to 1

2013-12-06 Thread Xiang, Haihao
From: "Xiang, Haihao" Otherwise it may result in GPU hang Signed-off-by: Xiang, Haihao --- lib/rendercopy_gen8.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 43e962c..1a137dd 100644 --- a/lib/rendercopy_ge

[Intel-gfx] [Intel gfx][i-g-t PATCH 3/4] rendercopy/bdw: A workaround for 3D pipeline

2013-12-06 Thread Xiang, Haihao
From: "Xiang, Haihao" Emit PIPELINE_SELECT twice and make sure the commands in the first batch buffer have been done. However I don't know why this works !!! Signed-off-by: Xiang, Haihao --- lib/rendercopy_gen8.c | 19 +-- 1 file changed, 17 insertions(

[Intel-gfx] [Intel gfx][i-g-t PATCH 4/4] Revert "gen8 rendercpy: temporarily disable"

2013-12-06 Thread Xiang, Haihao
From: "Xiang, Haihao" This reverts commit e41928e6c9bb3f24833a827903f1afeda83592d6. Now the case no longer causes GPU hang on GEN --- lib/rendercopy_i830.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/rendercopy_i830.c b/lib/rendercopy_i830.c ind

[Intel-gfx] [Intel gfx][i-g-t PATCH 1/4] lib: Clean the batch buffer store after reset

2013-12-06 Thread Xiang, Haihao
From: "Xiang, Haihao" Otherwise the stale data in the buffer Signed-off-by: Xiang, Haihao --- lib/intel_batchbuffer.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c index 06a5437..9ce7424 100644 --- a/lib/intel_batchbuff

Re: [Intel-gfx] [Intel gfx][i-g-t PATCH 3/4] rendercopy/bdw: A workaround for 3D pipeline

2013-12-08 Thread Xiang, Haihao
On Fri, 2013-12-06 at 13:30 +, Damien Lespiau wrote: > On Fri, Dec 06, 2013 at 04:54:46PM +0800, Xiang, Haihao wrote: > > From: "Xiang, Haihao" > > > > Emit PIPELINE_SELECT twice and make sure the commands in > > the first batch buffer have been done. &

Re: [Intel-gfx] [PATCH 1/2] rendercopy/bdw: Emit 3DSTATE_WM_HZ_OP.

2013-12-10 Thread Xiang, Haihao
On Tue, 2013-12-10 at 09:04 -0800, Kenneth Graunke wrote: > On 12/10/2013 03:40 AM, Damien Lespiau wrote: > > On Mon, Dec 09, 2013 at 11:29:35PM -0800, Kenneth Graunke wrote: > >> We don't want depth/stencil fast clears or HiZ resolves; we want normal > >> drawing. Without this, the pixel pipelin

Re: [Intel-gfx] [PATCH 1/2] drm/i915/bdw: Force all Data Cache Data Port access to be Non-Coherent

2013-12-12 Thread Xiang, Haihao
On Thu, 2013-12-12 at 15:28 -0800, Ben Widawsky wrote: > I stumbled on to some unimplemented errata. To be honest, I am not > really sure of the impact, just that the docs say to do. > > No w/a name for this one. > > Cc: Kenneth Graunke > Signed-off-by: Ben Widawsky > --- > drivers/gpu/drm/i9

[Intel-gfx] [i-g-t][PATH] debugger: Include path for cairo to fix compiler error

2013-02-27 Thread Xiang, Haihao
From: "Xiang, Haihao" CC eudb.o In file included from eudb.c:44:0: ../lib/drmtest.h:34:19: fatal error: cairo.h: No such file or directory compilation terminated. make[3]: *** [eudb.o] Error 1 Signed-off-by: Xiang, Haihao --- debugger/Makefile.am |3 ++- 1 file changed, 2

Re: [Intel-gfx] Does intel GM35 support libva?

2012-04-23 Thread Xiang, Haihao
The libva driver for Intel doesn't support GM35. Thanks Haihao > Howdy, > > Xorg says: > [ 36196.880] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so > [ 36196.880] drmOpenDevice: node name is /dev/dri/card0 > [ 36196.880] drmOpenDevice: open result is 9, (OK) > [ 36196.880] drmOpenByBu

Re: [Intel-gfx] [Q77 express][x86_64][DRI][DRM/intel]Xorg loads "intel_drv.so"error, IVYBRIDGE_S_GT2

2012-05-23 Thread Xiang, Haihao
On Thu, 2012-05-24 at 08:40 +0800, 袁竞杰 wrote: > At last,I found the answer. > I used libdrm-2.4.27 which does not support IVYBRIDGE_S_GT2. Using the > latest libdrm-2.4.34 to solve this problem. > VAAPI still complains "cannot open i965_drv_video.so",I find the > latest intel-driver-1.0.17 doesn't

Re: [Intel-gfx] [libva] GPU hung

2012-06-13 Thread Xiang, Haihao
Hi, Angela Could you file a bug and provide more details how to reproduce this issue ? Thanks Haihao > > Am Mittwoch, den 13.06.2012, 00:09 +0200 schrieb Angela: > > > >> >For gpu hangs the important thing is the i915_error_state file > > > >> >from sysfs > > > >> (the files you've attached are

Re: [Intel-gfx] [libva] GPU hung

2012-07-03 Thread Xiang, Haihao
On Mon, 2012-07-02 at 18:49 +, Christophe Oosterlynck wrote: > Hi, > > Is there any update on this issue or has a bug been reported? > > I seem to have a similar issue ("[drm:i915_hangcheck_hung] *ERROR* Hangcheck > timer") when using vaapi with gstreamer. > https://bugs.freedesktop.org/s

Re: [Intel-gfx] Question regarding libva encoding

2012-09-26 Thread Xiang, Haihao
The support for Main/High profile has been done in the staging branch. We will merge the interfaces for Main/High profile back into the master branch. Thanks Haihao > Hello my name is Charlie Good and I am the CTO of Wowza Media System. > We are the authors of Wowza Media Server. Our product in

Re: [Intel-gfx] REg: Doubt in drm kernel driver

2012-11-09 Thread Xiang, Haihao
No, you don't need to modify the drm kernel for the decoded output data. You can directly map the corresponding buffer (GEM buffer) after executing the batchbuffer. BTW The decoded frame is specified in MFX_PIPE_BUF_ADDR_STATE too. Thanks Haihao > Hi all, > > > > Anybody has any suggesti

[Intel-gfx] [PATCH 1/2] intel: Sync the parameter of i915_getparma with the kernel

2012-11-13 Thread Xiang, Haihao
From: Zhao Yakui Signed-off-by: Zhao Yakui --- include/drm/i915_drm.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index 7e9e9bd..8b069ac 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h @@ -303,6 +303,8 @@ typedef stru

[Intel-gfx] [PATCH 2/2] intel: Add support for VEBOX ring (v2)

2012-11-13 Thread Xiang, Haihao
From: "Xiang, Haihao" v2: Fix the test for has_vebox Signed-off-by: Xiang, Haihao --- include/drm/i915_drm.h |2 ++ intel/intel_bufmgr_gem.c |9 + 2 files changed, 11 insertions(+) diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index 8b069ac..2341

[Intel-gfx] [PATCH 0/2] test cases for the new ring on Haswell

2012-11-13 Thread Xiang, Haihao
From: "Xiang, Haihao" Xiang, Haihao (2): tests: storedw on VEBOX Update gem_ring_sync_loop to support VEBOX ring (the 4th ring) on Haswell lib/intel_chipset.h|2 + tests/Makefile.am |1 + tests/gem_ring_sync_loop.c | 18 ++

[Intel-gfx] [PATCH 1/2] tests: storedw on VEBOX

2012-11-13 Thread Xiang, Haihao
From: "Xiang, Haihao" Signed-off-by: Xiang, Haihao --- lib/intel_chipset.h|2 + tests/Makefile.am |1 + tests/gem_storedw_loop_vebox.c | 153 3 files changed, 156 insertions(+) create mode 10

[Intel-gfx] [PATCH 2/2] Update gem_ring_sync_loop to support VEBOX ring (the 4th ring) on Haswell

2012-11-13 Thread Xiang, Haihao
From: "Xiang, Haihao" Signed-off-by: Xiang, Haihao --- tests/gem_ring_sync_loop.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/gem_ring_sync_loop.c b/tests/gem_ring_sync_loop.c index b689bcd..199dcfd 100644 --- a/tests/gem_ring_s

[Intel-gfx] [PATCH 1/2] gem_ring_sync_loop: check the rings supported by the kernel

2012-11-15 Thread Xiang, Haihao
From: "Xiang, Haihao" Signed-off-by: Xiang, Haihao --- tests/gem_ring_sync_loop.c | 37 ++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/tests/gem_ring_sync_loop.c b/tests/gem_ring_sync_loop.c index b689bcd..2875cf3 100644 -

Re: [Intel-gfx] [PATCH 0/2] test cases for the new ring on Haswell

2012-11-15 Thread Xiang, Haihao
On Wed, 2012-11-14 at 08:23 +, Chris Wilson wrote: > On Wed, 14 Nov 2012 12:55:54 +0800, "Xiang, Haihao" > wrote: > > From: "Xiang, Haihao" > > > > Xiang, Haihao (2): > > tests: storedw on VEBOX > > Update gem_ring_sync_loop

[Intel-gfx] [PATCH 2/2] gem_ring_sync_loop: test the new ring

2012-11-15 Thread Xiang, Haihao
From: "Xiang, Haihao" The code is surround by a #ifdef...#endif to avoid to break compiling against the current libdrm release Signed-off-by: Xiang, Haihao --- tests/gem_ring_sync_loop.c | 12 1 file changed, 12 insertions(+) diff --git a/tests/gem_ring_sync_loop

Re: [Intel-gfx] [PATCH 1/2] intel: Sync the parameter of i915_getparma with the kernel

2012-11-15 Thread Xiang, Haihao
On Thu, 2012-11-15 at 12:30 +0100, Daniel Vetter wrote: > On Wed, Nov 14, 2012 at 12:46:38PM +0800, Xiang, Haihao wrote: > > From: Zhao Yakui > > > > Signed-off-by: Zhao Yakui > > Fyi the best way is to simply run > > $ make headers_install > >

Re: [Intel-gfx] VAAPI (master or ext) no deinterlacing with Clarkdale GPU

2012-01-31 Thread Xiang, Haihao
Hi, I know what is the problem. For some reason, the native pixel format for MPEG-2 decoding on Clarkdale is I420, however the input pixel format of deinterlacing is NV12 in the driver, so the driver doesn't support deinterlacing for MPEG-2 on Clardale. We will try to fix this issue but don't

Re: [Intel-gfx] vaapi intel-driver (vaapi-ext): assertion failed

2012-01-31 Thread Xiang, Haihao
On Tue, 2012-01-31 at 17:32 +0100, Christoph Evers wrote: > Hi folks, > > i am not sure whether this issue belongs to the libva mailinglist or > this one. I'll give it a try :-) You can send all VAAPI related mail to li...@lists.freedesktop.org > For testing purpose I switched to vaapi-ext bra

Re: [Intel-gfx] VA-API brightness property

2012-03-18 Thread Xiang, Haihao
> Please, can anyone tell me if there is a list for user questions about > VAAPI? I have several questions... The list for VAAPI is li...@lists.freedesktop.org As for brightness property, the driver doesn't support it. Thanks Haihao > > Greets, > Kiste > > > > Am 09.03.2012 08:04, schrieb

[Intel-gfx] [intel-gfx][PATCH 1/2] drm/i915: prepare for video codec ring buffer on Sandybridge

2010-09-01 Thread Xiang, Haihao
Add set_tail hook to struct intel_ring_buffer Signed-off-by: Xiang, Haihao --- drivers/gpu/drm/i915/intel_ringbuffer.c | 22 +- drivers/gpu/drm/i915/intel_ringbuffer.h |2 ++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [intel-gfx][PATCH 2/2] drm/i915: Add a new ring buffer on Sandybridge

2010-09-01 Thread Xiang, Haihao
This ring buffer is used for video decoding/encoding on Sandybridge. Signed-off-by: Xiang, Haihao --- drivers/gpu/drm/i915/i915_drv.h |2 +- drivers/gpu/drm/i915/i915_gem.c |6 ++- drivers/gpu/drm/i915/i915_irq.c | 15 +++-- drivers/gpu/drm/i915/i915_reg.h

Re: [Intel-gfx] [intel-gfx][PATCH 2/2] drm/i915: Add a new ring buffer on Sandybridge

2010-09-02 Thread Xiang, Haihao
On Thu, 2010-09-02 at 15:16 +0800, Chris Wilson wrote: > Comments inline. Thanks for your comments. > > On Thu, 2 Sep 2010 21:46:54 +0800, "Xiang, Haihao" > wrote: > > This ring buffer is used for video decoding/encoding on Sandybridge. > >

Re: [Intel-gfx] [intel-gfx][PATCH 2/2] drm/i915: Add a new ring buffer on Sandybridge

2010-09-02 Thread Xiang, Haihao
On Thu, 2010-09-02 at 22:56 +0800, Daniel Vetter wrote: > On Thu, Sep 02, 2010 at 09:46:54PM +0800, Xiang, Haihao wrote: > > /* > > + * video command stream instruction and interrupt control register defines > > + * for GEN6 > > + */ > > +#define GEN6_BSD_RING_

[Intel-gfx] [PATCH][v2 1/2] drm/i915: prepare for video codec ring buffer on Sandybridge

2010-09-13 Thread Xiang, Haihao
Some little changes: Add set_tail hook to struct intel_ring_buffer fix HAS_BSD with a device info flag Don't export the initialiser of struct intel_ring_buffer Signed-off-by: Xiang, Haihao --- drivers/gpu/drm/i915/i915_drv.c |4 ++ drivers/gpu/drm/i915/i915_

[Intel-gfx] [PATCH][v2 2/2] drm/i95: Add a new ring buffer on Sandybridge

2010-09-13 Thread Xiang, Haihao
This ring buffer is used for video decoding/encoding on Sandybridge. Signed-off-by: Xiang, Haihao --- drivers/gpu/drm/i915/i915_drv.c |2 + drivers/gpu/drm/i915/i915_irq.c | 15 +++- drivers/gpu/drm/i915/i915_reg.h | 26 ++- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH][v2 1/2] drm/i915: prepare for video codec ring buffer on Sandybridge

2010-09-14 Thread Xiang, Haihao
On Mon, 2010-09-13 at 17:52 +0800, Chris Wilson wrote: > On Mon, 13 Sep 2010 15:17:05 +0800, "Xiang, Haihao" > wrote: > > Some little changes: > > Add set_tail hook to struct intel_ring_buffer > > fix HAS_BSD with a device info flag > >

[Intel-gfx] [Inter-gfx][PATCH][v3 1/4] drm/i915: fix HAS_BSD with a device info flag

2010-09-15 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.c |4 drivers/gpu/drm/i915/i915_drv.h |3 ++- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index dffc1bc

[Intel-gfx] [Inter-gfx][PATCH][v3 2/4] drm/i915: do not export the instances of struct intel_ring_buffer

2010-09-15 Thread Xiang, Haihao
Introduce intel_init_render_ring_buffer(), intel_init_bsd_ring_buffer for ring initialization. Signed-off-by: Xiang, Haihao Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem.c | 14 ++ drivers/gpu/drm/i915/intel_ringbuffer.c | 29

[Intel-gfx] [Inter-gfx][PATCH][v3 3/4] drm/i915: add set_tail hook in struct intel_ring_buffer

2010-09-15 Thread Xiang, Haihao
This is prepared for video codec ring buffer on Sandybridge. It is needed to read/write more than one register to move the tail pointer of the video codec ring on Sandybridge. Signed-off-by: Xiang, Haihao Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/intel_ringbuffer.c | 22

[Intel-gfx] [Inter-gfx][PATCH][v3 4/4] drm/i915: add a new ring buffer on Sandybridge

2010-09-15 Thread Xiang, Haihao
This ring buffer is used for video decoding/encoding on Sandybridge. Signed-off-by: Xiang, Haihao Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.c |2 + drivers/gpu/drm/i915/i915_irq.c | 15 +++- drivers/gpu/drm/i915/i915_reg.h | 26 ++- drivers

Re: [Intel-gfx] [Inter-gfx][PATCH][v3 3/4] drm/i915: add set_tail hook in struct intel_ring_buffer

2010-09-15 Thread Xiang, Haihao
On Thu, 2010-09-16 at 12:21 +0800, Zhenyu Wang wrote: > On 2010.09.16 10:43:12 +0800, Xiang, Haihao wrote: > > This is prepared for video codec ring buffer on Sandybridge. It is > > needed to read/write more than one register to move the tail pointer of > > the video code

Re: [Intel-gfx] [Inter-gfx][PATCH][v3 3/4] drm/i915: add set_tail hook in struct intel_ring_buffer

2010-09-15 Thread Xiang, Haihao
On Thu, 2010-09-16 at 13:37 +0800, Zhenyu Wang wrote: > On 2010.09.16 13:10:29 +0800, Xiang, Haihao wrote: > > > Or can't that be done in init function by using advance_ring? > > advance_ring uses ring->tail to set TAIL register, i965_reset() also > > invokes rin

[Intel-gfx] support for Sandybridge in GFX assembler

2010-10-09 Thread Xiang, Haihao
Here is a set of patches for GFX assembler to support Sandybridge. We will try to re-use all existing render shaders with these fixes. Note these patches don't support for some Sandybridge ISA changes such as math instructions, IF/ELSE/ENDIF etc. ___

[Intel-gfx] [PATCH 01/10] add -g 6 for Sandybridge

2010-10-09 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 2757e96..7c0b579 100644 --- a/src/main.c +++ b/src/main.c @@ -49,7 +49,7 @@ static const struct option longopts[] = { static void usage(void

[Intel-gfx] [PATCH 02/10] fix jump count for Sandybridge.

2010-10-09 Thread Xiang, Haihao
It is same as Ironlake. Signed-off-by: Xiang, Haihao --- src/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main.c b/src/main.c index 7c0b579..12901a7 100644 --- a/src/main.c +++ b/src/main.c @@ -130,7 +130,7 @@ int main(int argc, char **argv

[Intel-gfx] [PATCH 03/10] always set destination horiz stride for Align16 to 1 on Sandybridge.

2010-10-09 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/brw_structs.h |4 ++-- src/gram.y|2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/brw_structs.h b/src/brw_structs.h index ba20547..32a52df 100644 --- a/src/brw_structs.h +++ b/src/brw_structs.h @@ -1102,7 +1102,7

[Intel-gfx] [PATCH 04/10] add AccWrCtrl flag on Sandybridge

2010-10-09 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/brw_defines.h |3 +++ src/brw_structs.h |3 ++- src/gram.y|6 +- src/lex.l |1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/brw_defines.h b/src/brw_defines.h index 7812d72..4921d34 100644 --- a/src

[Intel-gfx] [PATCH 05/10] fix send instruction on Sandybridge

2010-10-09 Thread Xiang, Haihao
Send doesn't have implied move on Sandybridge, the SFID moves to bits[24,27] which is used as the destination of the implied move on Prev GEN6. Signed-off-by: Xiang, Haihao --- src/brw_structs.h |2 +- src/disasm.c |4 ++-- src/gram.y| 20 +--- 3

[Intel-gfx] [PATCH 06/10] add support for data port write on Sandybridge.

2010-10-09 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/brw_structs.h | 13 + src/gram.y| 14 +- 2 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/brw_structs.h b/src/brw_structs.h index 92a398e..6a29f37 100644 --- a/src/brw_structs.h +++ b/src/brw_structs.h

[Intel-gfx] [PATCH 07/10] add support for data port read on Sandybridge

2010-10-09 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/brw_structs.h | 12 src/gram.y|9 - 2 files changed, 20 insertions(+), 1 deletions(-) diff --git a/src/brw_structs.h b/src/brw_structs.h index 6a29f37..9b1cd92 100644 --- a/src/brw_structs.h +++ b/src/brw_structs.h

[Intel-gfx] [PATCH 08/10] sampler, urb write, null and gateway on Sandybridge are same as Ironlake.

2010-10-09 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/gram.y | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gram.y b/src/gram.y index ffb0851..9258ac7 100644 --- a/src/gram.y +++ b/src/gram.y @@ -557,7 +557,7 @@ post_dst: dst msgtarget: NULL_TOKEN

[Intel-gfx] [PATCH 09/10] print error message when using math function on Sandybridge.

2010-10-09 Thread Xiang, Haihao
Sandybridge doesn't have math funtion, instead it supports a set of math instructions. The support for math instructions will be added later. Signed-off-by: Xiang, Haihao --- src/gram.y |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/gram.y b/src/gram.y

[Intel-gfx] [PATCH 10/10] no compression flag on Sandybridge

2010-10-09 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/gram.y |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gram.y b/src/gram.y index e61e9db..a57e4e9 100644 --- a/src/gram.y +++ b/src/gram.y @@ -1612,8 +1612,10 @@ instoption_list

[Intel-gfx] Xv on Sandybridge

2010-10-21 Thread Xiang, Haihao
Here is the set of patches to enable texture adaptor on Sandybridge. Currently you need to turn off shadow in /etc/xorg.conf to use texture video on Sandybridge ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mail

[Intel-gfx] [PATCH 1/6] Xv: set the surface state base address

2010-10-21 Thread Xiang, Haihao
To prepare for Xv on Sandybridge. It is easy to fill the binding table without relocation and make sure that the pointer to binding table only uses bits[15:0]. Signed-off-by: Xiang, Haihao --- src/i965_video.c | 141 + 1 files changed, 67

[Intel-gfx] [PATCH 2/6] Xv: Send instruction doesn't use implied move when sampling YUV surface

2010-10-21 Thread Xiang, Haihao
The two fragments will be reused for sampling YUV surface and send doesn't have implied move on Sandybridge Signed-off-by: Xiang, Haihao --- src/render_program/exa_wm_src_sample_argb.g4a |3 ++- src/render_program/exa_wm_src_sample_argb.g4b |3 ++- src/render_pr

[Intel-gfx] [PATCH 3/6] Xv: fragments for xv on Sandybridge.

2010-10-21 Thread Xiang, Haihao
Need to update intel-gen4asm to build these fragments Signed--off-by: Xiang, Haihao --- configure.ac|2 +- src/render_program/Makefile.am | 27 +++- src/render_program/exa_wm_src_affine.g6a| 47 + src

[Intel-gfx] [PATCH 4/6] Xv: setup pipeline for Xv on Sandybridge

2010-10-21 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/brw_structs.h | 100 src/i965_reg.h | 98 src/i965_video.c| 624 +++ src/intel.h |4 + src/intel_batchbuffer.c | 25 ++- src/intel_video.h |7

[Intel-gfx] [PATCH 5/6] Xv: enable TextureAdaptor for Sandybridge

2010-10-21 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/intel_video.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/intel_video.c b/src/intel_video.c index 5d16778..afc2405 100644 --- a/src/intel_video.c +++ b/src/intel_video.c @@ -364,7 +364,6 @@ void I830InitVideo(ScreenPtr

[Intel-gfx] [PATCH 6/6] Xv: don't call intel_wait_for_scanline on Sandybridge

2010-10-21 Thread Xiang, Haihao
MI_LOAD_SCAN_LINE_INCL command is not available on sandybridge. Signed-off-by: Xiang, Haihao --- src/intel_video.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/intel_video.c b/src/intel_video.c index afc2405..cdff149 100644 --- a/src/intel_video.c +++ b/src

Re: [Intel-gfx] Xv on Sandybridge

2010-10-21 Thread Xiang, Haihao
On Thu, 2010-10-21 at 17:31 +0800, Chris Wilson wrote: > On Thu, 21 Oct 2010 16:55:40 +0800, "Xiang, Haihao" > wrote: > > Here is the set of patches to enable texture adaptor on Sandybridge. > > Currently you need to turn off shadow in /etc/xorg.conf to use text

[Intel-gfx] [PATH v2 0/6] Xv on Sandybridge

2010-10-26 Thread Xiang, Haihao
Here is the set of patches to enable texture adaptor on Sandybridge. Currently you need to turn off shadow in /etc/xorg.conf to use texture video on Sandybridge v2: refresh the patches, fix a conflict with a recent commit on master ___ Intel-gfx mailing

[Intel-gfx] [PATH v2 1/6] Xv: set the surface state base address

2010-10-26 Thread Xiang, Haihao
To prepare for Xv on Sandybridge. It is easy to fill the binding table without relocation and make sure that the pointer to binding table only uses bits[15:0]. Signed-off-by: Xiang, Haihao --- src/i965_video.c | 141 + 1 files changed, 67

[Intel-gfx] [PATH v2 2/6] Xv: Send instruction doesn't use implied move when sampling YUV surface

2010-10-26 Thread Xiang, Haihao
The two fragments will be reused for sampling YUV surface and send doesn't have implied move on Sandybridge Signed-off-by: Xiang, Haihao --- src/render_program/exa_wm_src_sample_argb.g4a |3 ++- src/render_program/exa_wm_src_sample_argb.g4b |3 ++- src/render_pr

[Intel-gfx] [PATH v2 3/6] Xv: fragments for xv on Sandybridge.

2010-10-26 Thread Xiang, Haihao
Need to update intel-gen4asm to build these fragments Signed--off-by: Xiang, Haihao --- configure.ac|2 +- src/render_program/Makefile.am | 27 +++- src/render_program/exa_wm_src_affine.g6a| 47 + src

[Intel-gfx] [PATH v2 4/6] Xv: setup pipeline for Xv on Sandybridge

2010-10-26 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/brw_structs.h | 100 src/i965_reg.h | 98 src/i965_video.c| 627 +++ src/intel.h |4 + src/intel_batchbuffer.c | 25 ++- src/intel_video.h |7

[Intel-gfx] [PATH v2 5/6] Xv: enable TextureAdaptor for Sandybridge

2010-10-26 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/intel_video.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/intel_video.c b/src/intel_video.c index 5d16778..afc2405 100644 --- a/src/intel_video.c +++ b/src/intel_video.c @@ -364,7 +364,6 @@ void I830InitVideo(ScreenPtr

[Intel-gfx] [PATH v2 6/6] Xv: don't call intel_wait_for_scanline on Sandybridge

2010-10-26 Thread Xiang, Haihao
MI_LOAD_SCAN_LINE_INCL command is not available on sandybridge. Signed-off-by: Xiang, Haihao --- src/intel_video.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/intel_video.c b/src/intel_video.c index afc2405..cdff149 100644 --- a/src/intel_video.c +++ b/src

[Intel-gfx] [PATCH 1/5] render: set the surface state base address

2010-11-01 Thread Xiang, Haihao
It is the same as commit 73d4c7d7 Signed-off-by: Xiang, Haihao --- src/i965_render.c | 75 + 1 files changed, 24 insertions(+), 51 deletions(-) diff --git a/src/i965_render.c b/src/i965_render.c index c0c5de4..885889e 100644 --- a/src

[Intel-gfx] [PATCH 2/5] render: fix send instruction used in sampling fragments

2010-11-01 Thread Xiang, Haihao
To prepare for composite on Sandybridge Signed-off-by: Xiang, Haihao --- src/render_program/exa_wm_mask_sample_a.g4a|3 ++- src/render_program/exa_wm_mask_sample_a.g4b|3 ++- src/render_program/exa_wm_mask_sample_a.g4b.gen5 |3 ++- src/render_program

[Intel-gfx] [PATCH 3/5] render: fragments for composite on Sandybridge

2010-11-01 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/render_program/Makefile.am | 18 +++ src/render_program/exa_wm_ca.g6a |1 + src/render_program/exa_wm_ca.g6b |4 ++ src/render_program/exa_wm_ca_srcalpha.g6a |1 + src/render_program

[Intel-gfx] [PATCH 4/5] render: acceleration for composite on Sandybridge

2010-11-01 Thread Xiang, Haihao
Signed-off-by: Xiang, Haihao --- src/i965_render.c | 686 +++-- 1 files changed, 670 insertions(+), 16 deletions(-) diff --git a/src/i965_render.c b/src/i965_render.c index 885889e..e2b67c3 100644 --- a/src/i965_render.c +++ b/src/i965_render.c

[Intel-gfx] [PATCH 5/5] render: use headerless render target write

2010-11-01 Thread Xiang, Haihao
It is weird that some rendercheck cases only work fine with headerless write. Need to update intel-gen4asm to support headerless write Signed-off-by: Xiang, Haihao --- src/render_program/exa_wm_write.g6a | 10 -- src/render_program/exa_wm_write.g6b |4 +--- 2 files changed, 5

  1   2   >