Re: [Mesa-dev] [PATCH] i965: Fix predicated-send-based discards with MRT.

2014-03-04 Thread Tapani Pälli
On 03/05/2014 03:20 AM, Eric Anholt wrote: We need the header setup to not be predicated on which pixels are undiscarded. I'm not sure originally if I had thought that the mask disable implied predicate disable, or if I had just misread the mask disable as predicate disable. Either way, I know

Re: [Mesa-dev] [PATCH 15/20] configure: read libomxil-bellagio.pc only when it exists

2014-03-04 Thread Christian König
Am 04.03.2014 22:12, schrieb Emil Velikov: Currenly configure.ac will print a warning when one is missing the package. Signed-off-by: Emil Velikov Reviewed-by: Christian König --- configure.ac | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/confi

Re: [Mesa-dev] [PATCH 08/20] gallium/targets: drop link generation for non DRI targets

2014-03-04 Thread Christian König
Am 04.03.2014 22:12, schrieb Emil Velikov: All three (xvmc, vdpau and omx) do not have an alternative loading similar to the dri modules. Thus one needs to explicitly install them in order to use/test them. It's not mainline yet, but at least I'm using VDPAU_DRIVER_PATH=.../mesa/lib/gallium fo

Re: [Mesa-dev] [PATCH 1/2] mesa: fix the format of glEdgeFlagPointer

2014-03-04 Thread Ian Romanick
On 03/04/2014 01:18 PM, Marek Olšák wrote: > On Tue, Mar 4, 2014 at 8:05 AM, Ian Romanick wrote: >> On 03/03/2014 03:25 AM, Marek Olšák wrote: >>> >>> From: Marek Olšák >>> >>> Softpipe expects a float in the vertex shader, which is what glEdgeFlag >>> generates. >>> >>> This fixes piglit/g

[Mesa-dev] Mesa 10.1 released

2014-03-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mesa 10.1 has been released! Mesa 10.1 is a feature release that includes many updates and enhancements. The full list is available in the release notes file in docs/relnotes/10.1.html. The tag in the GIT repository for Mesa 10.1 is 'mesa-10.1'. Mesa

[Mesa-dev] [Bug 71547] compilation failure :#error "SSE4.1 instruction set not enabled"

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71547 --- Comment #5 from Matt Turner --- Sigh. Patch sent. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.fr

[Mesa-dev] [PATCH] mesa: Wrap SSE4.1 code in #ifdef __SSE4_1__.

2014-03-04 Thread Matt Turner
Because people insist on doing things like explicitly disabling SSE 4.1. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71547 --- src/mesa/main/streaming-load-memcpy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/streaming-load-memcpy.c b/src/mesa/main/streaming-l

[Mesa-dev] [Bug 71547] compilation failure :#error "SSE4.1 instruction set not enabled"

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71547 --- Comment #4 from David "okias" Heidelberger --- P.S. because SW is builded on one central machine, I have to use these flags manually, so -march=native isn't solution. -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [Bug 71547] compilation failure :#error "SSE4.1 instruction set not enabled"

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71547 David "okias" Heidelberger changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution

[Mesa-dev] [Bug 71547] compilation failure :#error "SSE4.1 instruction set not enabled"

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71547 --- Comment #3 from David "okias" Heidelberger --- This problem is valid, gcc version 4.8.2 # gcc -march=native -E -v - &1 | grep cc1 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.2/cc1 -E -quiet -v - -march=k8-sse3 -mcx16 -msahf -mno-movbe -mno-ae

Re: [Mesa-dev] [PATCH 1/2] radeonsi: fix blit compressed texture workaround to support 2D arrays

2014-03-04 Thread Michel Dänzer
On Die, 2014-03-04 at 12:32 +0100, Marek Olšák wrote: > From: Marek Olšák > > We don't have a piglit test for this, but I think it's correct. Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer| http://www.amd.com Libre software enthusiast |

Re: [Mesa-dev] [PATCHv2 0/3] st/mesa: make winsys framebuffer sRGB-capable

2014-03-04 Thread Michel Dänzer
On Die, 2014-03-04 at 22:31 +0800, Chia-I Wu wrote: > Hi, > > Until now, we do not support sRGB write for winsys framebuffers. This series > changes that so that winsys framebuffers are marked sRGB-capable when the pipe > driver supports it. > > This is not to be confused with GLX_FRAMEBUFFER_SR

Re: [Mesa-dev] [PATCH] mesa: fix packing/unpacking for MESA_FORMAT_A4R4G4B4_UNORM

2014-03-04 Thread Chia-I Wu
On Wed, Mar 5, 2014 at 12:10 AM, Brian Paul wrote: > Spotted by Chia-I Wu. unpack_ubyte_ARGB_REV() needs the same care too. With that fixed, this patch is Reviewed-by: Chia-I Wu > --- > src/mesa/main/format_pack.c |2 +- > src/mesa/main/format_unpack.c|8 > src/

Re: [Mesa-dev] [PATCH 2/2] clover: Fix building with latest llvm

2014-03-04 Thread Michel Dänzer
On Mit, 2014-03-05 at 00:43 +0100, Marek Olšák wrote: > I'm not an automake expect, but this might need to be done for gallivm > too. It currently fails to compile with latest LLVM. I was having trouble with that as well, because the output of llvm-config didn't contain -std=c++11. I had to make c

Re: [Mesa-dev] [PATCH] radeonsi: Prevent geometry shader from emitting too many vertices

2014-03-04 Thread Michel Dänzer
On Mit, 2014-03-05 at 00:25 +0100, Marek Olšák wrote: > I think this patch breaks geometry shaders with LLVM that doesn't > support the kill instruction in GS. All GS piglit tests fail with: > > SILowerControlFlow.cpp:296: void > {anonymous}::SILowerControlFlowPass::Kill(llvm::MachineInstr&): > As

Re: [Mesa-dev] [PATCH] i965: Fix predicated-send-based discards with MRT.

2014-03-04 Thread Kenneth Graunke
On 03/04/2014 05:20 PM, Eric Anholt wrote: > We need the header setup to not be predicated on which pixels are > undiscarded. I'm not sure originally if I had thought that the mask > disable implied predicate disable, or if I had just misread the mask > disable as predicate disable. Either way, I

[Mesa-dev] [PATCH] i965: Drop special case for edgeflag thanks to Marek's change to core.

2014-03-04 Thread Eric Anholt
--- If the core change lands, this could be squashed in with it as far as I can see from the testcases we have. src/mesa/drivers/dri/i965/brw_draw_upload.c | 9 - 1 file changed, 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_dra

[Mesa-dev] [PATCH] i965: Fix predicated-send-based discards with MRT.

2014-03-04 Thread Eric Anholt
We need the header setup to not be predicated on which pixels are undiscarded. I'm not sure originally if I had thought that the mask disable implied predicate disable, or if I had just misread the mask disable as predicate disable. Either way, I know I had spent more time thinking about this in

[Mesa-dev] [PATCH v2] i965: Add GPU BLIT of texture image to PBO in Intel driver

2014-03-04 Thread Jon Ashburn
Add Intel driver hook for glGetTexImage to accelerate the case of reading texture image into a PBO. This case gets huge performance gains by using GPU BLIT directly to PBO rather than GPU BLIT to temporary texture followed by memcpy. No regressions on Piglit tests with Intel driver. Performance

[Mesa-dev] [PATCH] i965: Set Broadwell MOCS values everywhere it's possible.

2014-03-04 Thread Kenneth Graunke
This patch introduces two pre-canned MOCS values: BDW_MOCS_WB (write-back, all caches) and BDW_MOCS_WT (write-through, all caches). We use write-through caching for render targets, and write-back for all other data. (At least on Haswell, I believe write-back LLC/eLLC didn't work for scan-out buff

Re: [Mesa-dev] [PATCH] i965: Add GPU BLIT of texture image to PBO in Intel driver

2014-03-04 Thread Jon Ashburn
On 02/28/2014 12:56 PM, Ian Romanick wrote: On 02/28/2014 08:08 AM, Jon Ashburn wrote: Add Intel driver hook for glGetTexImage to accelerate the case of reading texture image into a PBO. This case gets huge performance gains by using GPU BLIT directly to PBO rather than GPU BLIT to temporary

Re: [Mesa-dev] [PATCH 2/2] clover: Fix building with latest llvm

2014-03-04 Thread Bruno Jimenez
It's strange, I have just compiled with the latest llvm revision at Arch's mesa-git repo (202852) without problems. I'm not an automake expert either, but at gallium/auxiliary/Makefile.am there's this: AM_CXXFLAGS += \ $(GALLIUM_CFLAGS) \ $(LLVM_CXXFLAGS) So I suppose, of course

[Mesa-dev] [Bug 63717] Poor performance in games with Intel 965GM

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63717 Felix Schwarz changed: What|Removed |Added CC||felix.schwarz@oss.schwarz.e

[Mesa-dev] [Bug 75779] wglCreateContextAttribsARB is missing in software rasterizer and does not work properly in gallium gdi target either

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75779 turbolo...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 75779] wglCreateContextAttribsARB is missing in software rasterizer and does not work properly in gallium gdi target either

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75779 --- Comment #4 from turbolo...@gmail.com --- I think you can just go ahead and close this report, I mean if it simply is not there then no problem. A table of supported stuff per target instead of Mesa version would be very cool for those looking

[Mesa-dev] [Bug 75779] wglCreateContextAttribsARB is missing in software rasterizer and does not work properly in gallium gdi target either

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75779 --- Comment #3 from turbolo...@gmail.com --- In the release notes of the newer versions it states that version OpenGL 3.1 is supported but the version returned is 2.1 by glGetString. Then it goes on to say that the 3.1 is available by creating a c

Re: [Mesa-dev] [PATCH 2/2] clover: Fix building with latest llvm

2014-03-04 Thread Marek Olšák
I'm not an automake expect, but this might need to be done for gallivm too. It currently fails to compile with latest LLVM. Marek On Sun, Mar 2, 2014 at 10:39 PM, Bruno Jiménez wrote: > --- > src/gallium/state_trackers/clover/Makefile.am | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions

[Mesa-dev] [Bug 75779] wglCreateContextAttribsARB is missing in software rasterizer and does not work properly in gallium gdi target either

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75779 turbolo...@gmail.com changed: What|Removed |Added CC||turbolo...@gmail.com --- Comment #

[Mesa-dev] [Bug 75779] wglCreateContextAttribsARB is missing in software rasterizer and does not work properly in gallium gdi target either

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75779 --- Comment #1 from Brian Paul --- The windows gdi target/driver only supports OpenGL 2.1. Where do you see that version 3.1 is supported on Windows in the docs? In any case, glGenFrameBuffers() should work with an OpenGL 2.1 context. In what

[Mesa-dev] [Bug 75779] New: wglCreateContextAttribsARB is missing in software rasterizer and does not work properly in gallium gdi target either

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75779 Priority: medium Bug ID: 75779 Assignee: mesa-dev@lists.freedesktop.org Summary: wglCreateContextAttribsARB is missing in software rasterizer and does not work properly in gallium gdi

Re: [Mesa-dev] [PATCH] radeonsi: Prevent geometry shader from emitting too many vertices

2014-03-04 Thread Marek Olšák
I think this patch breaks geometry shaders with LLVM that doesn't support the kill instruction in GS. All GS piglit tests fail with: SILowerControlFlow.cpp:296: void {anonymous}::SILowerControlFlowPass::Kill(llvm::MachineInstr&): Assertion `MBB.getParent()->getInfo()->ShaderType == ShaderType::PIX

[Mesa-dev] [PATCH] gallium/util: Fix memory leak

2014-03-04 Thread Aaron Watry
Fix a leaked vertex shader in u_blitter.c Signed-off-by: Aaron Watry CC: "10.1" --- src/gallium/auxiliary/util/u_blitter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 95e7fb6..66b511e 100644 --- a/

Re: [Mesa-dev] [PATCH] configure: Fix bashism.

2014-03-04 Thread Brian Paul
On 03/04/2014 03:43 PM, Eric Anholt wrote: /bin/sh defaults to dash on debian. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 258cb3d..3f75266 100644 --- a/configure.ac +++ b/configure.ac @@ -1072,7 +1072,7 @@ if test -n "

[Mesa-dev] [PATCH] configure: Fix bashism.

2014-03-04 Thread Eric Anholt
/bin/sh defaults to dash on debian. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 258cb3d..3f75266 100644 --- a/configure.ac +++ b/configure.ac @@ -1072,7 +1072,7 @@ if test -n "$with_dri_drivers"; then dri_drivers=`IF

Re: [Mesa-dev] [PATCH v2] radeon: Use upload manager for buffer downloads

2014-03-04 Thread Marek Olšák
You check for streamout and CP DMA support, but you don't use resource_copy_region if DMA is not supported. The CP DMA and streamout-based buffer copying is only used by resource_copy_region. The last parameter of buffer_wait should be RADEON_USAGE_WRITE (you're waiting for the last write to the s

[Mesa-dev] [Bug 75212] Mesa selects wrong DRI driver

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75212 Eric Anholt changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [PATCH] mesa: remove remaining uses of _glthread_GetID()

2014-03-04 Thread Brian Paul
It was really only used in the radeon driver for a debug printf. And evidently, libGL.so referenced it just to work around some sort of linker issue. This patch removes the two calls to the function and the function itself. Fixes undefined _glthread_GetID symbol in libGL reported by 'nm'. Though,

[Mesa-dev] [PATCH 10/10] meta: Support BlitFramebuffer from all the other texture targets.

2014-03-04 Thread Eric Anholt
There's already code for them due to the GenerateMipmap path, so we just need to make sure we've got our coordinates present. --- src/mesa/drivers/common/meta_blit.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/common/meta_blit.c b/src/me

[Mesa-dev] [PATCH] mesa: use clear_teximage_fields() in another place

2014-03-04 Thread Brian Paul
Similar to Anuj's change 0f6f92e284cb5. --- src/mesa/main/teximage.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index a6c3581..4346c31 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -4487,8 +

[Mesa-dev] [PATCH 05/10] mesa: Stop skipping the FinishRenderTexture calls for winsys FBOs.

2014-03-04 Thread Eric Anholt
Now that BindRenderbufferTexImage() is a thing that drivers can do, winsys FBOs *can* have NeedsFinishRenderTexture set. The early exit here predated the NFRT flag, so it did make sense at the time. --- src/mesa/main/fbobject.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/main/f

[Mesa-dev] [PATCH 02/10] i965: Drop broken front_buffer_reading/drawing optimization.

2014-03-04 Thread Eric Anholt
The flag wasn't getting updated correctly when the ctx->DrawBuffer or ctx->ReadBuffer changed. It usually ended up working out because most apps only have one window system framebuffer, or if they have more than one and they have any front read/drawing, they will have called glReadBuffer()/glDrawB

[Mesa-dev] meta CopyTexSubImage and BlitFramebuffer, intel front buffer bugs

2014-03-04 Thread Eric Anholt
Here's another series of meta stuff: Replacing the winsys MSAA blits with meta instead of blorp where possible, and making CopyTexSubImage use meta instead of blorp. In the process I found I had to fix some other bugs in meta's BlitFramebuffer. There are a few intel patches at the start to avoid

[Mesa-dev] [PATCH 04/10] meta: Always restore the framebuffers and current renderbuffer.

2014-03-04 Thread Eric Anholt
The few paths that were playing with framebuffers and renderbuffer were saving and restoring them, but I was writing another path doing so in this series, and forgot to. --- src/mesa/drivers/common/meta.c | 36 +++- src/mesa/drivers/common/meta.h | 2 ++ 2 files ch

[Mesa-dev] [PATCH 08/10] i965: Remove the blorp CTSI path.

2014-03-04 Thread Eric Anholt
The meta patch supports all the same, except for the stencil case being unaccelerated. --- src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 105 --- src/mesa/drivers/dri/i965/brw_context.h | 9 --- src/mesa/drivers/dri/i965/intel_tex_copy.c | 9 +-- 3 files changed

[Mesa-dev] [PATCH 07/10] meta: Add an accelerated glCopyTexSubImage using glBlitFramebuffer.

2014-03-04 Thread Eric Anholt
We have to be a little careful here, because BlitFB itself has a fallback path that calls CopyTexSubImage(), so we reach over into its state to tell it to skip that case. --- src/mesa/drivers/common/meta.c | 177 ++-- src/mesa/drivers/common/meta.h | 1 +

[Mesa-dev] [PATCH 09/10] meta: Add support for MSAA resolves from 2D_MS_ARRAY textures.

2014-03-04 Thread Eric Anholt
--- src/mesa/drivers/common/meta.h | 8 src/mesa/drivers/common/meta_blit.c | 23 +++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h index 00553e2..5d60690 100644 --- a/src/mesa/driv

[Mesa-dev] [PATCH 06/10] i965: Change the winsys MSAA blits from blorp to meta.

2014-03-04 Thread Eric Anholt
This gets us equivalent code paths on BDW and pre-BDW, except for stencil (where we don't have MSAA stencil resolve code yet) --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 111 -- 1 file changed, 103 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/i96

[Mesa-dev] [PATCH 03/10] i965: Drop intel_check_front_buffer_rendering().

2014-03-04 Thread Eric Anholt
This was being applied in a subset of the places that intel_prepare_render() was called, to set the same flag that intel_prepare_render() was setting. --- src/mesa/drivers/dri/i965/brw_state_upload.c | 2 -- src/mesa/drivers/dri/i965/intel_buffers.c | 18 -- src/mesa/driver

[Mesa-dev] [PATCH 01/10] intel: When checking for updating front buffer reading, use the right fb.

2014-03-04 Thread Eric Anholt
It's the ctx->ReadBuffer that gets read from, not the ctx->DrawBuffer. So, if you happened to have a ctx->ReadBuffer that was the winsys buffer, and it had previously been intel_prepare_render()ed but not invalidated since then, and you called glReadBuffer() to switch to front buffer instead of bac

[Mesa-dev] [Bug 75226] Dark rendering of War for the Overworld

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75226 --- Comment #16 from Fredrik Höglund --- (In reply to comment #15) > Created attachment 95005 [details] [review] > make winsys fbo sRGB-capable when supported > > This new patch is tested with llvmpipe and ilo, and is also sent to the list > >

Re: [Mesa-dev] [PATCH 19/20] configure: update enable-llvm-shared-libs comments

2014-03-04 Thread Tom Stellard
On Tue, Mar 04, 2014 at 09:12:43PM +, Emil Velikov wrote: > - As of commit cb080a10b68(configure.ac: Don't require shared LLVM when > building OpenCL) opencl does not mandate using shared llvm. > - Add a warning message that building with static llvm may cause > compilation problems. > > XXX

[Mesa-dev] [PATCH 11/20] automake: do not use symbols names for static glapi.la

2014-03-04 Thread Emil Velikov
In the cases where one links against the static glapi.la there is no need to create temporary variables only to explicitly link agaist it. Instead use SHARED_GLAPI_LIB to explicitly indicate when one is building and linking with the shared glapi provider. Signed-off-by: Emil Velikov --- src/gal

[Mesa-dev] [PATCH 20/20] automake: allow only shared builds

2014-03-04 Thread Emil Velikov
Static and shared builds were possible in the good old days of static makefiles. Currently the build system does not distinguish nor does anything special when one requests a static build. Print a warning message for the packager that static builds are not supported and continue building shared li

[Mesa-dev] [PATCH 19/20] configure: update enable-llvm-shared-libs comments

2014-03-04 Thread Emil Velikov
- As of commit cb080a10b68(configure.ac: Don't require shared LLVM when building OpenCL) opencl does not mandate using shared llvm. - Add a warning message that building with static llvm may cause compilation problems. XXX: Tom please update the wiki [1]. Currently it lists the old configure swi

[Mesa-dev] [PATCH 14/20] automake: create compat symlinks only for linux systems

2014-03-04 Thread Emil Velikov
The primary users of these are linux developers, although it can be extended for *BSD and others if needed. Fixes make install for Cygwin and OpenBSD at least. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63269 Cc: Jon TURNEY Signed-off-by: Emil Velikov --- configure.ac

[Mesa-dev] [PATCH 16/20] glx/tests: honor enable-driglx-direct configure flag

2014-03-04 Thread Emil Velikov
From: Jon TURNEY Recent commit fixed build issues in dri2_query_renderer.c by wrapping in defined(direct_rendering) && !defined(applegl) This patch targets the query_renderer tests, so that make check passes on platforms such as hurd and cygwin. v2: (Emil) - Rebase and update commit message.

[Mesa-dev] [PATCH 13/20] configure: use LIB_EXT rather than hardcoded .so

2014-03-04 Thread Emil Velikov
Some platforms different library extension - dll, dylib, a. Honor that when we are creating the required links. Rename LIB_EXTENSION to LIB_EXT while we're here. XXX: With libglapi linking aside, building classic drivers on non-linux platforms should be possible now. Cc: Jon TURNEY Signed-off-b

[Mesa-dev] [PATCH 18/20] st/dri: build the drm backend when libdrm is present

2014-03-04 Thread Emil Velikov
Prevent build issues on systems lacking libdrm. Cc: Jon TURNEY Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/Makefile.am | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/dri/Makefile.am b/src/gallium/state_trackers/dri/Makefil

[Mesa-dev] [PATCH 15/20] configure: read libomxil-bellagio.pc only when it exists

2014-03-04 Thread Emil Velikov
Currenly configure.ac will print a warning when one is missing the package. Signed-off-by: Emil Velikov --- configure.ac | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 21db389..36d7895 100644 --- a/configure.ac +++ b/configure.ac @@ -1

[Mesa-dev] [PATCH 17/20] glx: cleanup unneeded headers

2014-03-04 Thread Emil Velikov
- xf86dri.h is the old dri1 header, not required by dri2 nor dri3 - fold xf86drm.h inclusiong inside dri2.h - dri3_glx does not have any drm specific dependencies - glapi.h is not required by the dri2 and dri3 codepaths Signed-off-by: Emil Velikov --- src/glx/dri2.c

[Mesa-dev] [PATCH 10/20] configure: remove old makefile variables

2014-03-04 Thread Emil Velikov
All the variables were used before the automake conversion and do not make sense (nor are used) currently. Replace GL_LIB_NAME with lib$(GL_LIB).$(LIB_EXTENSION) for apple-glx. The build has been broken for ages, but this will ease the recovery process as it happens. Signed-off-by: Emil Velikov

[Mesa-dev] [PATCH 07/20] targets/dri: use install-gallium-links.mk

2014-03-04 Thread Emil Velikov
Drop the duplication accross all dri targets. Signed-off-by: Emil Velikov --- src/gallium/targets/dri-freedreno/Makefile.am | 7 +-- src/gallium/targets/dri-i915/Makefile.am | 6 +- src/gallium/targets/dri-ilo/Makefile.am | 7 +-- src/gallium/targets/dri-nouveau/Makefile.a

[Mesa-dev] [PATCH 06/20] automake: introduce install-gallium-links.mk

2014-03-04 Thread Emil Velikov
This helper script will be used to minimise the duplication during link generation across all gallium targets. Signed-off-by: Emil Velikov --- install-gallium-links.mk | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 install-gallium-links.mk diff --git a/install

[Mesa-dev] [PATCH 09/20] gallium/targets: use install-gallium-targets.mk

2014-03-04 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gallium/targets/egl-static/Makefile.am | 20 +--- src/gallium/targets/libgl-xlib/Makefile.am | 6 +- src/gallium/targets/opencl/Makefile.am | 6 +- src/gallium/targets/osmesa/Makefile.am | 9 + 4 files changed, 4 inser

[Mesa-dev] [PATCH 12/20] drivers/dri: link megadriver with -no-undefined

2014-03-04 Thread Emil Velikov
From: Jon TURNEY v2: (Emil) - Do not link agaist libglapi. Signed-off-by: Jon TURNEY Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/Makefile.am b/src/mesa/drivers/dri/Makefile.am index

[Mesa-dev] [PATCH 08/20] gallium/targets: drop link generation for non DRI targets

2014-03-04 Thread Emil Velikov
All three (xvmc, vdpau and omx) do not have an alternative loading similar to the dri modules. Thus one needs to explicitly install them in order to use/test them. Signed-off-by: Emil Velikov --- src/gallium/targets/r600/omx/Makefile.am | 6 -- src/gallium/targets/r600/vdpau/Makefile.a

[Mesa-dev] [PATCH 05/20] automake: use install-lib-links.mk across all classic mesa

2014-03-04 Thread Emil Velikov
Use the handy script and minimise the boilerplate in the makefiles. Signed-off-by: Emil Velikov --- src/egl/wayland/wayland-egl/Makefile.am | 2 ++ src/mesa/drivers/osmesa/Makefile.am | 8 +--- src/mesa/drivers/x11/Makefile.am| 7 +-- 3 files changed, 4 insertions(+), 13 dele

[Mesa-dev] [PATCH 02/20] automake: silence folder creation

2014-03-04 Thread Emil Velikov
There is little gain in printing whenever a folder is created. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/Makefile.am | 8 src/glsl/Makefile.am | 4 ++-- src/mesa/Makefile.am | 4 ++-- src/mesa/drivers/dri/Makefile.am | 2 +- 4 files changed, 9 inse

[Mesa-dev] [PATCH 01/20] automake: use MKDIR_P when possible

2014-03-04 Thread Emil Velikov
Use the automake predefined macro over hardcoding mkdir -p everywhere. Signed-off-by: Emil Velikov --- src/mapi/glapi/gen/glapi_gen.mk | 6 +++--- src/mesa/drivers/dri/common/xmlpool/Makefile.am | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mapi/glapi

[Mesa-dev] [PATCH 00/20] Automake cleanups and Cygwin fixes

2014-03-04 Thread Emil Velikov
Hi all, An interesting cleanup series inspired by Jon Turney's tinderbox. Highlights: - Cleanup unused configure.ac variables dating from the static makefile days. - Use platform specific library extension for links generation. - Move all the link generation in three files. - Make check fix w

[Mesa-dev] [PATCH 04/20] automake: make install-lib-links less chatty

2014-03-04 Thread Emil Velikov
There is little point in echoing everything that the script does to stdout. Wrap it in AM_V_GEN so that a reasonable message is printed as a indication of it's invocation. Signed-off-by: Emil Velikov --- install-lib-links.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ins

[Mesa-dev] [PATCH 03/20] automake: use only the folder name if it's a subfolder of the present one

2014-03-04 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/glsl/Makefile.am | 4 ++-- src/mesa/Makefile.am | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glsl/Makefile.am b/src/glsl/Makefile.am index 528f6f8..9f1507e 100644 --- a/src/glsl/Makefile.am +++ b/src/glsl/Makefile.am @@ -178,11 +

Re: [Mesa-dev] [PATCH] i965: Enable EWA anisotropic filtering algorithm

2014-03-04 Thread Anuj Phogat
On Tue, Mar 4, 2014 at 1:08 AM, Ian Romanick wrote: > From: Ian Romanick > > Volume 4, part 1 of the Ivybridge PRM says, "Generally, the EWA > approximation algorithm results in higher image quality than the legacy > algorithm." Using a classic anisotropic filtering "tunnel" demo, it > appears t

Re: [Mesa-dev] [PATCH] mesa: new init_teximage_fields_ms() function to init MS texture images

2014-03-04 Thread Anuj Phogat
On Tue, Mar 4, 2014 at 8:13 AM, Brian Paul wrote: > Before, it was kind of ugly to set the multisample fields with > assignments after we called _mesa_init_teximage_fields(). > --- > src/mesa/main/teximage.c | 44 +--- > 1 file changed, 29 insertions(+),

[Mesa-dev] [Bug 75751] egl_gallium always requires libdrm

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75751 --- Comment #4 from Kenneth Graunke --- That's what --with-dri-drivers='' does. So presumably --disable-dri does something else. -- You are receiving this mail because: You are the assignee for the bug.

Re: [Mesa-dev] [PATCH] mesa/main: add ARB_clear_texture entrypoints

2014-03-04 Thread Ilia Mirkin
On Tue, Mar 4, 2014 at 2:14 AM, Ian Romanick wrote: > On 03/02/2014 12:09 AM, Ilia Mirkin wrote: >> >> This adds enough code to let drivers implement texture clearing, but >> doesn't actually do that for any of them. > > > There's always the usual... this should be split into two patches. :) > Gen

Re: [Mesa-dev] [PATCH] draw/llvm: fix generation of the VS with GS present

2014-03-04 Thread Matthew McClure
Looks good to me too! Reviewed-by: Matthew McClure Matthew - Original Message - From: "Roland Scheidegger" To: "Zack Rusin" , mesa-dev@lists.freedesktop.org Cc: jfons...@vmware.com, mcclu...@vmware.com Sent: Tuesday, March 4, 2014 8:57:30 AM Subject: Re: [PATCH] draw/llvm: fix generati

Re: [Mesa-dev] [PATCH 0/2] radeon: Use the DMA engine for buffer downloads

2014-03-04 Thread Niels Ole Salscheider
> Could you please do this without changing u_upload_mgr? You can still > use u_upload_alloc to allocate buffer memory in the driver and the map > buffer read/write flags are not important with persistent coherent > buffer mappings anyway. I have sent an updated patch to the list. Ole ___

[Mesa-dev] [PATCH v2] radeon: Use upload manager for buffer downloads

2014-03-04 Thread Niels Ole Salscheider
Using DMA for reads is much faster. Signed-off-by: Niels Ole Salscheider --- src/gallium/drivers/radeon/r600_buffer_common.c | 78 +++-- 1 file changed, 60 insertions(+), 18 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/rade

Re: [Mesa-dev] [PATCH] draw/llvm: fix generation of the VS with GS present

2014-03-04 Thread Roland Scheidegger
Am 04.03.2014 05:08, schrieb Zack Rusin: > draw_current_shader_* functions return a final output when considering > both the geometry shader and the vertex shader. But when code generating > vertex shader we can not be using output slots from the geometry shader > because, obviously, those can be c

Re: [Mesa-dev] [PATCHv2 0/3] st/mesa: make winsys framebuffer sRGB-capable

2014-03-04 Thread Brian Paul
On 03/04/2014 07:31 AM, Chia-I Wu wrote: Hi, Until now, we do not support sRGB write for winsys framebuffers. This series changes that so that winsys framebuffers are marked sRGB-capable when the pipe driver supports it. This is not to be confused with GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB. The at

Re: [Mesa-dev] [PATCH] mesa: fix packing/unpacking for MESA_FORMAT_A4R4G4B4_UNORM

2014-03-04 Thread Roland Scheidegger
Am 04.03.2014 17:10, schrieb Brian Paul: > Spotted by Chia-I Wu. > --- > src/mesa/main/format_pack.c |2 +- > src/mesa/main/format_unpack.c|8 > src/mesa/swrast/s_texfetch_tmp.h |8 > 3 files changed, 9 insertions(+), 9 deletions(-) > > diff --git a/src/mesa

[Mesa-dev] [PATCH] mesa: new init_teximage_fields_ms() function to init MS texture images

2014-03-04 Thread Brian Paul
Before, it was kind of ugly to set the multisample fields with assignments after we called _mesa_init_teximage_fields(). --- src/mesa/main/teximage.c | 44 +--- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/src/mesa/main/teximage.c b/src/

[Mesa-dev] [PATCH] mesa: fix packing/unpacking for MESA_FORMAT_A4R4G4B4_UNORM

2014-03-04 Thread Brian Paul
Spotted by Chia-I Wu. --- src/mesa/main/format_pack.c |2 +- src/mesa/main/format_unpack.c|8 src/mesa/swrast/s_texfetch_tmp.h |8 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/format_pack.c b/src/mesa/main/format_pack.c index 2

Re: [Mesa-dev] [PATCH] mesa: update packed format layout comments

2014-03-04 Thread Brian Paul
On 03/03/2014 08:38 PM, Chia-I Wu wrote: On Sat, Mar 1, 2014 at 1:59 AM, Brian Paul wrote: Update the comments for the packed formats to accurately reflect the layout of the bits in the pixel. For example, for the packed format MESA_FORMAT_R8G8B8A8, R is in the least significant position while

[Mesa-dev] [Bug 75543] OSMesa Gallium OSMesaMakeCurrent

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75543 --- Comment #4 from Brian Paul --- Committed: cbacee207faf866b0444beb583d3d6f341a8ee78 -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@list

Re: [Mesa-dev] [PATCH] gallium: rename R4A4 and A4R4 formats to match their swizzle

2014-03-04 Thread Brian Paul
On 03/04/2014 04:43 AM, Marek Olšák wrote: From: Marek Olšák Like L4A4. --- src/gallium/auxiliary/util/u_format.csv | 4 ++-- src/gallium/auxiliary/util/u_format.h| 3 +-- src/gallium/drivers/ilo/ilo_format.c | 2 +- src/gallium/include/pipe/p_format.h

Re: [Mesa-dev] i965 GL_ARB_buffer_storage

2014-03-04 Thread Jose Fonseca
I agree that apps that only write to a buffer shouldn't use both MAP_UNSYNCHRONIZED and MAP_INVALIDATE_BUFFER_BIT, if that's your point. Apps should stick so a single strategy. But it seems a common pitfall. Note that MAP_INVALIDATE_*_BIT purpose is not just avoid synchronization. They also a

[Mesa-dev] [Bug 75751] egl_gallium always requires libdrm

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75751 --- Comment #3 from Christian Prochaska --- > > In my understanding, if '--disable-dri' is given, libdrm should neither be a > > requirement of the configure script nor should it get linked/used if it is > > available. > > --disable-dri disables

Re: [Mesa-dev] i965 GL_ARB_buffer_storage

2014-03-04 Thread Marek Olšák
In my opinion, MAP_UNSYNCHRONIZED says that you don't have to sync, which makes MAP_INVALIDATE_* useless, because the invalidate flags are only useful for avoiding synchronization and you already know you don't have to do it. Marek On Thu, Feb 27, 2014 at 11:52 PM, Eric Anholt wrote: > One thing

[Mesa-dev] [Bug 75751] egl_gallium always requires libdrm

2014-03-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75751 --- Comment #2 from Chia-I Wu --- (In reply to comment #1) > When I temporarily disabled the libdrm check, Mesa built fine with this > configuration and the 'es2gears' demo ran without problems. Right, libdrm should not be needed in your configur

Re: [Mesa-dev] i965 GL_ARB_buffer_storage

2014-03-04 Thread Jose Fonseca
- Original Message - > - Original Message - > > One thing I noticed while working on this was that we only reallocate > > buffer > > storage for INVALIDATE_BUFFER_BIT when UNSYNCHRONIZED_BIT is unset. The > > ARB_mbr spec says that the contents "may be discarded", not "must be >

Re: [Mesa-dev] i965 GL_ARB_buffer_storage

2014-03-04 Thread Jose Fonseca
- Original Message - > One thing I noticed while working on this was that we only reallocate buffer > storage for INVALIDATE_BUFFER_BIT when UNSYNCHRONIZED_BIT is unset. The > ARB_mbr spec says that the contents "may be discarded", not "must be > discarded". However, while writing the gla

Re: [Mesa-dev] [PATCH] mesa: fix glGet size queries for L/LA/I color buffers

2014-03-04 Thread Marek Olšák
This is about the compatibility profile, that is 3.0, and our piglit tests which test these legacy formats. This isn't an issue with the core profile for the reason you mentioned. Marek On Tue, Mar 4, 2014 at 3:31 PM, luigi wrote: > >> >> From: Marek Ol??k >> >> There is no API for returning th

Re: [Mesa-dev] [PATCH] mesa: fix glGet size queries for L/LA/I color buffers

2014-03-04 Thread luigi
> > From: Marek Ol??k > > There is no API for returning the number of luminance and intensity bits and > the 3.3 spec doesn't seem to specify any behavior for the queries if the > format > is one of L, LA, I. It seems to be a spec bug. > > hi.i just notice that: GL 3.3 Core spec Chapter E.2.2

[Mesa-dev] [PATCHv2 0/3] st/mesa: make winsys framebuffer sRGB-capable

2014-03-04 Thread Chia-I Wu
Hi, Until now, we do not support sRGB write for winsys framebuffers. This series changes that so that winsys framebuffers are marked sRGB-capable when the pipe driver supports it. This is not to be confused with GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB. The attribute guarantees the created winsys frame

[Mesa-dev] [PATCHv2 3/3] st/mesa: make winsys fbo sRGB-capable when supported

2014-03-04 Thread Chia-I Wu
The texture formats of winsys fbo are always linear becase the st manager (st/dri for example) could not know the colorspace used. But it does not mean that we cannot make the fbo sRGB-capable. By - setting rb->Visual.sRGBCapable to GL_TRUE when the pipe driver supports the format in sRGB co

[Mesa-dev] [PATCH 2/3] st/mesa: add mappings for MESA_FORMAT_B8G8R8X8_SRGB

2014-03-04 Thread Chia-I Wu
The format is mapped to PIPE_FORMAT_B8G8R8X8_SRGB. --- src/mesa/state_tracker/st_format.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 5f951eb..25577ac 100644 --- a/src/mesa/state_trac

[Mesa-dev] [PATCH 1/3] mesa: add MESA_FORMAT_B8G8R8X8_SRGB

2014-03-04 Thread Chia-I Wu
The format is needed to represent an RGB-only winsys framebuffer that is sRGB-capable. --- src/mesa/main/format_pack.c | 18 ++ src/mesa/main/format_unpack.c | 15 +++ src/mesa/main/formats.c | 21 + src/mesa/main/formats.h | 3 +++ sr

Re: [Mesa-dev] [PATCH] mesa: Add _mesa_error_no_memory for logging out-of-memory messages

2014-03-04 Thread Juha-Pekka Heikkilä
On Tue, Mar 4, 2014 at 3:41 PM, Ian Romanick wrote: > From: Ian Romanick > > This can be called from locations that don't have a context pointer > handy. This patch also adds enough infrastructure so that the unit > tests for the GLSL compiler and the stand-alone compiler will build and > functi

  1   2   >