[Mesa-dev] Problem getting a 32-bit X11 visual when porting from GLX to EGL

2013-11-06 Thread Simon Farnsworth
d = xcb_screen_allowed_depths_iterator(s.data); + while (d.rem > 0) { EGLBoolean class_added[6] = { 0, }; visuals = xcb_depth_visuals(d.data); -- Simon Farnsworth Software Engineer ONELAN Ltd http://www.onelan.com signature.asc Description: This is a digitally signed message part

[Mesa-dev] [PATCHv4] r600g: Use a fake reloc to sleep for fences

2012-02-14 Thread Simon Farnsworth
busywaiting if the user provided a timeout. Signed-off-by: Simon Farnsworth --- This is now ready to apply. We might also want to backport it to the 8.0 branch, as without this or an equivalent, a GPU reset can result in applications busywaiting forever. v4: Rebase against master - cleanups to r600g

Re: [Mesa-dev] [PATCHv3] r600g: Use a fake reloc to sleep for fences

2012-02-10 Thread Simon Farnsworth
On Thursday 9 February 2012 20:31:18 Marek Olšák wrote: > 2012/2/9 Simon Farnsworth : > > On Wednesday 8 February 2012 18:28:05 Michel Dänzer wrote: > >> On Fre, 2012-02-03 at 17:32 +, Simon Farnsworth wrote: > >> > --- a/src/gallium/drivers/r600/r600_hw_cont

Re: [Mesa-dev] [PATCHv3] r600g: Use a fake reloc to sleep for fences

2012-02-09 Thread Simon Farnsworth
On Wednesday 8 February 2012 18:28:05 Michel Dänzer wrote: > On Fre, 2012-02-03 at 17:32 +0000, Simon Farnsworth wrote: > > r300g is able to sleep until a fence completes rather than busywait > > because it creates a special buffer object and relocation that stays > > busy un

[Mesa-dev] [PATCHv3] r600g: Use a fake reloc to sleep for fences

2012-02-03 Thread Simon Farnsworth
busywaiting if the user provided a timeout. Signed-off-by: Simon Farnsworth --- v3: At Dave Airlie's suggestion on dri-devel, make use of the BO to give us a fighting chance of recovering after a GPU reset. We know that the fence will never be signalled by hardware if the dummy BO has gone idle

[Mesa-dev] [PATCH] r600g: Use a fake reloc to sleep for fences

2012-02-02 Thread Simon Farnsworth
busywaiting if the user provided a timeout. Signed-off-by: Simon Farnsworth --- v2: Address Michel's review comments. The fake bo is now unconditional, and is unreferenced when the fence is moved to the fence pool by fence_reference. This entailed shifting to r600_resource, which cleaned the code

Re: [Mesa-dev] [PATCH] r600g: Use a fake reloc to sleep for fences

2012-02-01 Thread Simon Farnsworth
On Wednesday 1 February 2012, Michel Dänzer wrote: > On Mit, 2012-02-01 at 15:01 +0000, Simon Farnsworth wrote: > > + if (sleep_bo) { > > + unsigned reloc_index; > > + /* Create a dummy BO so that fence_finish without a timeout can > > s

Re: [Mesa-dev] [PATCH] r600g: Use a fake reloc to sleep for fences

2012-02-01 Thread Simon Farnsworth
On Wednesday 1 February 2012, Simon Farnsworth wrote: > This is a userspace only fix for my problem, as suggested by Mark Olšák. It My apologies, Marek; my typing appears to have failed me, and renamed you to Mark. I shall try not to make that mistake again. -- Simon Farnsworth Softw

[Mesa-dev] [PATCH] r600g: Use a fake reloc to sleep for fences

2012-02-01 Thread Simon Farnsworth
busywaiting if the user provided a timeout. Signed-off-by: Simon Farnsworth --- This is a userspace only fix for my problem, as suggested by Mark Olšák. It doesn't fix the case with a timeout (which doesn't matter to me), but works on existing kernels. Given that my previous suggested fix op

[Mesa-dev] [PATCHv2] drm/radeon: Add support for userspace fence waits

2012-02-01 Thread Simon Farnsworth
Userspace currently busywaits for fences to complete; on my workload, this busywait consumes 10% of the available CPU time. Provide an ioctl so that userspace can wait for an EOP interrupt that corresponds to a previous EVENT_WRITE_EOP. Signed-off-by: Simon Farnsworth --- There's debate on

[Mesa-dev] [PATCHv2] r600g: Use new kernel interface to wait for fences

2012-02-01 Thread Simon Farnsworth
Instead of busywaiting for the GPU to finish a fence, use the new kernel interface to wait for fence completion. If the new kernel interface is unavailable, fall back to busywaiting. Signed-off-by: Simon Farnsworth --- This is simply addressing Michel's review comments against the v1

Re: [Mesa-dev] [PATCH] r600g: Use new kernel interface to wait for fences

2012-02-01 Thread Simon Farnsworth
On Tuesday 31 January 2012, Michel Dänzer wrote: > On Die, 2012-01-31 at 17:02 +0000, Simon Farnsworth wrote: > > Instead of busywaiting for the GPU to finish a fence, use the new kernel > > interface to wait for fence completion. > > > > If the new kernel interface i

Re: [Mesa-dev] [PATCH] Do not use sched_yield() on Linux

2012-01-31 Thread Simon Farnsworth
However its use on Linux has sneaked back in causing suboptimal > performance such as reported by Simon Farnsworth on r600g. Use sleep on > Linux instead. > > Signed-off-by: Alan Swanson > I should note that I'm running my 3D app real-time (SCHED_RR) - the performance pain I was fa

[Mesa-dev] [PATCH] r600g: Use new kernel interface to wait for fences

2012-01-31 Thread Simon Farnsworth
Instead of busywaiting for the GPU to finish a fence, use the new kernel interface to wait for fence completion. If the new kernel interface is unavailable, fall back to busywaiting. Signed-off-by: Simon Farnsworth --- This builds on top of the kernel interface I add in Message-Id: <1328029

Re: [Mesa-dev] [RFC] r600-r800 2D tiling

2012-01-16 Thread Simon Farnsworth
set in the kernel and use those. At a future date, I can envisage the DDX wanting to choose a different tiling layout for DRI2 buffers, or XComposite backing pixmaps (e.g. because someone's benchmarked it and found that choosing something beyond the bare minimum that meets constraints impro

Re: [Mesa-dev] [PATCH] r600g: Fix tiling alignment to match docs

2011-12-13 Thread Simon Farnsworth
On Tuesday 13 December 2011, Simon Farnsworth wrote: > R600 and Evergreen have different tiling requirements. Fix Mesa to match the > documented requirements. > > Signed-off-by: Simon Farnsworth > --- > > This doesn't fix my problems with enabling macro tiling, but

[Mesa-dev] [PATCH] r600g: Fix tiling alignment to match docs

2011-12-13 Thread Simon Farnsworth
R600 and Evergreen have different tiling requirements. Fix Mesa to match the documented requirements. Signed-off-by: Simon Farnsworth --- This doesn't fix my problems with enabling macro tiling, but it does help somewhat. I also need to fix tile shape in the kernel and alignment in the D

[Mesa-dev] [PATCH 2/2] r600g: Set tile_type correctly when textures are created

2011-12-01 Thread Simon Farnsworth
>From discussion on IRC, tile_type should be 1 for depth or stencil textures. On Evergreen, it should also be 1 for some color buffers, but that's handled in the evergreen_cb function when required. Signed-off-by: Simon Farnsworth --- Doesn't fix my tiled scanout fun, but

[Mesa-dev] [PATCH 1/2] r600g: Make tiling alignment restrictions match the DDX

2011-12-01 Thread Simon Farnsworth
It's unclear exactly what the alignment requirements are for Radeon tiled surfaces, but they differ between the DDX and Mesa. Make Mesa match the DDX. Signed-off-by: Simon Farnsworth --- This basically copies across the DDX versions of the restrictions. They differ, and I'm not sure w

[Mesa-dev] [PATCH] gallium: Set renderbuffer's InternalFormat when rendering to texture

2011-09-29 Thread Simon Farnsworth
://bugs.freedesktop.org/show_bug.cgi?id=41263 Signed-off-by: Simon Farnsworth --- src/mesa/state_tracker/st_cb_fbo.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 05139ec..4d32158 100644 --- a/src

[Mesa-dev] Regression in i965 Mesa driver caused by commit c7c64d97836c71eaf2ee3fc6d384877170b8c844

2010-06-22 Thread Simon Farnsworth
de like it's the format of the source buffer (the system framebuffer) that matters, not the format of the destination buffer. -- Thanks in advance for any advice you can offer, Simon Farnsworth ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org h