[Mesa-dev] [PATCH] osmesa: Fix osmesa_context.DataType type.

2012-01-27 Thread Vinson Lee
Fixes these GCC warnings. osmesa.c: In function ‘osmesa_renderbuffer_storage’: osmesa.c:417: warning: comparison is always false due to limited range of data type osmesa.c:423: warning: comparison is always false due to limited range of data type osmesa.c:431: warning: comparison is always false

Re: [Mesa-dev] [PATCH] draw: Remove unused variables.

2012-01-27 Thread Vinson Lee
Dave. Ping. On Mon, Jan 16, 2012 at 3:46 AM, Jose Fonseca wrote: > Hi Vinson, > > These lines were added by Dave in > > commit 1865f341d8f45b389061fc08d2da90b7aa8a6099 > Author: Dave Airlie > Date:   Fri Jan 6 12:23:00 2012 + > >    draw: clipdistance support (v2) > >    Add support for usin

Re: [Mesa-dev] linker.cpp warning

2012-01-27 Thread Vinson Lee
On Tue, Jan 24, 2012 at 11:40 AM, Kenneth Graunke wrote: > On 01/24/2012 10:08 AM, Brian Paul wrote: >> >> I've been seeing this error from linker.cpp for a few days now: >> >> linker.cpp: In function ‘gl_shader* link_intrastage_shaders(void*, >> gl_context*, gl_shader_program*, gl_shader**, unsig

[Mesa-dev] [PATCH] i965/gen7: Always allocate push constant space before uploading.

2012-01-27 Thread Eric Anholt
It's not clear from the specs why this would be required, but it fixes the regression in glean/fbo. My theory is that push constant uploads incrementally fill up the allocated space (with wrapping), but don't synchronize on previous constant buffers being dereferenced when overwriting after a wrap

[Mesa-dev] Mesa 8.0 release candidate 2

2012-01-27 Thread Ian Romanick
Mesa 8.0-rc2 has been released. This is a release candidate for the 8.0 development release. The tag in the GIT repository for Mesa 8.0-rc2 is 'mesa-8.0-rc2'. Mesa 8.0-rc2 is available for download at ftp://freedesktop.org/pub/mesa/8.0/ md5sums: c2afdd52e138692db536645fa57f0c87 MesaLib-8.0

[Mesa-dev] [PATCH] mesa: fixes for DrawRangeElements[BaseVertex] index validation

2012-01-27 Thread Roland Scheidegger
in check_index_bounds the comparison needs to be "greater equal" since contrary to the name _MaxElement is the count of the array. In vbo_exec_DrawRangeElementsBaseVertex, take into account the basevertex. As far as I can tell it is completely ok (though maybe stupid) to have start/end of 100/199,

[Mesa-dev] [PATCH] st/mesa: simplify initialization of light_twoside

2012-01-27 Thread Marek Olšák
Core Mesa does this for us, see update_two_size in state.c. --- src/mesa/state_tracker/st_atom_rasterizer.c | 24 +++- 1 files changed, 3 insertions(+), 21 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c in

Re: [Mesa-dev] [PATCH 0/4] Removal of point size clamping in st/mesa

2012-01-27 Thread Roland Scheidegger
Am 28.01.2012 01:38, schrieb Marek Olšák: > Hi everyone, > > the subject says it all. This series fixes gl_PointSize with transform > feedback. There is a new piglit test to verify that a driver does clamping > properly during rasterization: vs-point_size-zero > > I haven't changed Draw, becaus

Re: [Mesa-dev] [PATCH] swrast: Fix fixed-function fragment processing

2012-01-27 Thread Chad Versace
On 01/27/2012 03:19 PM, Brian Paul wrote: > Chad, > > I'm seeing a bunch of new warnings: Brian, sorry about that. I forgot a #include, of course. I just pushed the fix. Chad Versace chad.vers...@linux.intel.com ___ mesa-dev mailing list mesa-dev@

[Mesa-dev] [PATCH 4/4] st/mesa: kill off point size clamping in vertex shaders

2012-01-27 Thread Marek Olšák
This fixes the gl_PointSize transform feedback test. --- src/mesa/program/prog_statevars.c | 27 --- src/mesa/program/prog_statevars.h |1 - src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 49 src/mesa/state_tracker/st_mesa_to_tgsi.c

[Mesa-dev] [PATCH 3/4] r600g: set minimum point size to 1.0 for non-sprite non-aa points

2012-01-27 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_state.c | 10 +- src/gallium/drivers/r600/evergreend.h |6 ++ src/gallium/drivers/r600/r600_pipe.h |7 +++ src/gallium/drivers/r600/r600_state.c | 10 +- 4 files changed, 31 insertions(+), 2 deletions(-) di

[Mesa-dev] [PATCH 2/4] r300g: set minimum point size to 1.0 for non-sprite non-aa points

2012-01-27 Thread Marek Olšák
--- src/gallium/drivers/r300/r300_state.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 33fdf3b..cf0c9d1 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/dri

[Mesa-dev] [PATCH 1/4] svga: set POINTSIZEMIN to 1.0 for non-sprite non-aa points

2012-01-27 Thread Marek Olšák
--- src/gallium/drivers/svga/svga_state_rss.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/svga/svga_state_rss.c b/src/gallium/drivers/svga/svga_state_rss.c index af68d9c..43516fa 100644 --- a/src/gallium/drivers/svga/svga_state_rss.c +++ b/sr

[Mesa-dev] [PATCH 0/4] Removal of point size clamping in st/mesa

2012-01-27 Thread Marek Olšák
Hi everyone, the subject says it all. This series fixes gl_PointSize with transform feedback. There is a new piglit test to verify that a driver does clamping properly during rasterization: vs-point_size-zero I haven't changed Draw, because softpipe and llvmpipe do the clamping internally some

[Mesa-dev] [PATCH] mesa: Restore depth texture state on glPopAttrib(GL_TEXTURE_BIT).

2012-01-27 Thread Kenneth Graunke
According to Table 6.17 in the GL 2.1 specification, DEPTH_TEXTURE_MODE, TEXTURE_COMPARE_MODE, and TEXTURE_COMPARE_FUNC need to be restored on glPopAttrib(GL_TEXTURE_BIT). Makes oglconform's shad-compiler advanced.TestShadow2D_VertShader test a bit less grumbly. NOTE: This is a candidate for rele

Re: [Mesa-dev] [PATCH 1/2] i965/fs: Fix rendering corruption in unigine tropics.

2012-01-27 Thread Eric Anholt
On Fri, 27 Jan 2012 13:29:18 -0800, Kenneth Graunke wrote: > On 01/27/2012 01:16 PM, Eric Anholt wrote: > > We were allocating registers into the MRF hack region, resulting in > > sparkly renering in a few of the scenes. We could do better > > allocation by making an MRF class, having MRFs confl

[Mesa-dev] [PATCH] mesa: fix maximum allowed proxy texture size condition

2012-01-27 Thread Anuj Phogat
width, height parameter of glTexImage2D() includes: texture image width + 2 * border (if any). So when doing the texture size check in _mesa_test_proxy_teximage() width and height should not exceed maximum supported size for target texture type. i.e. 1 << (ctx->Const.MaxTextureLevels - 1) This pat

[Mesa-dev] [Bug 45277] [bisected] Shading not working properly in Heroes of Newerth

2012-01-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45277 --- Comment #1 from Rene Peinthor 2012-01-27 15:37:42 PST --- can confirm this problem with my 5770, thanks for bisecting -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: -

Re: [Mesa-dev] [PATCH] swrast: Fix fixed-function fragment processing

2012-01-27 Thread Brian Paul
Chad, I'm seeing a bunch of new warnings: In file included from swrast/s_aaline.c:470: swrast/s_aalinetemp.h: In function ‘aa_general_rgba_plot’: swrast/s_aalinetemp.h:70: warning: implicit declaration of function ‘_swrast_use_fragment_program’ swrast/s_aatriangle.c: In function ‘_swrast_set_aa_t

[Mesa-dev] [Bug 45070] 'make linux-x86-64-debug' fails to build libGL.so.1.5.08000

2012-01-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45070 Kenneth Graunke changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] [PATCH 1/2] i965/fs: Fix rendering corruption in unigine tropics.

2012-01-27 Thread Kenneth Graunke
On 01/27/2012 01:16 PM, Eric Anholt wrote: We were allocating registers into the MRF hack region, resulting in sparkly renering in a few of the scenes. We could do better allocation by making an MRF class, having MRFs conflict with the corresponding GRFs, and tracking the live intervals of the "

[Mesa-dev] [PATCH 2/2] i965/vs: Avoid allocating registers in to the gen7 MRF hack region.

2012-01-27 Thread Eric Anholt
This is the corresponding fix to the previous one for the FS, but I don't have a particular test for it. NOTE: This is a candidate for the 8.0 branch. --- src/mesa/drivers/dri/i965/brw_vec4.h |1 + .../drivers/dri/i965/brw_vec4_reg_allocate.cpp |6 +++--- src/mesa/driver

[Mesa-dev] [PATCH 1/2] i965/fs: Fix rendering corruption in unigine tropics.

2012-01-27 Thread Eric Anholt
We were allocating registers into the MRF hack region, resulting in sparkly renering in a few of the scenes. We could do better allocation by making an MRF class, having MRFs conflict with the corresponding GRFs, and tracking the live intervals of the "MRF"s and setting up the conflicts. But this

Re: [Mesa-dev] [PATCH 4/4] dri: Add a default drirc to be installed to provide application workarounds.

2012-01-27 Thread Marek Olšák
On Fri, Jan 27, 2012 at 9:52 PM, Eric Anholt wrote: > On Fri, 27 Jan 2012 00:58:45 +0100, Marek Olšák wrote: >> On Fri, Jan 27, 2012 at 12:26 AM, Ian Romanick wrote: >> > It also appears the Unigen may be resolving some of these issues.  That may >> > make the work-arounds irrelevant. >> > >> >

Re: [Mesa-dev] [PATCH 4/4] dri: Add a default drirc to be installed to provide application workarounds.

2012-01-27 Thread Kenneth Graunke
On 01/27/2012 12:52 PM, Eric Anholt wrote: On Fri, 27 Jan 2012 00:58:45 +0100, Marek Olšák wrote: On Fri, Jan 27, 2012 at 12:26 AM, Ian Romanick wrote: It also appears the Unigen may be resolving some of these issues. That may make the work-arounds irrelevant. http://phoronix.com/forums/sho

Re: [Mesa-dev] [PATCH] autoconf: Enable missing-prototypes errors when available.

2012-01-27 Thread Kenneth Graunke
On 01/27/2012 12:53 PM, Matt Turner wrote: Looks OK to me. I've wondered whether we want to import the macro for checking these things from xorg-util-macros, since we'll probably want to do this for a few other ones too. I think that might be good eventually, but there's so much stuff in confi

Re: [Mesa-dev] [PATCH] autoconf: Enable missing-prototypes errors when available.

2012-01-27 Thread Matt Turner
> Looks OK to me.  I've wondered whether we want to import the macro for > checking these things from xorg-util-macros, since we'll probably want to do > this for a few other ones too. I think that might be good eventually, but there's so much stuff in configure.ac to be cleaned, I think it should

Re: [Mesa-dev] [PATCH 4/4] dri: Add a default drirc to be installed to provide application workarounds.

2012-01-27 Thread Eric Anholt
On Fri, 27 Jan 2012 00:58:45 +0100, Marek Olšák wrote: > On Fri, Jan 27, 2012 at 12:26 AM, Ian Romanick wrote: > > It also appears the Unigen may be resolving some of these issues.  That may > > make the work-arounds irrelevant. > > > > http://phoronix.com/forums/showthread.php?68411-Unigine-OilR

Re: [Mesa-dev] [PATCH] autoconf: Enable missing-prototypes errors when available.

2012-01-27 Thread Kenneth Graunke
On 01/27/2012 11:58 AM, Eric Anholt wrote: After the removal of the dri driver link test, this should help avoid the original problem that it was designed to catch: The warning about a missing prototype due to typoing a function name scrolling by in the Mesa build spew, and you not noticing until

Re: [Mesa-dev] Segmentation fault with VTK OffScreenRendering

2012-01-27 Thread Kevin H. Hobbs
So you want to get OSMesa from Mesa-7.11.2 working with VTK-5.8.0 on Fedora 15? You can do without the VTKData lines. They don't add as many tests as I thought. # Go somewhere to play around cd /tmp # get Mesa wget ftp://ftp.freedesktop.org/pub/mesa/7.11.2/MesaLib-7.11.2.tar.bz2 # get VTK and

Re: [Mesa-dev] Mesa (master): dri: make sure to build libdricommon.la

2012-01-27 Thread Matt Turner
On Fri, Jan 27, 2012 at 8:11 PM, Jon TURNEY wrote: > On 27/01/2012 08:03, Eric Anholt wrote: >> On Thu, 26 Jan 2012 16:32:24 -0800 (PST), matts...@kemper.freedesktop.org >> (Matt Turner) wrote: >>> Module: Mesa >>> Branch: master >>> Commit: 80aa78142d12b21dd7d4f0edc786af98a159a80f >>> URL:     >

Re: [Mesa-dev] Mesa (master): dri: make sure to build libdricommon.la

2012-01-27 Thread Jon TURNEY
On 27/01/2012 08:03, Eric Anholt wrote: > On Thu, 26 Jan 2012 16:32:24 -0800 (PST), matts...@kemper.freedesktop.org > (Matt Turner) wrote: >> Module: Mesa >> Branch: master >> Commit: 80aa78142d12b21dd7d4f0edc786af98a159a80f >> URL: >> http://cgit.freedesktop.org/mesa/mesa/commit/?id=80aa78142

[Mesa-dev] [PATCH] autoconf: Enable missing-prototypes errors when available.

2012-01-27 Thread Eric Anholt
After the removal of the dri driver link test, this should help avoid the original problem that it was designed to catch: The warning about a missing prototype due to typoing a function name scrolling by in the Mesa build spew, and you not noticing until you try to run an application and it falls b

Re: [Mesa-dev] [PATCH] mesa: fix maximum supported texture size returned by glGetIntegrv

2012-01-27 Thread Anuj Phogat
On Fri, Jan 27, 2012 at 10:42 AM, Ian Romanick wrote: > On 01/27/2012 12:57 AM, Jose Fonseca wrote: > >> This doesn't make sense from a mathematical POV. >> >> If the allowable size is >> >> 2^floor(log2(MAX_XX_TEXTURE_**SIZE)) + 2*bt >> >> then it doesn't matter whether MAX_XX_TEXTURE_SIZE has

Re: [Mesa-dev] [PATCH] intel: Fix accum buffer mapping since the swrast rework.

2012-01-27 Thread Eric Anholt
On Tue, 24 Jan 2012 17:55:49 -0800, Ian Romanick wrote: > On 01/24/2012 03:59 PM, Eric Anholt wrote: > > A pure swrast-allocated buffer gets an irb of NULL, so we segfaulted > > in the clear-accum test. Just look at the swrast renderbuffer pointer > > for handling swrast rbs. > > --- > > src/me

Re: [Mesa-dev] [PATCH] swrast: Fix fixed-function fragment processing

2012-01-27 Thread Ian Romanick
On 01/26/2012 12:46 PM, Chad Versace wrote: On i965, _mesa_ir_link_shader is never called. As a consequence, the current fragment program (ctx->FragmentProgram->_Current) exists but does not differ from the fixed function fragment program (ctx->FragmentProgram->_TexEnvProgram). This confuses swra

Re: [Mesa-dev] [PATCH 01/14] mesa: remove LSB-first pixel packing check in glReadPixels

2012-01-27 Thread Ian Romanick
For the series, Reviewed-by: Ian Romanick On 01/26/2012 07:04 PM, Brian Paul wrote: GL_UNPACK_LSB_FIRST only applies to bitmap data, not glReadPixels. --- src/mesa/main/readpix.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/readpix.c b/src/mesa/ma

Re: [Mesa-dev] [PATCH 07/14] mesa: use swapBytes parameter in _mesa_format_matches_format_and_type()

2012-01-27 Thread Ian Romanick
On 01/27/2012 10:36 AM, Jose Fonseca wrote: - Original Message - On 01/27/2012 01:33 AM, Jose Fonseca wrote: Brian, This is probably right but a tad verbose, and error prone. I'm not sure what's the best way to simplify this though. It's not possible to canonize the comparisons beca

Re: [Mesa-dev] [PATCH 6/6] gallivm: Add a new interface for doing TGSI->LLVM conversions

2012-01-27 Thread Tom Stellard
On Fri, Jan 27, 2012 at 10:13:54AM -0800, Jose Fonseca wrote: > > > - Original Message - > > On Fri, Jan 27, 2012 at 09:17:54AM -0800, Jose Fonseca wrote: > > > > > > > > > - Original Message - > > > > On Mon, Jan 16, 2012 at 2:27 PM, Jose Fonseca > > > > > > > > wrote: > > > >

Re: [Mesa-dev] [PATCH] mesa: fix maximum supported texture size returned by glGetIntegrv

2012-01-27 Thread Ian Romanick
On 01/27/2012 12:57 AM, Jose Fonseca wrote: This doesn't make sense from a mathematical POV. If the allowable size is 2^floor(log2(MAX_XX_TEXTURE_SIZE)) + 2*bt then it doesn't matter whether MAX_XX_TEXTURE_SIZE has or not the border with, as the allowable size is still the same for all comm

Re: [Mesa-dev] [PATCH 07/14] mesa: use swapBytes parameter in _mesa_format_matches_format_and_type()

2012-01-27 Thread Jose Fonseca
- Original Message - > On 01/27/2012 01:33 AM, Jose Fonseca wrote: > > Brian, > > > > This is probably right but a tad verbose, and error prone. > > > > I'm not sure what's the best way to simplify this though. It's not > > possible to canonize the comparisons because there are missing >

Re: [Mesa-dev] [PATCH 07/14] mesa: use swapBytes parameter in _mesa_format_matches_format_and_type()

2012-01-27 Thread Ian Romanick
On 01/27/2012 01:33 AM, Jose Fonseca wrote: Brian, This is probably right but a tad verbose, and error prone. I'm not sure what's the best way to simplify this though. It's not possible to canonize the comparisons because there are missing combinations. But I think that at least using ternary

Re: [Mesa-dev] [PATCH] draw: Ensure that prepare is always run after LLVM garbagge collection.

2012-01-27 Thread Stéphane Marchesin
2012/1/27 Jose Fonseca : > > > - Original Message - >> On Fri, Jan 27, 2012 at 07:28, Jose Fonseca >> wrote: >> > >> > >> > - Original Message - >> >> On Fri, Jan 27, 2012 at 8:18 AM, Brian Paul >> >> >> >> wrote: >> >> > On Fri, Jan 27, 2012 at 7:40 AM,   wrote: >> >> >> From: Jo

Re: [Mesa-dev] [PATCH] draw: Ensure that prepare is always run after LLVM garbagge collection.

2012-01-27 Thread Jose Fonseca
- Original Message - > On Fri, Jan 27, 2012 at 07:28, Jose Fonseca > wrote: > > > > > > - Original Message - > >> On Fri, Jan 27, 2012 at 8:18 AM, Brian Paul > >> > >> wrote: > >> > On Fri, Jan 27, 2012 at 7:40 AM,   wrote: > >> >> From: José Fonseca > >> >> > >> >> Should avoi

Re: [Mesa-dev] [PATCH 4/4] dri: Add a default drirc to be installed to provide application workarounds.

2012-01-27 Thread Ian Romanick
On 01/26/2012 03:58 PM, Marek Olšák wrote: Well, we'll see if they fix the benchmarks too. Anyway, I don't see how this series addresses the issue with gl_InstanceID. Right. I submitted a spec bug for that, and it should get resolved at the face-to-face meeting next week. __

Re: [Mesa-dev] [PATCH 6/6] gallivm: Add a new interface for doing TGSI->LLVM conversions

2012-01-27 Thread Jose Fonseca
- Original Message - > On Fri, Jan 27, 2012 at 09:17:54AM -0800, Jose Fonseca wrote: > > > > > > - Original Message - > > > On Mon, Jan 16, 2012 at 2:27 PM, Jose Fonseca > > > > > > wrote: > > > > Tom, > > > > > > > > Looks good in principle! > > > > > > > > But I need to test

Re: [Mesa-dev] [PATCH] intel: Don't try intel_miptree_map_blit if a region is already mapped

2012-01-27 Thread Chad Versace
On 01/27/2012 12:07 AM, Eric Anholt wrote: > On Thu, 26 Jan 2012 18:29:30 -0800, "Ian Romanick" > wrote: >> From: Ian Romanick >> >> Eventually this path leads to _intel_batchbuffer_flush. The first >> thing there is an assertion that nothing is mapped. >> >> Fixes the afore mentioned assertion

Re: [Mesa-dev] [PATCH 6/6] gallivm: Add a new interface for doing TGSI->LLVM conversions

2012-01-27 Thread Tom Stellard
On Fri, Jan 27, 2012 at 09:17:54AM -0800, Jose Fonseca wrote: > > > - Original Message - > > On Mon, Jan 16, 2012 at 2:27 PM, Jose Fonseca > > wrote: > > > Tom, > > > > > > Looks good in principle! > > > > > > But I need to test this myself before I can be comfortable w/ > > > merging it

Re: [Mesa-dev] [PATCH] draw: Ensure that prepare is always run after LLVM garbagge collection.

2012-01-27 Thread Stéphane Marchesin
On Fri, Jan 27, 2012 at 07:28, Jose Fonseca wrote: > > > - Original Message - >> On Fri, Jan 27, 2012 at 8:18 AM, Brian Paul >> wrote: >> > On Fri, Jan 27, 2012 at 7:40 AM,   wrote: >> >> From: José Fonseca >> >> >> >> Should avoid dangling pointer derreference with >> >> >> >>  glean --

Re: [Mesa-dev] [PATCH 6/6] gallivm: Add a new interface for doing TGSI->LLVM conversions

2012-01-27 Thread Jose Fonseca
- Original Message - > On Mon, Jan 16, 2012 at 2:27 PM, Jose Fonseca > wrote: > > Tom, > > > > Looks good in principle! > > > > But I need to test this myself before I can be comfortable w/ > > merging it into master. > > > > Hi Jose, > > Have you had a chance to test this out yet? Hi

[Mesa-dev] [Bug 44618] Cross-compilation broken by glsl builtin_compiler

2012-01-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44618 --- Comment #12 from Matt Turner 2012-01-27 08:10:00 PST --- (In reply to comment #11) > I've been seeing your automake related commits and I'm really glad to see > someone working on this. Are there plans to actually get this done for 8.0 > or

[Mesa-dev] [Bug 44618] Cross-compilation broken by glsl builtin_compiler

2012-01-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44618 --- Comment #11 from Thierry Reding 2012-01-27 07:55:01 PST --- > Looks like I can do something similar! I've been seeing your automake related commits and I'm really glad to see someone working on this. Are there plans to actually get this don

Re: [Mesa-dev] Help required in configuring mesa 3d in non X environment.

2012-01-27 Thread Matt Turner
2012/1/26 Sanjoy Saha - ERS, HCL Tech : > Michel, >    As per the below instructions i tried to compile mesa as follows. But i > get a compilation error in make process. Can you please help me out here ? > > ./configure --enable-gallium-egl --with-egl-platforms=drm > --enable-shared-glapi --with-

Re: [Mesa-dev] [PATCH] mesa: set clamp bit in glGetTexImage for GL_UNSIGNED_NORMALIZED

2012-01-27 Thread Eric Anholt
On Thu, 26 Jan 2012 13:55:37 -0800, Ian Romanick wrote: > On 01/26/2012 06:40 AM, Brian Paul wrote: > > On Tue, Jan 24, 2012 at 10:58 PM, Anuj Phogat wrote: > >> Color clamping should be enabled in glGetTexImage if texture dataType is > >> GL_UNSIGNED_NORMALIZED and format is GL_LUMINANCE or GL_L

[Mesa-dev] [Bug 44618] Cross-compilation broken by glsl builtin_compiler

2012-01-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44618 --- Comment #10 from Matt Turner 2012-01-27 07:44:46 PST --- (In reply to comment #9) > Thanks! Looks like I can do something similar! -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this

Re: [Mesa-dev] [PATCH] automake: src/mesa/drivers/osmesa

2012-01-27 Thread Matt Turner
On Fri, Jan 27, 2012 at 7:57 AM, Jon TURNEY wrote: > On 27/01/2012 05:06, Matt Turner wrote: >> Please give this a try. >> >> OSMesa is broken with shared-glapi. I'll fix that (it'll be much >> easier) when I automake glapi. > >> +libOSMesa_la_SOURCES = osmesa.c >> +libOSMesa_la_LDFLAGS = -version

Re: [Mesa-dev] [PATCH 6/6] gallivm: Add a new interface for doing TGSI->LLVM conversions

2012-01-27 Thread Tom Stellard
On Mon, Jan 16, 2012 at 2:27 PM, Jose Fonseca wrote: > Tom, > > Looks good in principle! > > But I need to test this myself before I can be comfortable w/ merging it into > master. > Hi Jose, Have you had a chance to test this out yet? -Tom > Just a few quick comments inline. > > Jose >

Re: [Mesa-dev] [PATCH] draw: Ensure that prepare is always run after LLVM garbagge collection.

2012-01-27 Thread Jose Fonseca
- Original Message - > On Fri, Jan 27, 2012 at 8:18 AM, Brian Paul > wrote: > > On Fri, Jan 27, 2012 at 7:40 AM,   wrote: > >> From: José Fonseca > >> > >> Should avoid dangling pointer derreference with > >> > >>  glean --run results --overwrite --quick --tests texSwizzle > >> --- > >>

Re: [Mesa-dev] [PATCH 07/14] mesa: use swapBytes parameter in _mesa_format_matches_format_and_type()

2012-01-27 Thread Jose Fonseca
- Original Message - > On Fri, Jan 27, 2012 at 2:33 AM, Jose Fonseca > wrote: > > Brian, > > > > This is probably right but a tad verbose, and error prone. > > > > I'm not sure what's the best way to simplify this though. It's not > > possible to canonize the comparisons because there ar

Re: [Mesa-dev] [PATCH] draw: Ensure that prepare is always run after LLVM garbagge collection.

2012-01-27 Thread Brian Paul
On Fri, Jan 27, 2012 at 8:18 AM, Brian Paul wrote: > On Fri, Jan 27, 2012 at 7:40 AM,   wrote: >> From: José Fonseca >> >> Should avoid dangling pointer derreference with >> >>  glean --run results --overwrite --quick --tests texSwizzle >> --- >>  src/gallium/auxiliary/draw/draw_llvm.c |    5 +++

Re: [Mesa-dev] [PATCH] draw: Ensure that prepare is always run after LLVM garbagge collection.

2012-01-27 Thread Brian Paul
On Fri, Jan 27, 2012 at 7:40 AM, wrote: > From: José Fonseca > > Should avoid dangling pointer derreference with > >  glean --run results --overwrite --quick --tests texSwizzle > --- >  src/gallium/auxiliary/draw/draw_llvm.c |    5 + >  1 files changed, 5 insertions(+), 0 deletions(-) > > di

Re: [Mesa-dev] [PATCH 07/14] mesa: use swapBytes parameter in _mesa_format_matches_format_and_type()

2012-01-27 Thread Brian Paul
On Fri, Jan 27, 2012 at 2:33 AM, Jose Fonseca wrote: > Brian, > > This is probably right but a tad verbose, and error prone. > > I'm not sure what's the best way to simplify this though. It's not possible > to canonize the comparisons because there are missing combinations. > > But I think that a

[Mesa-dev] [Bug 45292] Compilation failure on d3d1x state tracker: ‘ID3D10Include’ has not been declared

2012-01-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45292 Alex Deucher changed: What|Removed |Added AssignedTo|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.

[Mesa-dev] [PATCH] draw: Ensure that prepare is always run after LLVM garbagge collection.

2012-01-27 Thread jfonseca
From: José Fonseca Should avoid dangling pointer derreference with glean --run results --overwrite --quick --tests texSwizzle --- src/gallium/auxiliary/draw/draw_llvm.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/g

Re: [Mesa-dev] [PATCH 2/2] gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY

2012-01-27 Thread Michel Dänzer
On Don, 2012-01-26 at 20:45 +0100, Marek Olšák wrote: > On Tue, Jan 10, 2012 at 6:20 PM, Jose Fonseca wrote: > >> On Tue, Jan 10, 2012 at 5:15 PM, Jose Fonseca > >> wrote: > >> > > >> > Also, please provide app name and performance figures w/ this > >> > change. > >> > >> OK. Torcs, the Forza t

Re: [Mesa-dev] [PATCH] automake: src/mesa/drivers/osmesa

2012-01-27 Thread Jon TURNEY
On 27/01/2012 05:06, Matt Turner wrote: > Please give this a try. > > OSMesa is broken with shared-glapi. I'll fix that (it'll be much > easier) when I automake glapi. > +libOSMesa_la_SOURCES = osmesa.c > +libOSMesa_la_LDFLAGS = -version-info 8:0:0 #FIXME > +libOSMesa_la_LIBADD = $(LIBADD) > +end

Re: [Mesa-dev] [PATCH 07/14] mesa: use swapBytes parameter in _mesa_format_matches_format_and_type()

2012-01-27 Thread Jose Fonseca
Apart of this simplification suggestion, the series looks good to me AFAICT. Jose - Original Message - > Brian, > > This is probably right but a tad verbose, and error prone. > > I'm not sure what's the best way to simplify this though. It's not > possible to canonize the comparisons be

Re: [Mesa-dev] Mesa (master): draw: Only run prepare when state, prim and opt changes

2012-01-27 Thread Jose Fonseca
Ah. Thanks for investigating this Stephane. Garbagge collection happens infrequently, and it really needs to destroy everything. We should just make sure there are no dangling pointers when it does. I'll take a closer look. Jose - Original Message - > Ok so I'm thinking of adding a re

Re: [Mesa-dev] [PATCH 07/14] mesa: use swapBytes parameter in _mesa_format_matches_format_and_type()

2012-01-27 Thread Jose Fonseca
Brian, This is probably right but a tad verbose, and error prone. I'm not sure what's the best way to simplify this though. It's not possible to canonize the comparisons because there are missing combinations. But I think that at least using ternary operators would make the code more compact

Re: [Mesa-dev] [PATCH] mesa: fix maximum supported texture size returned by glGetIntegrv

2012-01-27 Thread Jose Fonseca
This doesn't make sense from a mathematical POV. If the allowable size is 2^floor(log2(MAX_XX_TEXTURE_SIZE)) + 2*bt then it doesn't matter whether MAX_XX_TEXTURE_SIZE has or not the border with, as the allowable size is still the same for all common values of MAX_XX_TEXTURE_SIZE. It would

Re: [Mesa-dev] Help required in configuring mesa 3d in non X environment.

2012-01-27 Thread Sanjoy Saha - ERS, HCL Tech
Michel, As per the below instructions i tried to compile mesa as follows. But i get a compilation error in make process. Can you please help me out here ? ./configure --enable-gallium-egl --with-egl-platforms=drm --enable-shared-glapi --with-gallium-drivers=r600 --enable-gles1 prefi

Re: [Mesa-dev] [PATCH] intel: Don't try intel_miptree_map_blit if a region is already mapped

2012-01-27 Thread Eric Anholt
On Thu, 26 Jan 2012 18:29:30 -0800, "Ian Romanick" wrote: > From: Ian Romanick > > Eventually this path leads to _intel_batchbuffer_flush. The first > thing there is an assertion that nothing is mapped. > > Fixes the afore mentioned assertion failure in piglit's > fbo-mipmap-copypix, and is re

Re: [Mesa-dev] [PATCH 1/3] mesa: Fix handling of glCopyBufferSubData() for src == dst.

2012-01-27 Thread Eric Anholt
On Thu, 26 Jan 2012 13:58:43 -0800, Ian Romanick wrote: > On 01/25/2012 05:51 PM, Eric Anholt wrote: > > Fixes piglit ARB_copy_buffer-overlap, which previously assertion failed. > > Reviewed-by: Ian Romanick > > One other orthogonal question below... > > > --- > > src/mesa/main/bufferobj.c |

Re: [Mesa-dev] Mesa (master): dri: make sure to build libdricommon.la

2012-01-27 Thread Eric Anholt
On Thu, 26 Jan 2012 16:32:24 -0800 (PST), matts...@kemper.freedesktop.org (Matt Turner) wrote: > Module: Mesa > Branch: master > Commit: 80aa78142d12b21dd7d4f0edc786af98a159a80f > URL: > http://cgit.freedesktop.org/mesa/mesa/commit/?id=80aa78142d12b21dd7d4f0edc786af98a159a80f > > Author: Matt