Re: [Mesa-dev] [PATCH 1/3] vl: Only initialize vlc once

2011-12-21 Thread Younes Manton
2011/12/21 Maarten Lankhorst : > Hey Christian, > > On 12/21/2011 04:41 PM, Christian König wrote: >> Those functions are called a couple of million times a second, so even if >> the assertion is only tested in debug builds it has quite an effect on >> performance, sometimes even masquerading rea

Re: [Mesa-dev] libvdpau_r600.so not found

2011-12-16 Thread Younes Manton
On Fri, Dec 16, 2011 at 7:38 PM, James Jones wrote: > On 12/16/11 4:27 PM, Younes Manton wrote: >> >> On Fri, Dec 16, 2011 at 7:01 PM, James Cloos  wrote: >>> >>> I've been trying to test out vdpau w/o success. >>> >>> It turns ou

Re: [Mesa-dev] libvdpau_r600.so not found

2011-12-16 Thread Younes Manton
On Fri, Dec 16, 2011 at 7:01 PM, James Cloos wrote: > I've been trying to test out vdpau w/o success. > > It turns out that libvdpau_r600.so is in /usr/lib64/vdpau/, whereas > everything looks for it in the standard ld path (ie, /usr/lib64). > > With »ln -s vdpau/libvdpau_r600.so /usr/lib64/« it s

Re: [Mesa-dev] [PATCH 1/6] vl: Add missing mpeg fields to pipe_mpeg12_picture_desc

2011-12-10 Thread Younes Manton
On Thu, Dec 1, 2011 at 7:00 PM, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst > --- >  src/gallium/include/pipe/p_video_state.h  |    3 +++ >  src/gallium/state_trackers/vdpau/decode.c |    3 +++ >  2 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/src/gallium/includ

Re: [Mesa-dev] [PATCH] g3dvl/xlib: fix build by changing include order

2011-12-10 Thread Younes Manton
On Sat, Dec 10, 2011 at 11:13 PM, Tobias Droste wrote: > fixes the following build error since > c83fb4d45f2a47042f395271efe6e5489b2c4aee: > > /usr/include/strings.h:46:13: error: expected declaration specifiers or > ‘...’ before numeric constant > /usr/include/strings.h:46:13: error: conflicting

Re: [Mesa-dev] [PATCH 2/2] vdpau: Handle destination rectangles correctly

2011-12-10 Thread Younes Manton
On Tue, Dec 6, 2011 at 4:51 PM, Andy Furniss wrote: > Maarten Lankhorst wrote: >> >> The brokenness in vlVdpVideoMixerRender was compensating for >> brokenness in vlVdpPresentationQueueDisplay, so fix both at >> the same time. > > > These fix the two remaining issues (aspect not maintained when fu

Re: [Mesa-dev] reworking pipe_video_decoder / pipe_video_buffer

2011-11-22 Thread Younes Manton
2011/11/21 Christian König : > On 16.11.2011 15:38, Maarten Lankhorst wrote: >> If the decode_bitstream interface is changed to get all bitstream buffers >> at the same time, >> there wouldn't be overhead to doing it like this. For a single picture >> it's supposed to stay constant, >> so for vdpau

Re: [Mesa-dev] [PATCH] state_trackers/vdpau: Implement VdpGenerateCSCMatrix partially

2011-10-25 Thread Younes Manton
On Tue, Oct 25, 2011 at 1:35 PM, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst > --- > > diff --git a/src/gallium/state_trackers/vdpau/mixer.c > b/src/gallium/state_trackers/vdpau/mixer.c > index 8728157..83daddf 100644 > --- a/src/gallium/state_trackers/vdpau/mixer.c > +++ b/src/g

Re: [Mesa-dev] nvfx assertion and XvMC state tracker.

2011-09-05 Thread Younes Manton
On Mon, Sep 5, 2011 at 11:35 PM, Andrew Randrianasulu wrote: > Hello. > > Just tested http://repo.or.cz/w/mesa/nouveau-pmpeg.git/ (commit > 25363beccacc70a514045283bbe14951262f7b1f, "nouveau video fixup") with my nv43. > > At first, i got only nv40_fragtex.c:50: nv40_sampler_view_init: Assertion >

Re: [Mesa-dev] [PATCH 7/7] st/vdpau: Implement VdpOutputSurfacePutBitsIndexed and VdpOutputSurfaceRenderOutputSurface

2011-09-01 Thread Younes Manton
2011/9/1 Christian König : > Am Donnerstag, den 01.09.2011, 13:28 -0400 schrieb Younes Manton: >> 2011/9/1 Christian König : >> > This gets mplayers menu overlay working. >> >> > +   if (destination_rect) { >> > +      res_tmpl.width0 = abs

Re: [Mesa-dev] [PATCH 7/7] st/vdpau: Implement VdpOutputSurfacePutBitsIndexed and VdpOutputSurfaceRenderOutputSurface

2011-09-01 Thread Younes Manton
2011/9/1 Christian König : > This gets mplayers menu overlay working. > +   if (destination_rect) { > +      res_tmpl.width0 = abs(destination_rect->x0-destination_rect->x1); > +      res_tmpl.height0 = abs(destination_rect->y0-destination_rect->y1); > +   } else { > +      res_tmpl.width0 = vlsur

Re: [Mesa-dev] [PATCH 1/7] gallium: try to cleanup a bit of the format mess created with pipe-video merge

2011-09-01 Thread Younes Manton
On Thu, Sep 1, 2011 at 11:08 AM, Christoph Bumiller wrote: > On 01.09.2011 17:02, Younes Manton wrote: >> On Thu, Sep 1, 2011 at 10:56 AM, Michel Dänzer wrote: >>> On Don, 2011-09-01 at 15:50 +0200, Christian König wrote: >>>> Start with correctly defining IA44 and

Re: [Mesa-dev] [PATCH 1/7] gallium: try to cleanup a bit of the format mess created with pipe-video merge

2011-09-01 Thread Younes Manton
On Thu, Sep 1, 2011 at 10:56 AM, Michel Dänzer wrote: > On Don, 2011-09-01 at 15:50 +0200, Christian König wrote: >> Start with correctly defining IA44 and AI44 formats. >> >> Signed-off-by: Christian König >> --- >>  src/gallium/auxiliary/util/u_format.csv   |    6 +++- >>  src/gallium/auxiliary

Re: [Mesa-dev] [PATCH 2/3] xorg/xvmc: Only set decode buffer when available

2011-08-29 Thread Younes Manton
2011/8/29 Maarten Lankhorst : > Hey, > > On 08/29/2011 10:08 AM, Christian König wrote: >> Am Montag, den 29.08.2011, 00:36 -0400 schrieb Younes Manton: >> [snip] >>> Well, that was what the last discussion was all about, whether or not >>> decode buffe

Re: [Mesa-dev] [PATCH 2/3] xorg/xvmc: Only set decode buffer when available

2011-08-28 Thread Younes Manton
On Sun, Aug 28, 2011 at 12:56 PM, Maarten Lankhorst wrote: > On 08/28/2011 06:23 PM, Younes Manton wrote: >> On Sun, Aug 28, 2011 at 12:13 PM, Younes Manton wrote: >>> On Sat, Aug 27, 2011 at 7:58 PM, Maarten Lankhorst >>> wrote: >>>> The nouveau xvmc de

Re: [Mesa-dev] [PATCH 2/3] xorg/xvmc: Only set decode buffer when available

2011-08-28 Thread Younes Manton
On Sun, Aug 28, 2011 at 12:13 PM, Younes Manton wrote: > On Sat, Aug 27, 2011 at 7:58 PM, Maarten Lankhorst > wrote: >> The nouveau xvmc decoder doesn't need it. >> >> Signed-off-by: Maarten Lankhorst >> --- >>  src/gallium/state_trackers/xorg/xvmc/surfa

Re: [Mesa-dev] [PATCH 1/3] xvmc tests: Clean up test_rendering slightly

2011-08-28 Thread Younes Manton
On Sat, Aug 27, 2011 at 7:56 PM, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst > --- >  .../xorg/xvmc/tests/test_rendering.c               |   38 --- >  1 files changed, 24 insertions(+), 14 deletions(-) > > diff --git a/src/gallium/state_trackers/xorg/xvmc/tests/tes

Re: [Mesa-dev] [PATCH 2/3] xorg/xvmc: Only set decode buffer when available

2011-08-28 Thread Younes Manton
On Sat, Aug 27, 2011 at 7:58 PM, Maarten Lankhorst wrote: > The nouveau xvmc decoder doesn't need it. > > Signed-off-by: Maarten Lankhorst > --- >  src/gallium/state_trackers/xorg/xvmc/surface.c |    9 ++--- >  1 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/src/gallium/stat

Re: [Mesa-dev] g3dvl odds & ends

2011-08-26 Thread Younes Manton
On Fri, Aug 26, 2011 at 5:54 PM, Zack Rusin wrote: > On Friday, August 26, 2011 05:12:52 PM Younes Manton wrote: >> On Fri, Aug 26, 2011 at 4:31 PM, Brian Paul wrote: >> > Two things that should probably be fixed in the src/gallium/auxiliary/vl/ >> > code: >> &

Re: [Mesa-dev] g3dvl odds & ends

2011-08-26 Thread Younes Manton
On Fri, Aug 26, 2011 at 4:31 PM, Brian Paul wrote: > Two things that should probably be fixed in the src/gallium/auxiliary/vl/ > code: > > 1. The copyright statements refer to Tungsten Graphics.  That's probably a > copy & paste error.  s/Tungsten Graphics/the authors/ or thereabouts. > > 2. #incl

Re: [Mesa-dev] Reworking the g3dvl interface and mpeg 2 bitstream parser

2011-08-25 Thread Younes Manton
o the XvMC interface > it doesn't implement zscan, quant and mismatch control inside the > bitstream parser, so that still needs to be done on the hardware side. > > Sorry for the delay, beside recovering from a hard-disk crash, I needed > a couple of days to hammer out all t

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-08-16 Thread Younes Manton
2011/8/16 Christian König : > Am Dienstag, den 16.08.2011, 01:15 -0400 schrieb Younes Manton: >> Anyway, here are some specific comments: >> >> +   for (; num_macroblocks > 0; --num_macroblocks) { >> +      mb->base.codec = PIPE_VIDEO_CODEC_MPEG12; >> +  

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-08-15 Thread Younes Manton
Hi, I tried to give some thought to how this interface would work for decoders that can't or would prefer not to support multiple decode buffers, and most of the scenarios I came up with seem to work out, so overall I'm not opposed to it. Even though I still think this can be done by each driver w

Re: [Mesa-dev] GPL'd vl_mpeg12_bitstream.c

2011-08-12 Thread Younes Manton
2011/8/12 Christian König : > Am Donnerstag, den 11.08.2011, 12:04 -0400 schrieb Younes Manton: >> It's been brought to my attention that the source this is based on is >> GPL'd, which means it needs to go before 7.12 is released since it's >> incompatible

[Mesa-dev] GPL'd vl_mpeg12_bitstream.c

2011-08-11 Thread Younes Manton
It's been brought to my attention that the source this is based on is GPL'd, which means it needs to go before 7.12 is released since it's incompatible with Mesa's MIT license. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesk

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-08-09 Thread Younes Manton
2011/8/8 Christian König : > Am Montag, den 08.08.2011, 15:00 +0200 schrieb Maarten Lankhorst: >> On 08/08/2011 12:10 PM, Christian König wrote: >> > Most modern players doesn't do it like this any more, but it still seems >> > to cause a bunch of problems when seeking or fast forward both with >>

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-08-08 Thread Younes Manton
2011/8/8 Christian König : > Am Montag, den 08.08.2011, 15:00 +0200 schrieb Maarten Lankhorst: >> On 08/08/2011 12:10 PM, Christian König wrote: >> > Most modern players doesn't do it like this any more, but it still seems >> > to cause a bunch of problems when seeking or fast forward both with >>

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-08-08 Thread Younes Manton
2011/8/8 Christian König : > Am Samstag, den 06.08.2011, 14:37 -0400 schrieb Younes Manton: >> The attached patch I believe should satisfy everyone's needs here. It >> removes the use of pipe_video_decode_buffer from the state tracker and >> moves it to the shader decode

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-07-29 Thread Younes Manton
On Fri, Jul 29, 2011 at 8:15 PM, Maarten Lankhorst wrote: > On 07/30/2011 01:57 AM, Younes Manton wrote: >> On Fri, Jul 29, 2011 at 7:45 PM, Maarten Lankhorst >> wrote: >>> On 07/30/2011 01:05 AM, Younes Manton wrote: >>>> On Fri, Jul 29, 2011 at 6:

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-07-29 Thread Younes Manton
On Fri, Jul 29, 2011 at 7:45 PM, Maarten Lankhorst wrote: > On 07/30/2011 01:05 AM, Younes Manton wrote: >> On Fri, Jul 29, 2011 at 6:46 PM, Maarten Lankhorst >> wrote: >>>> 2nd patch isn't needed. You shouldn't call vl_video_buffer_create_ex, >>&g

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-07-29 Thread Younes Manton
On Fri, Jul 29, 2011 at 6:46 PM, Maarten Lankhorst wrote: >> 2nd patch isn't needed. You shouldn't call vl_video_buffer_create_ex, >> you should override the create_buffer hook yourself and do what you >> want. I'll push the 1st one later. > What create_buffer hook do you mean? If you mean > pipe_

Re: [Mesa-dev] hardware xvmc video decoding with nouveau

2011-07-29 Thread Younes Manton
On Fri, Jul 29, 2011 at 9:37 AM, Maarten Lankhorst wrote: > Hi guys, > > With some help from the nouveau team I managed to get video acceleration > working for my nv96 card. The video buffer api works well enough for nouveau, > I added flags to vl_video_buffer_create_ex so I could force a linear s

Re: [Mesa-dev] [PATCH] gallium/softpipe: Don't clobber dest color/alpha before masking.

2011-07-23 Thread Younes Manton
On Fri, Jul 22, 2011 at 10:00 AM, Brian Paul wrote: > On 07/21/2011 06:59 PM, Younes Manton wrote: >> >> The blend_quad function clobbers the actual render target color/alpha >> values while applying the destination blend factor, which results in >> restoring the wro

[Mesa-dev] [PATCH] gallium/softpipe: Don't clobber dest color/alpha before masking.

2011-07-21 Thread Younes Manton
The blend_quad function clobbers the actual render target color/alpha values while applying the destination blend factor, which results in restoring the wrong value during the masking stage for write-disabled channels. --- src/gallium/drivers/softpipe/sp_quad_blend.c | 185 +--

Re: [Mesa-dev] [PATCH 2/2] st/mesa: Handle GL_MAP_INVALIDATE_BUFFER_BIT in st_bufferobj_map_range().

2011-07-18 Thread Younes Manton
On Mon, Jul 18, 2011 at 8:32 PM, Marek Olšák wrote: > On Tue, Jul 19, 2011 at 12:21 AM, Jose Fonseca wrote: >> >> >> - Original Message - >>> We can't do try-map + create + map + dereference internally in a >>> driver. Creating a new buffer and replacing a pointer to the old one >>> may l

Re: [Mesa-dev] [PATCH 2/2] st/mesa: Handle GL_MAP_INVALIDATE_BUFFER_BIT in st_bufferobj_map_range().

2011-07-18 Thread Younes Manton
On Mon, Jul 18, 2011 at 6:21 PM, Jose Fonseca wrote: > > > - Original Message - >> We can't do try-map + create + map + dereference internally in a >> driver. Creating a new buffer and replacing a pointer to the old one >> may lead to the following issue. If a buffer pointer is replaced, i

[Mesa-dev] Pipe-video for HW decoders (Was: [PATCH 2/2] gallium: don't use enum bitfields in p_video_state.h)

2011-07-14 Thread Younes Manton
On Thu, Jul 14, 2011 at 1:19 PM, Christian König wrote: > Yeah, I also thought about this. My overall feeling was to get it into > VRAM first and then bring it into the form needed by the hardware with a > shader if the need arise. That's pretty much impossible since you can't use a shader to gen

Re: [Mesa-dev] About merging pipe-video to master

2011-07-12 Thread Younes Manton
2011/7/12 Keith Whitwell : > I'm a bit unsure about what's the best approach here, though at this > stage I'm happy with your approach and don't think it needs to be > changed before any merge. > > But speaking in general terms, individual planes map well onto 8-bit > single-component texture image

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-17 Thread Younes Manton
On Thu, Jun 16, 2011 at 10:14 AM, Jose Fonseca wrote: > > Younes, > > If the thread you quote had been last word on the subject, then then this > thread would have never happened: > >  http://www.mail-archive.com/mesa3d-dev@lists.sourceforge.net/msg09601.html > > and this conversation would not b

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-13 Thread Younes Manton
On Mon, Jun 13, 2011 at 3:23 PM, Jose Fonseca wrote: > > - Original Message - >> Am 05.06.2011 06:31, schrieb Younes Manton: >> > 2011/6/4 Jose Fonseca : >> >> At very least there are ovious things that need to be fixed: >> >> >>

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-13 Thread Younes Manton
On Mon, Jun 6, 2011 at 12:52 PM, Roland Scheidegger wrote: > Am 05.06.2011 06:31, schrieb Younes Manton: >> 2011/6/4 Jose Fonseca : >>> At very least there are ovious things that need to be fixed: >>> >>> - get_param / is_format_supported should not be duplic

Re: [Mesa-dev] Status of VDPAU and XvMC state-trackers (was Re: Build error on current xvmc-r600 pipe-video)

2011-06-04 Thread Younes Manton
2011/6/4 Jose Fonseca : > I think we need to have a proper review round of the gallium interfaces, so > that we have an interface everybody feels that we can support going forward, > which did not happen last round. > > That said, I don't think much attention has been given to this branch outside

Re: [Mesa-dev] Status update of XvMC on R600

2010-11-12 Thread Younes Manton
2010/11/12 Christian König : > What I need for both the ycrcb texture and vertex uploads is a buffer in > system memory, where the cpu access is fast and a function to tell the > gpu to upload this buffer to vram, so the cpu doesn't need to pump the > data over the system bus, wait for an "in use"

Re: [Mesa-dev] Status update of XvMC on R600

2010-11-10 Thread Younes Manton
On Wed, Nov 10, 2010 at 9:56 AM, Christian König wrote: > I also started to profile the performance of the code a bit, as expected > we spend far to much time deciding of how and where to draw something > compared to really drawing something. Up to 50% of the whole cpu time is > spend in gen_block

Re: [Mesa-dev] XvMC and VDPAU on radeon hardware

2010-10-22 Thread Younes Manton
2010/10/22 Christian König : > Hi, Younes, > > my target is the R600 chipset not the R300 series, so the first step was > merging the pipe-video branche with master and getting r600g to work. > > After this was done, I added a video context creation function to r600g > as you suggested. Least I fix

Re: [Mesa-dev] RFC: array textures in gallium and assorted cleanups

2010-06-10 Thread Younes Manton
On Thu, Jun 10, 2010 at 3:23 PM, Roland Scheidegger wrote: > On 10.06.2010 21:14, Keith Whitwell wrote: >> On Thu, 2010-06-10 at 11:32 -0700, Roland Scheidegger wrote: >>> On 10.06.2010 17:12, Keith Whitwell wrote: On Thu, 2010-06-10 at 07:29 -0700, Brian Paul wrote: > Keith Whitwell wrot