Re: [Mesa-dev] [PATCH 2/3] glsl: add fallthrough comment on switch

2015-04-20 Thread Matt Turner
On Mon, Apr 20, 2015 at 10:27 PM, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli > --- > src/glsl/linker.cpp | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp > index b6baa5d..08b4137 100644 > --- a/src/glsl/linker.cpp > +++ b/src/glsl/linker.c

[Mesa-dev] [PATCH 1/3] mesa: fix UBO queries for active uniforms

2015-04-20 Thread Tapani Pälli
Commit 34df5eb introduced regression to GetActiveUniformBlockiv when querying one of the following properties: GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES Implementation counted all uniforms in ubo directly while query should check first if the uniform in quersi

[Mesa-dev] [PATCH 2/3] glsl: add fallthrough comment on switch

2015-04-20 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/glsl/linker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index b6baa5d..08b4137 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -2571,6 +2571,7 @@ add_interface_variables(struct gl_shader_progra

[Mesa-dev] [PATCH 3/3] mesa: add missing break in switch statement

2015-04-20 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/mesa/main/shader_query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index 1428058..336598d 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.cp

Re: [Mesa-dev] [PATCH v2 03/24] mesa/glsl: build list of program resources during linking

2015-04-20 Thread Tapani
On 04/21/2015 04:49 AM, Matt Turner wrote: On Wed, Apr 1, 2015 at 5:14 AM, Tapani Pälli wrote: Patch adds ProgramResourceList to gl_shader_program structure. List contains references to active program resources and is constructed during linking phase. This list will be used by follow-up patche

Re: [Mesa-dev] [PATCH 1/5] winsys/radeon: make radeon_bo_vtbl static

2015-04-20 Thread Michel Dänzer
On 21.04.2015 06:59, Marek Olšák wrote: > From: Marek Olšák This series is Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _

Re: [Mesa-dev] [PATCH v2 06/24] mesa: glGetProgramResourceName

2015-04-20 Thread Matt Turner
On Wed, Apr 1, 2015 at 5:14 AM, Tapani Pälli wrote: > Patch adds required helper functions to shaderapi.h and > the actual implementation. > > Name generation copied from '_mesa_get_uniform_name' which can > be removed later by refactoring functions to use resource list. > > The added functionalit

Re: [Mesa-dev] [PATCH v2 03/24] mesa/glsl: build list of program resources during linking

2015-04-20 Thread Matt Turner
On Wed, Apr 1, 2015 at 5:14 AM, Tapani Pälli wrote: > Patch adds ProgramResourceList to gl_shader_program structure. > List contains references to active program resources and is > constructed during linking phase. > > This list will be used by follow-up patches to implement hooks > for GL_ARB_pro

Re: [Mesa-dev] [PATCH] vc4: with primconvert, quads follow provoking vertex convention

2015-04-20 Thread Ilia Mirkin
On Mon, Apr 20, 2015 at 8:30 PM, Eric Anholt wrote: > Ilia Mirkin writes: > >> Signed-off-by: Ilia Mirkin > > But we don't have provoking vertex convention support in the first > place, so we actually just need to introduce caps to not expose the > extension. Ah yeah, sorry, I just assumed that

Re: [Mesa-dev] [PATCH] vc4: with primconvert, quads follow provoking vertex convention

2015-04-20 Thread Eric Anholt
Ilia Mirkin writes: > Signed-off-by: Ilia Mirkin But we don't have provoking vertex convention support in the first place, so we actually just need to introduce caps to not expose the extension. signature.asc Description: PGP signature ___ mesa-dev

Re: [Mesa-dev] Initial amdgpu driver release

2015-04-20 Thread Alex Deucher
On Mon, Apr 20, 2015 at 6:33 PM, Alex Deucher wrote: > I'm pleased to announce the initial release of the new amdgpu driver. > This is a partial replacement for the radeon driver for newer AMD > asics. A number of components are still shared. Here is a comparison > of the radeon and amdgpu stack

[Mesa-dev] [PATCH 00/18] AMDGPU winsys and VI hardware support

2015-04-20 Thread Marek Olšák
Hi, This is the new amdgpu winsys and Mesa support for GCN version 3 (VI) chips. The winsys requires libdrm_amdgpu: http://cgit.freedesktop.org/~agd5f/drm/log/?h=amdgpu The 3D support should be on the same level as Sea Islands (CIK). There is also UVD and VCE support. LLVM 3.6 is required, thoug

[Mesa-dev] Initial amdgpu driver release

2015-04-20 Thread Alex Deucher
I'm pleased to announce the initial release of the new amdgpu driver. This is a partial replacement for the radeon driver for newer AMD asics. A number of components are still shared. Here is a comparison of the radeon and amdgpu stacks: 1. radeon stack kernel driver: radeon.ko libdrm: libdrm_ra

[Mesa-dev] [PATCH 5/6] st/omx/dec: add h264 decoder level support

2015-04-20 Thread Marek Olšák
From: Leo Liu v2: use sps level idc as level to driver Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/state_trackers/omx/vid_dec_h264.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/omx/vid_dec_h264.c b/src/gall

[Mesa-dev] [PATCH 4/6] vl: add level idc in sps

2015-04-20 Thread Marek Olšák
From: Leo Liu Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/include/pipe/p_video_state.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h index 6621dbd..3713cd9 100644 --- a/src/galliu

[Mesa-dev] [PATCH 6/6] st/va: add h264 decoder level support

2015-04-20 Thread Marek Olšák
From: Leo Liu Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/state_trackers/va/context.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index a7a55f9..0a733b3 100644 --- a/src/gall

[Mesa-dev] [PATCH 0/6] Video state tracker patches for VI

2015-04-20 Thread Marek Olšák
These patches were created during UVD and VCE bring-up for VI. I'm sending them in case other people want to review them. Marek ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 3/6] st/omx/dec: separate create_video_codec to different codecs

2015-04-20 Thread Marek Olšák
From: Leo Liu v2: get frame size from port info Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/state_trackers/omx/vid_dec.c| 18 -- src/gallium/state_trackers/omx/vid_dec.h| 1 + src/gallium/state_trackers/omx/vid_dec_h264.c | 15 +++

[Mesa-dev] [PATCH 1/6] gallium/util: get h264 level based on number of max references and resolution

2015-04-20 Thread Marek Olšák
From: Leo Liu v2: add commments for limitation of max references numbers, and what the caculation is based Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/auxiliary/util/u_video.h | 36 1 file changed, 36 insertions(+) diff --git a/src

[Mesa-dev] [PATCH 2/6] st/vdpau: add h264 decoder level support

2015-04-20 Thread Marek Olšák
From: Leo Liu Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/state_trackers/vdpau/decode.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c index 767d311..0634ba7 100644 --- a/sr

[Mesa-dev] [PATCH 15/18] radeon/uvd: recalculate dbp buffer size

2015-04-20 Thread Marek Olšák
From: Leo Liu Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_uvd.c | 81 - 1 file changed, 59 insertions(+), 22 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd

[Mesa-dev] [PATCH 12/18] radeon/vce: make firmware check compatible with new firmware

2015-04-20 Thread Marek Olšák
From: Leo Liu Signed-off-by: Leo Liu Reviewed-by: Alex Deucher --- src/gallium/drivers/radeon/radeon_vce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vce.c b/src/gallium/drivers/radeon/radeon_vce.c index d1495a2..b8b35b3 100644 --- a/

[Mesa-dev] [PATCH 14/18] radeon/video: add 4K support for decode/encode parameters

2015-04-20 Thread Marek Olšák
From: Leo Liu Signed-off-by: Leo Liu Reviewed-by: Christian König Acked-by: Alex Deucher --- src/gallium/drivers/radeon/radeon_video.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_vid

[Mesa-dev] [PATCH 13/18] radeon/vce: adapt new firmware interface changes

2015-04-20 Thread Marek Olšák
From: Leo Liu v2: make this also compatible with original released firmware v3: rebase by Marek Signed-off-by: Leo Liu Reviewed-by: Alex Deucher --- src/gallium/drivers/radeon/radeon_vce.c| 1 + src/gallium/drivers/radeon/radeon_vce.h| 1 + src/gallium/drivers/radeon/radeon_

[Mesa-dev] [PATCH 18/18] radeonsi: add new VI PCI IDs

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- include/pci_ids/radeonsi_pci_ids.h | 20 1 file changed, 20 insertions(+) diff --git a/include/pci_ids/radeonsi_pci_ids.h b/include/pci_ids/radeonsi_pci_ids.h index 571e863..ca81f76 100644 --- a/include/pci_ids/radeonsi_pci_ids.h +++ b/include/pci_ids

[Mesa-dev] [PATCH 16/18] radeon/uvd: make 30M as minimum for MPEG4 dpb buffer size

2015-04-20 Thread Marek Olšák
From: Leo Liu Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_uvd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 38eb3d1..a712907 100644 --- a/src/gallium

[Mesa-dev] [PATCH 11/18] gallium/radeon: add h264 performance HW decoder support

2015-04-20 Thread Marek Olšák
From: Leo Liu v2: -make tonga use new h264 performance HW decoder; -integrate it scaling buffer to msg_fb buffer Signed-off-by: Leo Liu Reviewed-by: Alex Deucher --- src/gallium/drivers/radeon/radeon_uvd.c | 63 + src/gallium/drivers/radeon/radeon_uvd.h |

[Mesa-dev] [PATCH 17/18] radeon/vce: implement VCE two pipe support

2015-04-20 Thread Marek Olšák
From: Leo Liu v2: rebase by Marek Signed-off-by: Leo Liu Reviewed-by: Alex Deucher Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_vce.c| 5 + src/gallium/drivers/radeon/radeon_vce.h| 4 src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 17 +++

[Mesa-dev] [PATCH 05/18] radeonsi: fix DRM version checks for amdgpu DRM 3.0.0

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_buffer_common.c | 6 -- src/gallium/drivers/radeon/r600_pipe_common.c | 4 +++- src/gallium/drivers/radeon/r600_texture.c | 8 +--- src/gallium/drivers/radeonsi/si_pipe.c | 4 +++- src/gallium/drivers/radeonsi/si_stat

[Mesa-dev] [PATCH 07/18] radeonsi: add VI hardware support

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.c | 6 src/gallium/drivers/radeon/r600_pipe_common.h | 1 + src/gallium/drivers/radeonsi/si_descriptors.c | 15 +++-- src/gallium/drivers/radeonsi/si_pipe.c | 5 ++- src/gallium/drivers/radeonsi/si_shade

[Mesa-dev] [PATCH 08/18] radeonsi: add a temporary workaround for a shader bug

2015-04-20 Thread Marek Olšák
From: Marek Olšák This will be reverted after the corresponding LLVM fix is cherry-picked and released as part of LLVM 3.6. --- src/gallium/drivers/radeonsi/si_state_shaders.c | 47 - 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/rade

[Mesa-dev] [PATCH 09/18] gallium/radeon: use VM for UVD

2015-04-20 Thread Marek Olšák
From: Christian König v2: (leo) add checking for driver backend v3: (leo) change variable name from use_amdgpu to use_vm v4: rebase by Marek Signed-off-by: Christian König Signed-off-by: Leo Liu Reviewed-by: Alex Deucher --- src/gallium/drivers/radeon/radeon_uvd.c | 16 ++-- 1 fi

[Mesa-dev] [PATCH 02/18] winsys/radeon: add a private interface for radeon_surface

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/r600/evergreen_state.c | 6 +- src/gallium/drivers/r600/r600_uvd.c| 2 +- src/gallium/drivers/radeon/r600_pipe_common.h | 2 +- src/gallium/drivers/radeon/r600_texture.c | 12 +- src/gallium/drivers/radeon/rad

[Mesa-dev] [PATCH 10/18] gallium/radeon: use VM for VCE

2015-04-20 Thread Marek Olšák
From: Christian König v2: (leo) add checking for driver backend v3: (leo) change variable name from use_amdgpu to use_vm v4: rebase by Marek Signed-off-by: Christian König Signed-off-by: Leo Liu Reviewed-by: Alex Deucher --- src/gallium/drivers/radeon/radeon_vce.c| 24 +++

[Mesa-dev] [PATCH 01/18] winsys/radeon: move radeon_winsys.h up one directory

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- .../auxiliary/target-helpers/inline_drm_helper.h | 6 +- src/gallium/drivers/r300/r300_chipset.c| 2 +- src/gallium/drivers/r300/r300_context.h| 1 - src/gallium/drivers/r300/r300_screen.h | 2 +- src/gallium/drivers/radeon/r600

[Mesa-dev] [PATCH 03/18] winsys/amdgpu: add a new winsys for the new kernel driver

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- configure.ac | 5 + src/gallium/Makefile.am | 1 + src/gallium/drivers/r300/Automake.inc | 6 +- src/gallium/drivers/r600/Automake.inc | 6 +- src/gallium/drivers/radeonsi/Automak

[Mesa-dev] (no subject)

2015-04-20 Thread Marek Olšák
Hi, This is the new amdgpu winsys and Mesa support for GCN version 3 (VI) chips. The winsys requires libdrm_amdgpu: http://cgit.freedesktop.org/~agd5f/drm/log/?h=amdgpu The 3D support should be on the same level as Sea Islands (CIK). There is also UVD and VCE support. LLVM 3.6 is required, tho

[Mesa-dev] [PATCH 1/5] winsys/radeon: make radeon_bo_vtbl static

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index e609d68..061c814 100644 --- a/src/gallium/winsys/radeon

[Mesa-dev] [PATCH 3/5] radeonsi: remove useless includes

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 5dc657c..e68c30e 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers

[Mesa-dev] [PATCH 5/5] radeonsi: set an optimal value for DB_Z_INFO_ZRANGE_PRECISION

2015-04-20 Thread Marek Olšák
From: Marek Olšák Required because of a VI hw bug. --- src/gallium/drivers/radeonsi/si_state.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index f24cbbd..dc19d29 100644 --- a/src/g

[Mesa-dev] [PATCH 2/5] gallium/radeon: print winsys info with R600_DEBUG=info

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.c | 27 +++ src/gallium/drivers/radeon/r600_pipe_common.h | 1 + 2 files changed, 28 insertions(+) diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common

[Mesa-dev] [PATCH 4/5] radeonsi: remove deprecated and useless registers

2015-04-20 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 4bb6f2b..f24cbbd 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/ga

[Mesa-dev] [PATCH] clover: compile all sources with c++11

2015-04-20 Thread EdB
Later we can remove the compat code. --- src/gallium/state_trackers/clover/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium/state_trackers/clover/Makefile.am index 62c13fa..54b6fff 100644 --- a/src/gall

Re: [Mesa-dev] [PATCH v2 1/2] clover: make llvm >= 3.5.0 and c++11 mandatory

2015-04-20 Thread Tom Stellard
On Mon, Apr 20, 2015 at 09:34:03PM +0300, Francisco Jerez wrote: > EdB writes: > > > Clover not longer compile with llvm <= 3.5.0 since e1d363b3. > > e1d363b3 implies c++11 and llvm 3.5.0 CXXFLAGS provided it. > > No one seems to have noticed it, it's now official. > > --- > > I haven't carefull

Re: [Mesa-dev] [PATCH v2 1/2] clover: make llvm >= 3.5.0 and c++11 mandatory

2015-04-20 Thread Francisco Jerez
EdB writes: > Clover not longer compile with llvm <= 3.5.0 since e1d363b3. > e1d363b3 implies c++11 and llvm 3.5.0 CXXFLAGS provided it. > No one seems to have noticed it, it's now official. > --- I haven't carefully reviewed the series, but I'm fine with dropping support for LLVM 3.5. For the

[Mesa-dev] [PATCH v2 1/2] clover: make llvm >= 3.5.0 and c++11 mandatory

2015-04-20 Thread EdB
Clover not longer compile with llvm <= 3.5.0 since e1d363b3. e1d363b3 implies c++11 and llvm 3.5.0 CXXFLAGS provided it. No one seems to have noticed it, it's now official. --- configure.ac | 32 +++- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/confi

[Mesa-dev] [Bug 84805] DEF files missing for GLES1/GLES2

2015-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84805 --- Comment #7 from José Fonseca --- (In reply to Charles Huber from comment #6) > Still working as of cb154bb22116910c462f7a83f4401bd01e15c34d That's 10.4 branch. I think this has been broken apart in master: http://cgit.freedesktop.org/mes

[Mesa-dev] [Bug 84805] DEF files missing for GLES1/GLES2

2015-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84805 --- Comment #6 from Charles Huber --- Still working as of cb154bb22116910c462f7a83f4401bd01e15c34d -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list m

Re: [Mesa-dev] [PATCH 1/2] clover: make llvm >= 3.5.0 and c++11 mandatory

2015-04-20 Thread Tom Stellard
On Sun, Apr 19, 2015 at 10:50:18AM +0200, EdB wrote: > Clover not longer compile with llvm <= 3.5.0 since e1d363b3 > e1d363b3 implies c++11 and llvm 3.5.0 CXXFLAGS provided it > No one seems to have noticed it. It's now official. Thanks for working on this. > --- > configure.ac

Re: [Mesa-dev] [PATCH 2/2] clover: remove pre llvm 3.5.0 compatibility code

2015-04-20 Thread Tom Stellard
On Sun, Apr 19, 2015 at 10:50:19AM +0200, EdB wrote: > --- Reviewed-by: Tom Stellard > .../state_trackers/clover/llvm/invocation.cpp | 23 > ++ > 1 file changed, 2 insertions(+), 21 deletions(-) > > diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp >