[Mesa-dev] [PATCH] glsl: Fix 'control reaches end of non-void function' warning.

2012-01-16 Thread Vinson Lee
Fix this GCC warning on non-debug builds. glsl_types.cpp: In member function 'gl_texture_index glsl_type::sampler_index() const': glsl_types.cpp:157: warning: control reaches end of non-void function Signed-off-by: Vinson Lee --- src/glsl/glsl_types.cpp |4 ++-- 1 files changed, 2 insertions

[Mesa-dev] [PATCH] i965: Remove the INTEL_OLD_VS option.

2012-01-16 Thread Kenneth Graunke
Now that we no longer generate Mesa IR from GLSL IR, it's impossible to use the old vertex shader backend for GLSL programs. There's simply no Mesa IR to codegen from. Any attempt to do so would result in immediate GPU hangs, presumably due to the driver uploading an empty program with no EOT mes

Re: [Mesa-dev] renderbuffer-cleanups-v2 branch

2012-01-16 Thread Brian Paul
On Mon, Jan 16, 2012 at 4:31 PM, Ian Romanick wrote: > On 01/16/2012 01:30 PM, Brian Paul wrote: >> >> >> The renderbuffer-cleanups-v2 branch removes all the old swrast >> GetRow/PutRow stuff. All swrast rendering is now done through >> renderbuffer mapping and the format_pack/unpack.c code. > > >

Re: [Mesa-dev] [RFC] r600-r800 2D tiling

2012-01-16 Thread Marek Olšák
Hi Jerome, I skimmed over the patches and how libdrm interacts with r600g and it looks good. We don't generally include DRM-specific headers in radeon_winsys.h, because that header is supposed to be cross-platform, but I guess we can make an exception in this case as long as we keep radeon_surfac

Re: [Mesa-dev] According the "intel: Fix segfault in glXSwapBuffers with no bound context" patch.

2012-01-16 Thread Anuj Phogat
On Mon 16 Jan 2012 03:59:05 PM PST, Christian Inci wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello @all, > > wouldn't it be better to return if intel is NULL instead, as there's nothing > after the if statement? > (At least you wouldn't need to indent the code then.) I agree. I'

[Mesa-dev] [Bug 41221] Mesa 7.11 implementation error: Incomplete OpenGL ES 2.0 support.

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41221 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] Mesa (master): intel: Fix segfault in glXSwapBuffers with no bound context

2012-01-16 Thread Chad Versace
Anuj, when a bugfix like this can be backported to a stable branch, please annotate the commit message with Note: This is a candidate for the X.X branch or Note: This is a candidate for the stable branches. This helps the stable branch maintainer automate the backport process. Thanks, Cha

[Mesa-dev] [PATCH] mesa: Add condition in glGetTexImage for zero size textures

2012-01-16 Thread Anuj Phogat
TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero size skips miptree allocation due to a condition in function _mesa_store_teximage3d(). While calling glGetTexImage() it results in assertion failure in intel_map_texture_image() due to null

Re: [Mesa-dev] [PATCH] mesa: Support GL_VERTEX_ATTRIB_ARRAY_INTEGER in GL 3.0 contexts.

2012-01-16 Thread Ian Romanick
On 01/16/2012 10:38 AM, Kenneth Graunke wrote: According to Table 6.8 (Page 348) in the OpenGL 3.0 specification, glGetVertexAttribfv supports GL_VERTEX_ATTRIB_ARRAY_INTEGER. Signed-off-by: Kenneth Graunke This patch indirectly affects the oglc depth-tex test (which tries to use this function

[Mesa-dev] [Bug 44757] one wrong triangle on the balls in foobillard

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44757 --- Comment #2 from almos 2012-01-16 16:16:27 PST --- Created attachment 55654 --> https://bugs.freedesktop.org/attachment.cgi?id=55654 trianglestrip.txt I found the problematic triangle for detail=7. The ball geometry is created by building a

Re: [Mesa-dev] [PATCH] i965: Fix gen6, gen7 when used with a non-HiZ capable DDX

2012-01-16 Thread Ian Romanick
On 01/13/2012 04:57 PM, Chad Versace wrote: Nothing works if HiZ is enabled and the DDX is incapable of HiZ (that is, the DDX version is< 2.16). The problem is that the refactoring that eliminated intel_renderbuffer::stencil_rb broke the recovery path in intel_verify_dri2_has_hiz(). Specifical

[Mesa-dev] According the "intel: Fix segfault in glXSwapBuffers with no bound context" patch.

2012-01-16 Thread Christian Inci
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello @all, wouldn't it be better to return if intel is NULL instead, as there's nothing after the if statement? (At least you wouldn't need to indent the code then.) Kind regards, Christian Inci -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18

Re: [Mesa-dev] [PATCH] mesa: add back glGetnUniformfv() overflow error reporting

2012-01-16 Thread nobled
ping? On Thu, Dec 22, 2011 at 4:34 PM, nob...@dreamwidth.org wrote: > The error was erroneously removed in this commit: > > 719909698c67c287a393d2380278e7b7495ae018 > "mesa: Rewrite the way uniforms are tracked and handled" > > You also aren't even supposed to truncate the output to 'bufSize', > s

[Mesa-dev] [PATCH] scons: Don't set visibility to hidden on Haiku

2012-01-16 Thread Alexander von Gluck
The Haiku swrast driver is out of tree and this causes issues. --- scons/gallium.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scons/gallium.py b/scons/gallium.py index 5a0c6fe..86adc3e 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -350,7 +350,7 @@ def g

[Mesa-dev] [PATCH 4/4] glapi: add GL_ARB_texture_compression_rgtc

2012-01-16 Thread nobled
Noticed this was missing when writing the "glapi: sort ARB extensions by number" commit, which at least shows it was effective. --- .../glapi/gen/ARB_texture_compression_rgtc.xml | 15 +++ src/mapi/glapi/gen/Makefile|1 + src/mapi/glapi/gen/gl_API.xml

[Mesa-dev] [PATCH 3/4] glapi: add ARB_texture_rg

2012-01-16 Thread nobled
Noticed it was missing based on the lack of a descriptive enum name from this bug's error message: https://bugs.freedesktop.org/show_bug.cgi?id=44039 This moves two enums out of GL3x.xml. Though since this and GL_ARB_texture_compression_rgtc are both strict subsets of GL3, both extensions could h

[Mesa-dev] [PATCH 2/4] glapi: sort ARB extensions by number

2012-01-16 Thread nobled
And add comments to fill in for extensions that aren't there. Noticed the comment about "ARB extensions sorted by extension number" didn't extend to the directives when it became clear GL_ARB_texture_rg was missing, going by the error message seen here: https://bugs.freedesktop.org/show_bug.cgi?

[Mesa-dev] [PATCH 1/4] glapi: remove non-existent parameter references

2012-01-16 Thread nobled
glGetTexImage, for example, has no width/height/depth parameters. Also, copy some missing parameter info from the original versions of certain functions over to their ARB_robustness counterparts. --- src/mapi/glapi/gen/ARB_robustness.xml | 26 +- src/mapi/glapi/gen/gl_AP

Re: [Mesa-dev] [PATCH 2/2] r600g: rework IDIV/UDIV and implement MOD/UMOD

2012-01-16 Thread Vadim Girlin
On Tue, 2012-01-17 at 02:46 +0400, Vadim Girlin wrote: > --- > src/gallium/drivers/r600/r600_asm.c|2 + > src/gallium/drivers/r600/r600_shader.c | 1010 > +++- > 2 files changed, 871 insertions(+), 141 deletions(-) Please ignore this patch, there is a bug not

Re: [Mesa-dev] [PATCH] mesa: Support GL_VERTEX_ATTRIB_ARRAY_INTEGER in GL 3.0 contexts.

2012-01-16 Thread Chad Versace
On 01/16/2012 10:38 AM, Kenneth Graunke wrote: > According to Table 6.8 (Page 348) in the OpenGL 3.0 specification, > glGetVertexAttribfv supports GL_VERTEX_ATTRIB_ARRAY_INTEGER. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/main/varray.c |2 +- > 1 files changed, 1 insertions(+), 1 de

Re: [Mesa-dev] renderbuffer-cleanups-v2 branch

2012-01-16 Thread Ian Romanick
On 01/16/2012 01:30 PM, Brian Paul wrote: The renderbuffer-cleanups-v2 branch removes all the old swrast GetRow/PutRow stuff. All swrast rendering is now done through renderbuffer mapping and the format_pack/unpack.c code. Woo hoo! Thanks for tackling this! I've been slowly putting bandaids

[Mesa-dev] [PATCH 2/2] r600g: rework IDIV/UDIV and implement MOD/UMOD

2012-01-16 Thread Vadim Girlin
--- src/gallium/drivers/r600/r600_asm.c|2 + src/gallium/drivers/r600/r600_shader.c | 1010 +++- 2 files changed, 871 insertions(+), 141 deletions(-) diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 23350e2..7c76bd5

[Mesa-dev] [PATCH 1/2] r600g: fix USLT for r600-eg

2012-01-16 Thread Vadim Girlin
--- src/gallium/drivers/r600/r600_shader.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 9d15d02..701bb03 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drive

Re: [Mesa-dev] renderbuffer-cleanups-v2 branch

2012-01-16 Thread Brian Paul
On 01/16/2012 02:30 PM, Brian Paul wrote: The renderbuffer-cleanups-v2 branch removes all the old swrast GetRow/PutRow stuff. All swrast rendering is now done through renderbuffer mapping and the format_pack/unpack.c code. The gl_renderbuffer type is smaller and cleaner now. Plus, a few more ol

Re: [Mesa-dev] [PATCH] mesa: Allow texture with zero width/height to create miptree

2012-01-16 Thread Brian Paul
On 01/16/2012 12:51 PM, Anuj Phogat wrote: TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero image width skips miptree allocation due to a condition in function _mesa_store_teximage3d(). While calling glGetTexImage() it results in assert

[Mesa-dev] [Bug 44844] Misspelled color "lighgrey" in GLwDrawA.c

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44844 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] [PATCH] softpipe: Silence unused variable warning on non-LLVM builds.

2012-01-16 Thread Brian Paul
On 01/16/2012 02:08 PM, Vinson Lee wrote: Fix this GCC warning with non-LLVM builds. sp_screen.c: In function ‘softpipe_get_shader_param’: sp_screen.c:141:28: warning: unused variable ‘sp_screen’ [-Wunused-variable] Signed-off-by: Vinson Lee --- src/gallium/drivers/softpipe/sp_screen.c |2

[Mesa-dev] [Bug 44844] New: Misspelled color "lighgrey" in GLwDrawA.c

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44844 Bug #: 44844 Summary: Misspelled color "lighgrey" in GLwDrawA.c Classification: Unclassified Product: Mesa Version: 7.11 Platform: x86 (IA32) OS/Version: All Status: N

[Mesa-dev] renderbuffer-cleanups-v2 branch

2012-01-16 Thread Brian Paul
The renderbuffer-cleanups-v2 branch removes all the old swrast GetRow/PutRow stuff. All swrast rendering is now done through renderbuffer mapping and the format_pack/unpack.c code. The gl_renderbuffer type is smaller and cleaner now. Plus, a few more old driver hooks are removed. There's

[Mesa-dev] [PATCH] softpipe: Silence unused variable warning on non-LLVM builds.

2012-01-16 Thread Vinson Lee
Fix this GCC warning with non-LLVM builds. sp_screen.c: In function ‘softpipe_get_shader_param’: sp_screen.c:141:28: warning: unused variable ‘sp_screen’ [-Wunused-variable] Signed-off-by: Vinson Lee --- src/gallium/drivers/softpipe/sp_screen.c |2 ++ 1 files changed, 2 insertions(+), 0 dele

[Mesa-dev] [Bug 44039] Mesa 7.12-devel implementation error: unexpected format 0x822e in _mesa_choose_tex_format()

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44039 --- Comment #6 from Roland Scheidegger 2012-01-16 12:57:26 PST --- (In reply to comment #5) > We didn't already do this because the OpenGL 3.0 spec requires that GL_R32F be > 32-bit float. Ken dug into this a bit, and the problem is that GEN4 c

Re: [Mesa-dev] llvmpipe lp_build_context

2012-01-16 Thread Dave Airlie
> > That is, lp_bld_arit.c functions such as lp_build_add() are be confident that > passed the values and types are consistent, and all assertions to test that > should be preserved. > > I hope this makes sense. Thanks Jose, this seems sensible and I'll try and go in that direction, some issues

[Mesa-dev] [Bug 44039] Mesa 7.12-devel implementation error: unexpected format 0x822e in _mesa_choose_tex_format()

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44039 --- Comment #5 from Ian Romanick 2012-01-16 12:00:58 PST --- (In reply to comment #4) > OK, I think I see the problem. I reproduced something similar with a piglit > test. > > I have a gen 4 i965 laptop. If I compile with TEXTURE_FLOAT_ENABLE

[Mesa-dev] [PATCH] mesa: Allow texture with zero width/height to create miptree

2012-01-16 Thread Anuj Phogat
TestMipMaps() function in src/OGLconform/textureNPOT.c calls glTexImage2D() with width = 0. Texture with zero image width skips miptree allocation due to a condition in function _mesa_store_teximage3d(). While calling glGetTexImage() it results in assertion failure in intel_map_texture_image() due

Re: [Mesa-dev] [PATCH] mesa: try RGBA_FLOAT16 before RGBA_FLOAT32 when choosing A, L, LA, I formats

2012-01-16 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > To try to use less tex memory and maybe get better performance. > Spotted by Roland Scheidegger. > --- > src/mesa/main/texformat.c |4 > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/src/mesa/main/texformat.c b/s

[Mesa-dev] [Bug 44039] Mesa 7.12-devel implementation error: unexpected format 0x822e in _mesa_choose_tex_format()

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44039 Ian Romanick changed: What|Removed |Added Blocks||42993 -- Configure bugmail: https://bugs

[Mesa-dev] [PATCH 1/6] tgsi: Add output_mode to struct tgsi_opcode_info v2

2012-01-16 Thread Tom Stellard
v2: - Rename output_type to output_mode - Add shorthand definitions for TGSI_OUTPUT_* --- src/gallium/auxiliary/tgsi/tgsi_info.c | 329 src/gallium/auxiliary/tgsi/tgsi_info.h | 34 2 files changed, 201 insertions(+), 162 deletions(-) diff --git a/src/galli

Re: [Mesa-dev] Drooping multiple driver support in EGL?

2012-01-16 Thread Jose Fonseca
- Original Message - > On 01/13/2012 04:29 PM, Jose Fonseca wrote: > > > > > > - Original Message - > >> On 01/12/2012 09:06 AM, Chia-I Wu wrote: > >>> On Tue, Jan 10, 2012 at 12:55 AM, Jose > >>> Fonseca > >>> wrote: > > > - Original Message - > > On Fr

Re: [Mesa-dev] [PATCH] scons: Add Haiku build support

2012-01-16 Thread Alexander von Gluck
Should I commit this for you? If you approve :) -- Alexander von Gluck On 16.01.2012 13:31, Jose Fonseca wrote: - Original Message - svga is close, however there is a type conflict. Haiku defines uint32, uint8, etc by default... the svga gallium driver defines them as well. I think

Re: [Mesa-dev] [PATCH] scons: Add Haiku build support

2012-01-16 Thread Jose Fonseca
- Original Message - > svga is close, however there is a type conflict. > Haiku defines uint32, uint8, etc by default... the svga gallium > driver > defines them as well. > I think it's as easy as removing the svga *int* typedefs under > haiku... but > haven't had the > bandwidth to test th

Re: [Mesa-dev] [PATCH] llvmpipe: Remove unused variable 'packed' from lp_test_round.

2012-01-16 Thread Jose Fonseca
Looks good to me, Vinson. Thanks Jose - Original Message - > Fix this GCC warning. > lp_test_round.c: In function ‘test_round’: > lp_test_round.c:126:13: warning: variable ‘packed’ set but not used > [-Wunused-but-set-variable] > > Signed-off-by: Vinson Lee > --- > src/gallium/drivers/

Re: [Mesa-dev] [PATCH 5/6] gallium: Move duplicated helper macros to tgsi_exec.h

2012-01-16 Thread Jose Fonseca
Looks good too. Jose - Original Message - > --- > src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 219 > +++ > src/gallium/auxiliary/tgsi/tgsi_exec.h | 13 ++ > src/gallium/auxiliary/tgsi/tgsi_ppc.c | 78 - > 3 files changed, 148 ins

Re: [Mesa-dev] [PATCH 2/6] gallivm: Add function lp_bld_gather_values()

2012-01-16 Thread Jose Fonseca
Looks good. Jose - Original Message - > From: Tom Stellard > > --- > src/gallium/auxiliary/gallivm/lp_bld_gather.c | 17 > + > src/gallium/auxiliary/gallivm/lp_bld_gather.h |4 > 2 files changed, 21 insertions(+), 0 deletions(-) > > diff --git a/src/gallium

Re: [Mesa-dev] [PATCH 1/6] tgsi: Add output_type to struct tgsi_opcode_info

2012-01-16 Thread Jose Fonseca
Tom, Looks good. Just two minor requests: - I think that it might be easier to read if we had shorthand definitions for TGSI_OUTPUT_XX in tgsi_info.c so that these enums take less space and the opcodes stay aligned. For example: #define NONE TGSI_OUTPUT_NONE #define COMP TGSI_OUTPUT_COM

Re: [Mesa-dev] [PATCH] scons: Add Haiku build support

2012-01-16 Thread Alexander von Gluck
svga is close, however there is a type conflict. Haiku defines uint32, uint8, etc by default... the svga gallium driver defines them as well. I think it's as easy as removing the svga *int* typedefs under haiku... but haven't had the bandwidth to test that yet. llvm... well there is no llvm /

Re: [Mesa-dev] [PATCH] scons: Add Haiku build support

2012-01-16 Thread Jose Fonseca
Looks good. What's preventing src/gallium/drivers/llvmpipe and src/gallium/drivers/svga from building on haiku? These pipe drivers should be fairly portable (unlike src/gallium/winsys or src/gallium/targets dirs). Jose - Original Message - > > Enables building stock Mesa under the Ha

[Mesa-dev] [PATCH] scons: Add Haiku build support

2012-01-16 Thread Alexander von Gluck
Enables building stock Mesa under the Haiku operating system. --- common.py |2 +- scons/gallium.py |2 ++ src/SConscript |5 +++-- src/gallium/SConscript | 14 ++ src/glu/sgi/SConscript | 16 +++- 5 files changed, 27 insertions(

[Mesa-dev] [PATCH] mesa: Support GL_VERTEX_ATTRIB_ARRAY_INTEGER in GL 3.0 contexts.

2012-01-16 Thread Kenneth Graunke
According to Table 6.8 (Page 348) in the OpenGL 3.0 specification, glGetVertexAttribfv supports GL_VERTEX_ATTRIB_ARRAY_INTEGER. Signed-off-by: Kenneth Graunke --- src/mesa/main/varray.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/ma

Re: [Mesa-dev] llvmpipe lp_build_context

2012-01-16 Thread Jose Fonseca
Hi Dave, Thanks for looking at this. The gist is there, but I'd prefer that the ambiguity of "ints encoded as floats" stayed contained inside lp_bld_tgsi_* and never bleeds into lp_bld_arith or other generic LLVM emiting helper functions. That is, when lp_bld_arith and other functions are cal

Re: [Mesa-dev] [PATCH] util: Silence GCC unused-but-set-variable warning.

2012-01-16 Thread Jose Fonseca
- Original Message - > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 16.01.2012 08:13, Vinson Lee wrote: > > Fix this GCC 4.6 warning with 64-bit builds. u_debug_stack.c: In > > function ‘debug_backtrace_capture’: u_debug_stack.c:45:17: warning: > > variable ‘frame_pointer’ set

Re: [Mesa-dev] [PATCH] mesa: fix tex format selection for GL_R32F and other R/G float formats

2012-01-16 Thread Jose Fonseca
Looks good Brian. Maybe MESA_FORMAT_RGBA_FLOAT16 should probably be before MESA_FORMAT_RG_FLOAT32 for GL_R16F/GL_RG16F -- same memory footprint, but exact rounding -- but I doubt it matters much either way. Jose - Original Message - > The i965 driver advertises GL_ARB_texture_float and

[Mesa-dev] [PATCH] mesa: try RGBA_FLOAT16 before RGBA_FLOAT32 when choosing A, L, LA, I formats

2012-01-16 Thread Brian Paul
To try to use less tex memory and maybe get better performance. Spotted by Roland Scheidegger. --- src/mesa/main/texformat.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c index d393873..259eb90 100644 --- a/src/mes

[Mesa-dev] [PATCH] mesa: fix tex format selection for GL_R32F and other R/G float formats

2012-01-16 Thread Brian Paul
The i965 driver advertises GL_ARB_texture_float and GL_ARB_texture_rg support but the ctx->TextureFormatSupported[] table entries for MESA_FORMAT_R_FLOAT32 and MESA_FORMAT_RGBA_FLOAT32 are false on gen 4 hardware. So the case for GL_R32F would fail and we'd print an implementation error. This pat

Re: [Mesa-dev] [PATCH] mesa: fix tex format selection for GL_R32F and other R/G float formats

2012-01-16 Thread Brian Paul
On 01/16/2012 09:53 AM, Roland Scheidegger wrote: Am 16.01.2012 17:13, schrieb Brian Paul: The i965 driver advertises GL_ARB_texture_float and GL_ARB_texture_rg support but the ctx->TextureFormatSupported[] table entries for MESA_FORMAT_R_FLOAT32 and MESA_FORMAT_RGBA_FLOAT32 are false on gen 4 h

Re: [Mesa-dev] [PATCH] mesa: fix tex format selection for GL_R32F and other R/G float formats

2012-01-16 Thread Brian Paul
On 01/16/2012 09:40 AM, Jose Fonseca wrote: - Original Message - The i965 driver advertises GL_ARB_texture_float and GL_ARB_texture_rg support but the ctx->TextureFormatSupported[] table entries for MESA_FORMAT_R_FLOAT32 and MESA_FORMAT_RGBA_FLOAT32 are false on gen 4 hardware. So the c

Re: [Mesa-dev] [PATCH] mesa: fix tex format selection for GL_R32F and other R/G float formats

2012-01-16 Thread Roland Scheidegger
Am 16.01.2012 17:13, schrieb Brian Paul: > The i965 driver advertises GL_ARB_texture_float and GL_ARB_texture_rg > support but the ctx->TextureFormatSupported[] table entries for > MESA_FORMAT_R_FLOAT32 and MESA_FORMAT_RGBA_FLOAT32 are false on gen 4 > hardware. So the case for GL_R32F would fail

Re: [Mesa-dev] [PATCH] mesa: fix tex format selection for GL_R32F and other R/G float formats

2012-01-16 Thread Jose Fonseca
- Original Message - > The i965 driver advertises GL_ARB_texture_float and GL_ARB_texture_rg > support but the ctx->TextureFormatSupported[] table entries for > MESA_FORMAT_R_FLOAT32 and MESA_FORMAT_RGBA_FLOAT32 are false on gen 4 > hardware. So the case for GL_R32F would fail and we'd pri

Re: [Mesa-dev] [RFC] r600-r800 2D tiling

2012-01-16 Thread Jerome Glisse
On Mon, Jan 16, 2012 at 12:08:17PM +, Simon Farnsworth wrote: > (resending due to my inability to work my e-mail client - I neither cc'd > Jerome, nor used the correct identity, so the original appears to be held in > moderation). > > On Thursday 12 January 2012, Jerome Glisse wrote: > > Hi,

[Mesa-dev] [PATCH] mesa: fix tex format selection for GL_R32F and other R/G float formats

2012-01-16 Thread Brian Paul
The i965 driver advertises GL_ARB_texture_float and GL_ARB_texture_rg support but the ctx->TextureFormatSupported[] table entries for MESA_FORMAT_R_FLOAT32 and MESA_FORMAT_RGBA_FLOAT32 are false on gen 4 hardware. So the case for GL_R32F would fail and we'd print an implementation error. This pat

[Mesa-dev] [Bug 44039] Mesa 7.12-devel implementation error: unexpected format 0x822e in _mesa_choose_tex_format()

2012-01-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44039 --- Comment #4 from Brian Paul 2012-01-16 08:10:51 PST --- OK, I think I see the problem. I reproduced something similar with a piglit test. I have a gen 4 i965 laptop. If I compile with TEXTURE_FLOAT_ENABLED, glxinfo says GL_ARB_texture_float

Re: [Mesa-dev] [PATCH] util: Silence GCC unused-but-set-variable warning.

2012-01-16 Thread Tolga Dalman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16.01.2012 08:13, Vinson Lee wrote: > Fix this GCC 4.6 warning with 64-bit builds. u_debug_stack.c: In > function ‘debug_backtrace_capture’: u_debug_stack.c:45:17: warning: > variable ‘frame_pointer’ set but not used > [-Wunused-but-set-variable] >

Re: [Mesa-dev] [RFC] r600-r800 2D tiling

2012-01-16 Thread Simon Farnsworth
(resending due to my inability to work my e-mail client - I neither cc'd Jerome, nor used the correct identity, so the original appears to be held in moderation). On Thursday 12 January 2012, Jerome Glisse wrote: > Hi, > > I don't cross post as i am pretty sure all interested people are reading

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

2012-01-16 Thread Jose Fonseca
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 using the clipdistance instead of clip plane. Passes all piglit clipdista

[Mesa-dev] llvmpipe lp_build_context

2012-01-16 Thread Dave Airlie
Hi, So I've been playing a bit more with integers in gallivm, but I'm not 100% sure how the original design though about incorporating them. The lp_build_contexts seems to take a base type of a float and have some sort of int types associated it with it, should I add more to this struct for uints