[Mesa-dev] [PATCH] r600g: Disable LLVM by default at runtime for graphics

2014-04-15 Thread Michel Dänzer
From: Michel Dänzer For graphics, the LLVM compiler backend currently has many shortcomings compared to the non-LLVM one. E.g. it can't handle geometry shaders yet, but that's just the tip of the iceberg. So building Mesa with --enable-r600-llvm-compiler is currently not recommended for anyone w

Re: [Mesa-dev] [PATCH] r600g/radeonsi: Map transfer staging texture unsynchronized when possible

2014-04-15 Thread Michel Dänzer
On 15.04.2014 19:40, Marek Olšák wrote: > The staging texture should always be idle, so I guess this just skips > the needless GEM_WAIT_IDLE call? Yes, exactly. Apparently that can incur a significant cost in some cases. > Reviewed-by: Marek Olšák Thank you, pushed. -- Earthling Michel Dänz

Re: [Mesa-dev] Mesa 10.1.1 is imminent

2014-04-15 Thread Kenneth Graunke
On 04/15/2014 05:59 PM, Carl Worth wrote: > Hi folks, > > I've been through all of my email backlog to the mesa-stable@ list and > just pushed out a few additional fixes to the 10.1 branch, (perhaps with > a bit less testing than I would normally do before pushing). > > I'll give this some additi

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Kenneth Graunke
On 04/15/2014 05:16 PM, Ian Romanick wrote: > On 04/15/2014 03:50 PM, Kenneth Graunke wrote: >> On 04/15/2014 10:08 AM, Mike Stroyan wrote: >>> I would go farther than requiring the returned bo->size to be covered by >>> backing pages. >>> There really should be backing pages for every page mapped

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Chia-I Wu
On Wed, Apr 16, 2014 at 3:18 AM, Eric Anholt wrote: > Kenneth Graunke writes: > >> On 04/14/2014 05:33 PM, Eric Anholt wrote: >>> This manifested as rendering failures or sometimes GPU hangs in >>> compositors when they accidentally got MSAA visuals due to a bug in the X >>> Server. Today we dec

Re: [Mesa-dev] [PATCH] mesa: add missing DebugMessageControl types

2014-04-15 Thread Timothy Arceri
Hi Carl, After a quite look the new series doesnt apply cleanly to 10.1 as there have been a number of cleanups in between. I don't think I will get around to rebasing in time for the stable release but I don't think its a big deal if this fix doesn't go in. Tim On Tue, 2014-04-15 at 17:19 -07

[Mesa-dev] [PATCH] meta: Clip src/dest rects in BlitFramebuffer, using the scissor

2014-04-15 Thread Chris Forbes
Fixes piglit's fbo-blit-stretch test on drivers which use the meta path. (i965: should fix Broadwell, but also fixes Sandybridge/Ivybridge/Haswell since this test falls off the blorp path now due to format conversion) V2: Use scissor instead of just mangling the rects, to avoid texcoord rounding p

Re: [Mesa-dev] [PATCH] gallivm: fix compilation with llvm 3.5 r206241+

2014-04-15 Thread Tom Stellard
On Wed, Apr 16, 2014 at 03:49:03AM +0200, srol...@vmware.com wrote: > From: Roland Scheidegger > Reviewed-by: Tom Stellard > Just adjust to the ever-changing API, pass in MCContext when creating the > MCDisassembler. > --- > src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 31 > ++

Re: [Mesa-dev] [PATCH] mesa: add missing DebugMessageControl types

2014-04-15 Thread Timothy Arceri
Hi Carl, In the end I created a new series [1] to fix this issue and at the same time fix a few other issues such as making ARB_debug_output an alias of KHR_debug. I didn't send this to stable as I wasn't sure if this change would be considered to invasive for stable, but it would be good in my op

[Mesa-dev] [PATCH] gallivm: fix compilation with llvm 3.5 r206241+

2014-04-15 Thread sroland
From: Roland Scheidegger Just adjust to the ever-changing API, pass in MCContext when creating the MCDisassembler. --- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 31 +++- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_

[Mesa-dev] [Bug 77493] lp_test_arit fails with llvm >= llvm-3.5svn r206094

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77493 --- Comment #1 from Roland Scheidegger --- I'm actually not seeing this by default, apparently because we already pass in +avx if that's available precisely because llvm couldn't handle it on its own (so setting LP_NATIVE_VECTOR_WIDTH=128 causes

Re: [Mesa-dev] [PATCH] mesa: add missing DebugMessageControl types

2014-04-15 Thread Carl Worth
Timothy Arceri writes: > Forgot to CC stable. This should apply to both 10 branches. Hi Timothy, The specific patch you were referring to didn't get applied. But a very similar version did appear later (which I didn't find in my email archives). See below. Shall I pick this over to both the 10.

Re: [Mesa-dev] [PATCH] glapi: Add KHR_debug functions to check_table test

2014-04-15 Thread Timothy Arceri
bump On Fri, 2014-04-04 at 22:08 +1100, Timothy Arceri wrote: > Signed-off-by: Timothy Arceri > --- > src/mapi/glapi/tests/check_table.cpp | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/mapi/glapi/tests/check_table.cpp > b/src/mapi/glapi/tests/check_table.cpp > index 89d907

Re: [Mesa-dev] [Mesa-stable] [PATCH] haiku: Fix build through scons corrections and viewport fixes

2014-04-15 Thread Carl Worth
Alexander von Gluck IV writes: > I'd like to get this into the 10.1.x branch as all of the changes are > build fixes to issues present in 10.1.0 (even the pthread change, seems > pthread support is a requirement now as without it Mesa won't build) Hi Alexander, I did just pick this over to the 1

[Mesa-dev] Mesa 10.1.1 is imminent

2014-04-15 Thread Carl Worth
Hi folks, I've been through all of my email backlog to the mesa-stable@ list and just pushed out a few additional fixes to the 10.1 branch, (perhaps with a bit less testing than I would normally do before pushing). I'll give this some additional, real testing and let it sit overnight for anyone e

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Ian Romanick
On 04/15/2014 03:50 PM, Kenneth Graunke wrote: > On 04/15/2014 10:08 AM, Mike Stroyan wrote: >> I would go farther than requiring the returned bo->size to be covered by >> backing pages. >> There really should be backing pages for every page mapped by >> drm_intel_gem_bo_map. >> No mapped addresses

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Kenneth Graunke
On 04/15/2014 10:08 AM, Mike Stroyan wrote: > I would go farther than requiring the returned bo->size to be covered by > backing pages. > There really should be backing pages for every page mapped by > drm_intel_gem_bo_map. > No mapped addresses should be affecting memory outside of an object's > b

Re: [Mesa-dev] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Kenneth Graunke
On 04/15/2014 12:18 PM, Eric Anholt wrote: > Kenneth Graunke writes: > >> On 04/14/2014 05:33 PM, Eric Anholt wrote: >>> This manifested as rendering failures or sometimes GPU hangs in >>> compositors when they accidentally got MSAA visuals due to a bug in the X >>> Server. Today we decided that

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Courtney Goeltzenleuchter
On Tue, Apr 15, 2014 at 2:16 PM, Eric Anholt wrote: > Courtney Goeltzenleuchter writes: > > > On Tue, Apr 15, 2014 at 1:18 PM, Eric Anholt wrote: > > > >> Kenneth Graunke writes: > >> > >> > On 04/14/2014 05:33 PM, Eric Anholt wrote: > >> >> This manifested as rendering failures or sometimes G

Re: [Mesa-dev] [PATCH] i965/fs: Add pass to rename registers to break live ranges.

2014-04-15 Thread Eric Anholt
Matt Turner writes: > From: Kenneth Graunke > > The pass breaks live ranges of virtual registers by allocating new > registers when it sees an assignment to a virtual GRF it's already seen > written. > > total instructions in shared programs: 1656292 -> 1651898 (-0.27%) > instructions in affecte

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Bug 77449 depends on bug 77207, which changed state. Bug 77207 Summary: [ivb/hsw] batch overwritten with garbage https://bugs.freedesktop.org/show_bug.cgi?id=77207 What|Removed |Added --

[Mesa-dev] [Bug 77502] New: libOpenVG contains no vg Symbols

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77502 Priority: medium Bug ID: 77502 Assignee: mesa-dev@lists.freedesktop.org Summary: libOpenVG contains no vg Symbols Severity: major Classification: Unclassified OS: Linux (All)

Re: [Mesa-dev] Alternative to DRM_IOCTL_GEM_OPEN for render-nodes

2014-04-15 Thread Axel Davy
On 15/04/2014, Tom Stellard wrote : Hi, I've been trying to get piglit working on radeon without X using gbm and render-nodes, and the problem right now is that the radeon winsys is trying to use DRM_IOCTL_GEM_OPEN, which is not allowed with render-nodes. Hi, For render-nodes, you need to us

[Mesa-dev] Alternative to DRM_IOCTL_GEM_OPEN for render-nodes

2014-04-15 Thread Tom Stellard
Hi, I've been trying to get piglit working on radeon without X using gbm and render-nodes, and the problem right now is that the radeon winsys is trying to use DRM_IOCTL_GEM_OPEN, which is not allowed with render-nodes. I'm not sure if we need to replace this ioctl with something else or if the p

[Mesa-dev] [Bug 77500] New: [llvmpipe] src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:230:71: error: no matching function for call to ‘llvm?=::Target::createMCDisassembler(const llvm::MCSubtargetInfo

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77500 Priority: medium Bug ID: 77500 CC: bri...@vmware.com, jfons...@vmware.com, srol...@vmware.com Assignee: mesa-dev@lists.freedesktop.org Summary: [llvmpipe]

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Eric Anholt
Courtney Goeltzenleuchter writes: > On Tue, Apr 15, 2014 at 1:18 PM, Eric Anholt wrote: > >> Kenneth Graunke writes: >> >> > On 04/14/2014 05:33 PM, Eric Anholt wrote: >> >> This manifested as rendering failures or sometimes GPU hangs in >> >> compositors when they accidentally got MSAA visuals

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Courtney Goeltzenleuchter
On Tue, Apr 15, 2014 at 1:18 PM, Eric Anholt wrote: > Kenneth Graunke writes: > > > On 04/14/2014 05:33 PM, Eric Anholt wrote: > >> This manifested as rendering failures or sometimes GPU hangs in > >> compositors when they accidentally got MSAA visuals due to a bug in the > X > >> Server. Today

Re: [Mesa-dev] [PATCH 5/7] translate_sse: Preserve low bit during unsigned -> float conversion.

2014-04-15 Thread Roland Scheidegger
Am 15.04.2014 02:52, schrieb Andreas Hartmetz: >>> + /* right shift & convert, losing the low bit - must clear >>> +* high bit because there is no unsigned convert >>> instruction */> >>> sse2_psrld_imm(p->func, dataXMM, 1); >>> >>> + sse

Re: [Mesa-dev] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Eric Anholt
Kenneth Graunke writes: > On 04/14/2014 05:33 PM, Eric Anholt wrote: >> This manifested as rendering failures or sometimes GPU hangs in >> compositors when they accidentally got MSAA visuals due to a bug in the X >> Server. Today we decided that the problem in compositors was equivalent >> to a

[Mesa-dev] [Bug 77493] lp_test_arit fails with llvm >= llvm-3.5svn r206094

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77493 Vinson Lee changed: What|Removed |Added See Also||http://llvm.org/bugs/show_b

[Mesa-dev] [Bug 77493] New: lp_test_arit fails with llvm >= llvm-3.5svn r206094

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77493 Priority: medium Bug ID: 77493 CC: bri...@vmware.com, jfons...@vmware.com, srol...@vmware.com Assignee: mesa-dev@lists.freedesktop.org Summary: lp_test_arit fails with

Re: [Mesa-dev] [PATCH] i965: Avoid dependency hints on math opcodes

2014-04-15 Thread Matt Turner
On Wed, Feb 12, 2014 at 4:24 PM, wrote: > From: Mike Stroyan > > Putting NoDDClr and NoDDChk dependency control on instruction > sequences that include math opcodes can cause corruption of channels. > Treat math opcodes like send opcodes and suppress dependency hinting. > > Signed-off-by: Mike

Re: [Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-15 Thread Adam Jackson
On Sat, 2014-04-12 at 02:25 +0200, Giovanni Campagna wrote: > Hi everyone, > > Some time ago I sent patches to enable the swrast driver on > GBM/DRM, and I did them in the dumbest way possible (that is, > having GBM implement the dri-swrast interface), to make sure > it would work without kernel s

Re: [Mesa-dev] Accelerated meta CopyTexSubImage

2014-04-15 Thread Anuj Phogat
On Tue, Apr 8, 2014 at 2:54 PM, Ian Romanick wrote: > On 04/08/2014 02:03 PM, Eric Anholt wrote: >> Here's a rework of the series for meta CopyTexSubImage (required for >> i965's gen8 support, since we're probably going to avoid doing blorp at >> all for it). Ken had almost-reviewed a previous ve

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Mike Stroyan
I would go farther than requiring the returned bo->size to be covered by backing pages. There really should be backing pages for every page mapped by drm_intel_gem_bo_map. No mapped addresses should be affecting memory outside of an object's backing pages. If tiling can result in access to unalloc

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Laurent carlier changed: What|Removed |Added Depends on||76484 -- You are receiving this mail

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix buffer overruns in MSAA MCS buffer clearing.

2014-04-15 Thread Courtney Goeltzenleuchter
What timing, we were just looking at this exact issue - intermittent glxgears rendering issues when using multisample buffers. What's the plan for DRM? Seems like it's broken if writing to the buffer size indicated (bo->size) causes us to clobber other BOs. Courtney On Mon, Apr 14, 2014 at 8:54

Re: [Mesa-dev] EXTERNAL: Re: Clover clEnqueue* function don't implement blocking?

2014-04-15 Thread Francisco Jerez
"Dorrington, Albert" writes: >> -Original Message- >> From: Francisco Jerez [mailto:curroje...@riseup.net] >> > In the case where I had the 23,328 events in the queue, at least two >> > dozen kernels has been compiled, and each kernel had been executed 6 >> times, with different input par

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Courtney Goeltzenleuchter changed: What|Removed |Added Depends on||77207 -- You are receiving

Re: [Mesa-dev] [PATCH 0/5] util: Rework endian handling in python code

2014-04-15 Thread Roland Scheidegger
FWIW the idea looks good to me. But my python skills are lacking... Roland Am 15.04.2014 15:54, schrieb Richard Sandiford: > Ping > > Richard Sandiford writes: >> Ping (with fixed subject) >> >> Richard Sandiford writes: >>> This is a refresh of: >>> >>> >>> https://urldefense.proofpoint.c

Re: [Mesa-dev] EXTERNAL: Re: Clover clEnqueue* function don't implement blocking?

2014-04-15 Thread Dorrington, Albert
> -Original Message- > From: Francisco Jerez [mailto:curroje...@riseup.net] > > In the case where I had the 23,328 events in the queue, at least two > > dozen kernels has been compiled, and each kernel had been executed 6 > times, with different input parameters. > > (I would have to back

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2014-04-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Courtney Goeltzenleuchter changed: What|Removed |Added Depends on||68690, 74700, 76749 -- You

Re: [Mesa-dev] EXTERNAL: Re: Clover clEnqueue* function don't implement blocking?

2014-04-15 Thread Francisco Jerez
"Dorrington, Albert" writes: >> -Original Message- >> From: Francisco Jerez [mailto:curroje...@riseup.net] >> >> "Dorrington, Albert" writes: >> >> >> -Original Message- >> >> From: Francisco Jerez [mailto:curroje...@riseup.net] >> > > "Dorrington, Albert" writes: >> >> > >>

Re: [Mesa-dev] [PATCH 0/5] util: Rework endian handling in python code

2014-04-15 Thread Richard Sandiford
Ping Richard Sandiford writes: > Ping (with fixed subject) > > Richard Sandiford writes: >> This is a refresh of: >> >>http://lists.freedesktop.org/archives/mesa-dev/2013-June/040594.html >> >> At the moment the python code uses sys.byteorder to decide whether >> u_format_table.c should be f

Re: [Mesa-dev] EXTERNAL: Re: Clover clEnqueue* function don't implement blocking?

2014-04-15 Thread Dorrington, Albert
> -Original Message- > From: Francisco Jerez [mailto:curroje...@riseup.net] > > "Dorrington, Albert" writes: > > >> -Original Message- > >> From: Francisco Jerez [mailto:curroje...@riseup.net] > > > "Dorrington, Albert" writes: > >> > > >> > From reading the OpenCL spec (and pe

Re: [Mesa-dev] [PATCH 5/7] translate_sse: Preserve low bit during unsigned -> float conversion.

2014-04-15 Thread Roland Scheidegger
Am 15.04.2014 02:52, schrieb Andreas Hartmetz: >>> + /* right shift & convert, losing the low bit - must clear >>> +* high bit because there is no unsigned convert >>> instruction */> >>> sse2_psrld_imm(p->func, dataXMM, 1); >>> >>> + sse

Re: [Mesa-dev] EXTERNAL: Re: Clover clEnqueue* function don't implement blocking?

2014-04-15 Thread Francisco Jerez
"Dorrington, Albert" writes: >> -Original Message- >> From: Francisco Jerez [mailto:curroje...@riseup.net] > > "Dorrington, Albert" writes: >> > >> > From reading the OpenCL spec (and perhaps I'm misinterpreting something >> again), section 5.10 Flush and Finish says: >> > >> >Any b

Re: [Mesa-dev] EXTERNAL: Re: Clover clEnqueue* function don't implement blocking?

2014-04-15 Thread Dorrington, Albert
> -Original Message- > From: Francisco Jerez [mailto:curroje...@riseup.net] > "Dorrington, Albert" writes: > > > > From reading the OpenCL spec (and perhaps I'm misinterpreting something > again), section 5.10 Flush and Finish says: > > > > Any blocking commands queued in a command-qu

Re: [Mesa-dev] [PATCH 01/10] winsys/radeon: remove cs_write_reloc, add simpler cs_get_reloc

2014-04-15 Thread Christian König
Well the question isn't if we need a synchronous flush, which as far as I can see is clear that we need it. But instead if we should implement the synchronous flush if with an extra flag while calling cs_flush_sync directly after the submission is equivalent. It is possible that upper layers n

Re: [Mesa-dev] [PATCH] r600g/radeonsi: Map transfer staging texture unsynchronized when possible

2014-04-15 Thread Marek Olšák
The staging texture should always be idle, so I guess this just skips the needless GEM_WAIT_IDLE call? Reviewed-by: Marek Olšák Marek On Tue, Apr 15, 2014 at 7:46 AM, Michel Dänzer wrote: > From: Michel Dänzer > > The transfer staging texture is always freshly allocated, so for write-only > t

[Mesa-dev] [PATCH] glsl: Small optimization for constant conditionals

2014-04-15 Thread Iago Toral Quiroga
Once the relevant branch has been identified do not iterate over the instructions in the branch, do a linked list insertion instead to avoid the loop. --- src/glsl/opt_if_simplification.cpp | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/glsl/opt_if_simplificatio

[Mesa-dev] [PATCH] glsl: Small optimization for constant conditionals

2014-04-15 Thread Iago Toral Quiroga
We are traversing the relevant branch manually with a for loop to insert the instructions one by one. I think we can insert all the instructions in a single operation using a list insert instead. One thing to notice, the insert_before() method for lists will call make_empty() on the passed list af

Re: [Mesa-dev] Accelerated meta CopyTexSubImage

2014-04-15 Thread Kenneth Graunke
On 04/08/2014 02:03 PM, Eric Anholt wrote: > Here's a rework of the series for meta CopyTexSubImage (required for > i965's gen8 support, since we're probably going to avoid doing blorp at > all for it). Ken had almost-reviewed a previous version of the patch, but > I went back and did some refacto

[Mesa-dev] [PATCH V2] meta: Clip src/dest rects in BlitFramebuffer, using the scissor

2014-04-15 Thread Chris Forbes
Fixes piglit's fbo-blit-stretch test on drivers which use the meta path. (i965: should fix Broadwell, but also fixes Sandybridge/Ivybridge/Haswell since this test falls off the blorp path now due to format conversion) Signed-off-by: Chris Forbes Bugzilla: https://bugs.freedesktop.org/show_bug.cgi

[Mesa-dev] Heavy ioq3 regression in mesa (r600g/cayman/aruba)

2014-04-15 Thread Lauri Kasanen
Hi, Tremulous and Smoking Guns regressed in Mesa master, ok in 020c43f, broken in 4ddf51db. Tremulous 133 to 33 fps, Smoking Guns 153 to 40. In the ok version, hyperz was enabled by default; in the more recent master, it was disabled by default, but enabled via the R600_DEBUG env var. The env var

Re: [Mesa-dev] [PIGLIT,radeonsi] crash in spec/glsl-1.50/execution/geometry/max-input-components – who's bug is it?

2014-04-15 Thread Michel Dänzer
On 23.03.2014 04:53, Kai Wasserbäch wrote: > Dear Mesa devs, > I'm not sure whether this is a bug in Mesa, LLVM or in eglibc. The crash > happens > in _int_malloc, but since that is certainly one of the more often used > functions, I'm not yet convinced, the fault lies indeed with eglibc. > > The