[Mesa-dev] nouveau: xvmc on nv43

2013-08-19 Thread Pali Rohár
Hello Ilia, I was your last commit which fixing xvmc support for nv30 hw in mesa git tree. Maybe you can help me. I have graphics card nvidia geforce 6600 gt (nv43 chip) According to wiki page http://nouveau.freedesktop.org/wiki/FeatureMatrix/ xvmc support for nv43 is already done. When I

Re: [Mesa-dev] nouveau: xvmc on nv43

2013-08-19 Thread Pali Rohár
On Friday 16 August 2013 16:34:43 you wrote: On Fri, Aug 16, 2013 at 5:40 AM, Pali Rohár pali.ro...@gmail.com wrote: Hello Ilia, I was your last commit which fixing xvmc support for nv30 hw in mesa git tree. Maybe you can help me. I have graphics card nvidia geforce 6600 gt (nv43

[Mesa-dev] nouveau: nv43: Kwin from KDE 4.8 not working

2013-08-19 Thread Pali Rohár
Hello, with last mesa from master, kwin not rendering correctly. It render some random colors and after some time rendering is freezed. Keyboard, mouse working fine I'm able to write something in opened xterm. When I disable compositing (with keyboard shortcut) then rendering working fine and

Re: [Mesa-dev] [PATCH] r600g/sb: Initialize cf_node::bc.

2013-08-19 Thread Vadim Girlin
On 08/19/2013 01:35 AM, Vinson Lee wrote: Fixes Uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee v...@freedesktop.org --- src/gallium/drivers/r600/sb/sb_ir.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH v2 1/6] i965: Use SURF_INDEX_DRAW() for drawbuffer binding table indices.

2013-08-19 Thread Kenneth Graunke
SURF_INDEX_DRAW() has been the identity function since the dawn of time, and both the shader code and binding table upload code relied on that, simply using X rather than SURF_INDEX_DRAW(X). Even if that continues to be true, using the macro clarifies the code. The comment about draw buffers

Re: [Mesa-dev] [PATCH] r600g/sb: Move memsets of member structs to within constructor bodies.

2013-08-19 Thread Vadim Girlin
On 08/19/2013 11:50 AM, Vinson Lee wrote: Silences Uninitialized pointer field defects reported by Coverity. Signed-off-by: Vinson Lee v...@freedesktop.org Reviewed-by: Vadim Girlin vadimgir...@gmail.com --- src/gallium/drivers/r600/sb/sb_ir.h | 6 +++---

Re: [Mesa-dev] Mesa 9.2 branch created

2013-08-19 Thread Sven Joachim
On 2013-07-19 02:46 +0200, Ian Romanick wrote: The 9.2 branch is now live. From this point on, the branch will be treated just like any other stable release branch. Please remember to CC any patches destined for the release to mesa-stable. The current target date for the release is August

Re: [Mesa-dev] [PATCH] gallivm: do clamping of border color correctly for all formats

2013-08-19 Thread Jose Fonseca
Looks alright to me. I just wonder if it would be possible to factor this logic into a separate function somehow. Jose - Original Message - From: Roland Scheidegger srol...@vmware.com Turns out it is actually very complicated to figure out what a format really is wrt range, as

[Mesa-dev] [PATCH] nv30: add forgotten PIPE_CAP_CUBE_MAP_ARRAY cap to list

2013-08-19 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Silences a warning about unrecognized param when in debug mode. src/gallium/drivers/nv30/nv30_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nv30/nv30_screen.c b/src/gallium/drivers/nv30/nv30_screen.c index

[Mesa-dev] [Bug 29024] gallium build failure: can't find llvm headers

2013-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29024 Laurent carlier lordhea...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 37862] Mesa 7.11-devel implementation error: _mesa_texstore_null() is called

2013-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37862 Laurent carlier lordhea...@gmail.com changed: What|Removed |Added Status|REOPENED|RESOLVED

Re: [Mesa-dev] [PATCH] gallivm: do clamping of border color correctly for all formats

2013-08-19 Thread Roland Scheidegger
Am 19.08.2013 12:45, schrieb Jose Fonseca: Looks alright to me. I just wonder if it would be possible to factor this logic into a separate function somehow. Initially I wanted to factor out the logic for figuring out if snorm/unorm clamping is necessary, because coord clamping for shadow

[Mesa-dev] [PATCH 2/2] radeonsi: Always pre-load separate VGPRs for centroid vs. center interpolation

2013-08-19 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com The LLVM R600 backend currently always uses separate VGPRs for these. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68162 (Centroid interpolation is identical to center interpolation without multisampling, so the shader hardware was only

[Mesa-dev] [PATCH 1/2] radeonsi: Fix SPI_BARYC_CNTL register initialization

2013-08-19 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com The centroid / center interpolation related bits have different meanings as of SI. Fixes 7 centroid interpolation related piglit tests. Signed-off-by: Michel Dänzer michel.daen...@amd.com --- src/gallium/drivers/radeonsi/si_state_draw.c | 25

Re: [Mesa-dev] [PATCH 2/2] radeonsi: Always pre-load separate VGPRs for centroid vs. center interpolation

2013-08-19 Thread Laurent Carlier
Le lundi 19 août 2013 16:08:57 Michel Dänzer a écrit : From: Michel Dänzer michel.daen...@amd.com The LLVM R600 backend currently always uses separate VGPRs for these. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68162 (Centroid interpolation is identical to center interpolation

Re: [Mesa-dev] [PATCH 2/7] st/vdpau: exit gracefully if we fail to create video buffer

2013-08-19 Thread Emil Velikov
On 19/08/13 09:08, Christian König wrote: Am 18.08.2013 14:20, schrieb Emil Velikov: On 18/08/13 12:31, Christian König wrote: Am 17.08.2013 23:51, schrieb Emil Velikov: Otherwise we risk causing memory corruption. v2: forgot the mutex_unlock() Signed-off-by: Emil Velikov

[Mesa-dev] auxiliary/vl and st/vdpau, xvmc trivial fixes and cleanups v2

2013-08-19 Thread Emil Velikov
Diff to previous version patch 1,3,4,5,7 - annotate patches with Reviewed-by tags patch 2 - rework completely as per Christian's comments patch 6 - resolve merge conflicts on top of master Patches are also available at guthub for those interested

[Mesa-dev] [PATCH 1/7] vdpau/vl 422 chroma width/height mix up

2013-08-19 Thread Emil Velikov
From: Andy Furniss adf.li...@gmail.com I was looking into some minor 422 issues/discrepencies I noticed long ago using vdpau on my rv790. I noticed that there is code that is halving height rather than width - 422 is full height AFAIK. Making the changes below doesn't actually make any

[Mesa-dev] [PATCH 2/7] st/vdpau: don't try to create video buffer when the format is FORMAT_NONE

2013-08-19 Thread Emil Velikov
Not seen in the wild yet, but seems like a reasonable thing to do. [suggested by Christian] Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/vdpau/surface.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 3/7] st/xvmc: exit gracefully if we fail to create video buffer

2013-08-19 Thread Emil Velikov
Free any allocated memory and return BadAlloc if create_video_buffer() has failed to create a buffer. Reviewed-by: Christian König christian.koe...@amd.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/state_trackers/xvmc/surface.c | 4 1 file changed, 4 insertions(+)

[Mesa-dev] [PATCH 4/7] vl/buffer: add sanity check after CALLOC_STRUCT

2013-08-19 Thread Emil Velikov
Check if we have successfully allocated memory. Reviewed-by: Christian König christian.koe...@amd.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/auxiliary/vl/vl_video_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Mesa-dev] [PATCH 5/7] vl/idct: cleanup all idct buffers

2013-08-19 Thread Emil Velikov
Code should loop through and cleanup the three (VL_NUM_COMPONENTS) idct buffers, rather than doing the first one three times. Reviewed-by: Christian König christian.koe...@amd.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/auxiliary/vl/vl_mpeg12_decoder.c | 2 +- 1 file

[Mesa-dev] [PATCH 6/7] st/vdpau: drop unnecessary variable prof

2013-08-19 Thread Emil Velikov
Any decent compiler will do this for us, although doing this will make grepping through the code alot easier. v2: In both mixer and query interface v3: rebase Reviewed-by: Christian König christian.koe...@amd.com [v1] Signed-off-by: Emil Velikov emil.l.veli...@gmail.com ---

[Mesa-dev] [PATCH 7/7] vl/buffers: consistent use on VL_MAX_SURFACES

2013-08-19 Thread Emil Velikov
Reviewed-by: Christian König christian.koe...@amd.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/auxiliary/vl/vl_video_buffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.c

Re: [Mesa-dev] [PATCH 2/7] st/vdpau: don't try to create video buffer when the format is FORMAT_NONE

2013-08-19 Thread Emil Velikov
On 19/08/13 17:09, Christian König wrote: Am 19.08.2013 18:00, schrieb Emil Velikov: Not seen in the wild yet, but seems like a reasonable thing to do. [suggested by Christian] Signed-off-by: Emil Velikov emil.l.veli...@gmail.com Reviewed-by: Christian König christian.koe...@amd.com Do

Re: [Mesa-dev] [PATCH 1/1] mesa: Properly set the fog scale (gl_Fog.scale) to +INF when fog start and end are equal.

2013-08-19 Thread Brian Paul
On 08/17/2013 11:42 AM, Henri Verbeet wrote: This was originally introduced by commit ba47aabc9868b410cdfe3bc8b6d25a44a598cba2, but unfortunately the commit message doesn't go into much detail about why +INF would be a problem here. I don't see anything in the spec that would allow 1.0f here. A

[Mesa-dev] [Bug 58925] compis/kwin crashes on nouveau due to msaa

2013-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=58925 Fabio Pedretti fabio@libero.it changed: What|Removed |Added Assignee|dri-devel@lists.freedesktop

[Mesa-dev] [Bug 68262] wayland-drm.c:110:3: error: implicit declaration of function 'wl_resource_create'

2013-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68262 Fabio Pedretti fabio@libero.it changed: What|Removed |Added CC|

Re: [Mesa-dev] [PATCH 2/2] glsl: Use alignment of container record for its first field

2013-08-19 Thread Paul Berry
On 17 August 2013 00:37, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com The first field of a record in a UBO has the aligment of the record itself. Fixes piglit vs-struct-pad, fs-struct-pad, and (with the patch posted to the piglit list that extends

Re: [Mesa-dev] [PATCH] glsl: don't eliminate texcoords that can be set by GL_COORD_REPLACE

2013-08-19 Thread Marek Olšák
Hi Ian, In case you're interested, I have noticed we have no piglit tests for GL_ARB_base_instance. For example, baseinstance shouldn't affect gl_InstanceID, which is currently broken in radeonsi. Marek On Sun, Aug 18, 2013 at 5:23 AM, Ian Romanick i...@freedesktop.org wrote: On 08/09/2013

[Mesa-dev] [Bug 68296] New: Using old viewport value after a window resize (content is clipped)

2013-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68296 Priority: medium Bug ID: 68296 Assignee: mesa-dev@lists.freedesktop.org Summary: Using old viewport value after a window resize (content is clipped) Severity: normal

[Mesa-dev] [PATCH 2/2] mesa: Never advertise _S3TC compressed formats

2013-08-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com The NVIDIA driver doesn't expose them, and piglit's arb_texture_compression-invalid-formats expects them to not be there. Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: 9.2 mesa-sta...@lists.freedesktop.org --- src/mesa/main/texcompress.c |

[Mesa-dev] [PATCH 1/2] mesa: Only advertise GL_ETC1_RGB8_OES in ES contexts

2013-08-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com There is no extension for this format in desktop GL, so an application can't give the format back to glCompressedTexImage2D. Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: 9.2 mesa-sta...@lists.freedesktop.org --- src/mesa/main/texcompress.c

[Mesa-dev] [Bug 68297] New: Mesa tries to detect AVX support and fails horribly

2013-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68297 Priority: medium Bug ID: 68297 Assignee: mesa-dev@lists.freedesktop.org Summary: Mesa tries to detect AVX support and fails horribly Severity: major Classification: Unclassified

[Mesa-dev] Mesa 9.2 release candidate 1

2013-08-19 Thread Ian Romanick
Mesa 9.2 release candidate 1 is now available for testing. The tag in the GIT repository for Mesa 9.2-rc1 is 'mesa-9.2-rc1'. Mesa 9.2 release candidate 1 is available for download at ftp://freedesktop.org/pub/mesa/9.2/ md5sums: 866e9a1b3ce72b822671ee8106821aec MesaLib-9.2.0-rc1.tar.bz2

Re: [Mesa-dev] [PATCH 2/2] mesa: Never advertise _S3TC compressed formats

2013-08-19 Thread Anuj Phogat
On Mon, Aug 19, 2013 at 4:38 PM, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com The NVIDIA driver doesn't expose them, and piglit's arb_texture_compression-invalid-formats expects them to not be there. Signed-off-by: Ian Romanick

[Mesa-dev] [PATCH 3/3] util: add avx2 and xop detection to cpu detection code

2013-08-19 Thread sroland
From: Roland Scheidegger srol...@vmware.com Going to need this soon (not going to bother with avx2 intrinsics at this time but don't want to do workarounds for true vector shifts if llvm itself can use them just fine and won't need the gazillion instruction emulation). Not really tested other

[Mesa-dev] [PATCH 2/3] gallivm: fix bogus aos path detection

2013-08-19 Thread sroland
From: Roland Scheidegger srol...@vmware.com Need to check the wrap mode of the actually used coords not a fixed 2. While checking more than necessary would only potentially disable aos and not cause any harm I'm pretty sure for 3d textures it could have caused assertion failures (if s,t coords

[Mesa-dev] [PATCH 1/3] gallivm: do clamping of border color correctly for all formats

2013-08-19 Thread sroland
From: Roland Scheidegger srol...@vmware.com Turns out it is actually very complicated to figure out what a format really is wrt range, as using channel information for determining unorm/snorm etc. doesn't work for a bunch of cases - namely compressed, subsampled, other. Also while here add