Re: [Mesa-dev] [PATCH RFC] gallium: interface changes necessary to implement transform feedback

2011-10-07 Thread Christoph Bumiller
On 07.10.2011 04:04, Marek Olšák wrote: On Fri, Oct 7, 2011 at 3:21 AM, Zack Rusin za...@vmware.com wrote: On Thursday, October 06, 2011 04:58:45 PM Marek Olšák wrote: I am cc'ing Zack, because he was the one to design the first interface. Hi Marek. I'm swamped right now and won't have time

[Mesa-dev] [PATCH] mesa: fix software mipmap generation code for packed Z/stencil formats

2011-10-07 Thread Brian Paul
From: Brian Paul bri...@vmware.com Fixes https://bugs.freedesktop.org/show_bug.cgi?id=32458 --- src/mesa/main/formats.c |8 src/mesa/main/mipmap.c | 38 +- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/formats.c

[Mesa-dev] [PATCH 1/5] intel: silence uninitialized var warning

2011-10-07 Thread Brian Paul
From: Brian Paul bri...@vmware.com --- src/mesa/drivers/dri/intel/intel_decode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_decode.c b/src/mesa/drivers/dri/intel/intel_decode.c index ac8d690..b4de42d 100644 ---

[Mesa-dev] [PATCH 2/5] i965: silence unused var warnings in non-debug builds

2011-10-07 Thread Brian Paul
From: Brian Paul bri...@vmware.com --- src/mesa/drivers/dri/i965/brw_fs.cpp |1 + src/mesa/drivers/dri/i965/brw_wm.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 2000180..e073eaa

[Mesa-dev] [PATCH 3/5] i915: silence unused var warnings in non-debug builds

2011-10-07 Thread Brian Paul
From: Brian Paul bri...@vmware.com --- src/mesa/drivers/dri/i915/i830_vtbl.c |2 ++ src/mesa/drivers/dri/i915/i915_vtbl.c |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c index

[Mesa-dev] [PATCH 4/5] i965: make size_swizzles[] static const

2011-10-07 Thread Brian Paul
From: Brian Paul bri...@vmware.com --- src/mesa/drivers/dri/i965/brw_vec4.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 5f44268..1caf1a6 100644 ---

[Mesa-dev] [PATCH 5/5] i965: make swizzle_for_size() return unsigned

2011-10-07 Thread Brian Paul
From: Brian Paul bri...@vmware.com Silences a warning about comparing to an unsigned variable. It looks like the result of swizzle_for_size() is always assigned to unsigned vars. --- src/mesa/drivers/dri/i965/brw_vec4.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Mesa-dev] Mesa 7.11 and osmesa

2011-10-07 Thread Paul Gotzel
Brain, I'm using osmesa with VTK and in this particular test I'm rendering just lines. The ratios stay the same for just triangles. Just for these simple primitives 7.11 seems to be about 4 times slower that 7.6.1. Can you give me some pointers on where to get started with a new gallium based

[Mesa-dev] [PATCH] st/mesa: kill instruction if writemask=0 in eliminate_dead_code_advanced()

2011-10-07 Thread Brian Paul
From: Brian Paul bri...@vmware.com This fixes a bug where we'd wind up emitting an invalid instruction like MOVE R[0]., R[1]; - note the empty/zero writemask. If we don't write to any dest register channels, cull the instruction. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp |8 +++-

Re: [Mesa-dev] [PATCH] mesa: fix software mipmap generation code for packed Z/stencil formats

2011-10-07 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/07/2011 07:21 AM, Brian Paul wrote: From: Brian Paul bri...@vmware.com Fixes https://bugs.freedesktop.org/show_bug.cgi?id=32458 --- src/mesa/main/formats.c |8 src/mesa/main/mipmap.c | 38

Re: [Mesa-dev] Mesa 7.11 and osmesa

2011-10-07 Thread Kevin H. Hobbs
On 10/07/2011 10:53 AM, Paul Gotzel wrote: Brain, I'm using osmesa with VTK and in this particular test I'm rendering just lines. The ratios stay the same for just triangles. Just for these simple primitives 7.11 seems to be about 4 times slower that 7.6.1. These builds on the VTK

Re: [Mesa-dev] [PATCH 3/5] i915: silence unused var warnings in non-debug builds

2011-10-07 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/07/2011 07:30 AM, Brian Paul wrote: From: Brian Paul bri...@vmware.com --- src/mesa/drivers/dri/i915/i830_vtbl.c |2 ++ src/mesa/drivers/dri/i915/i915_vtbl.c |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git

[Mesa-dev] [PATCH] i915: remove unused fb_has_hiz vars only used in assertions

2011-10-07 Thread Brian Paul
From: Brian Paul bri...@vmware.com This previously generated unused variable warnings in non-debug builds. --- src/mesa/drivers/dri/i915/i830_vtbl.c |3 +-- src/mesa/drivers/dri/i915/i915_vtbl.c |3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [Mesa-dev] Mesa 7.11 and osmesa

2011-10-07 Thread Kevin H. Hobbs
On 10/07/2011 12:10 PM, Kevin H. Hobbs wrote: On 10/07/2011 10:53 AM, Paul Gotzel wrote: Brain, I'm using osmesa with VTK and in this particular test I'm rendering just lines. The ratios stay the same for just triangles. Just for these simple primitives 7.11 seems to be about 4 times

[Mesa-dev] [Bug 41441] Crashes introduced in f7f678331d5e95d2266fe6b3ea1cfa47d6421065

2011-10-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41441 Brian Paul brian.e.p...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH] i915: remove unused fb_has_hiz vars only used in assertions

2011-10-07 Thread Brian Paul
No problem, Chad. I'll let you take care of it completely. I usually run debug builds but some (useful) warnings only pop up in optimized builds so I was just trying to clean those up. Maybe you can make an optimized build when you're done to check for warnings. Thanks. -Brian On

[Mesa-dev] mesa/gallium: integer support

2011-10-07 Thread Dave Airlie
These are 5 more patches in the integer support set, the first just adds a pack int routine, the second fixes up the texture format picking. The 3rd adds all the gallium formats I've needed so far, we may require R8G8B8X8 formats as well, I need to write more tests. The last two patches add state

[Mesa-dev] [PATCH 2/5] mesa/texformat: add integer fallbacks to other formats

2011-10-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fixes up the integer format choosing to pick the closest mesa format then the most likely fallback. (the formatting in this file needs cleaning in another patch). Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/texformat.c | 204

[Mesa-dev] [PATCH 3/5] gallium: add initial pure integer support (v2)

2011-10-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This add support for unsigned/signed integer types via adding a 'pure' bit in the format description table. It adds 4 new u_format get/put hooks, for get/put uint and get/put sint so that accessors can get native access to the integer bits. This is used to

[Mesa-dev] [PATCH 5/5] st/mesa: add readpixel integer support

2011-10-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds support for readpixels integer paths, it deals with the signed/unsigned crossovers. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_cb_readpixels.c | 40 +++- 1 files changed, 38 insertions(+),

[Mesa-dev] [PATCH 4/5] st/mesa: add support for int type conversion

2011-10-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_format.c | 453 ++-- 1 files changed, 386 insertions(+), 67 deletions(-) diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 6eb8a50..6e8ab94 100644 ---

[Mesa-dev] [Bug 41571] New: libglapi.so.0: undefined symbol: is_selinux_enabled

2011-10-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41571 Summary: libglapi.so.0: undefined symbol: is_selinux_enabled Product: Mesa Version: git Platform: All OS/Version: All Status: NEW Severity: critical Priority:

Re: [Mesa-dev] [PATCH 3/5] gallium: add initial pure integer support (v2)

2011-10-07 Thread Jose Fonseca
Looks good overall. Comments inline. - Original Message - From: Dave Airlie airl...@redhat.com This add support for unsigned/signed integer types via adding a 'pure' bit in the format description table. It adds 4 new u_format get/put hooks, for get/put uint and get/put sint so

Re: [Mesa-dev] [PATCH 3/5] gallium: add initial pure integer support (v2)

2011-10-07 Thread Marek Olšák
On Fri, Oct 7, 2011 at 10:48 PM, Jose Fonseca jfons...@vmware.com wrote: Looks good overall. Comments inline. - Original Message - From: Dave Airlie airl...@redhat.com This add support for unsigned/signed integer types via adding a 'pure' bit in the format description table. It

[Mesa-dev] [PATCH] pb_bufmgr_cache: flush cache when create_buffer fails and try again

2011-10-07 Thread Marek Olšák
NOTE: This is a candidate for the stable branches. --- src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c index

[Mesa-dev] [PATCH 1/4] mesa: Close Doxygen group

2011-10-07 Thread Chad Versace
In dd_function_table, close the Doxygen group beginning with \name Support for multiple TL engines --- src/mesa/main/dd.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 7875564..4e017ae 100644 --- a/src/mesa/main/dd.h +++

[Mesa-dev] [PATCH 2/4] mesa: Declare _mesa_RenderMode as non-static

2011-10-07 Thread Chad Versace
This is required in order for meta-ops to save/restore the GL_RENDER_MODE state, which is implemented in the next commit. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/main/feedback.c |2 +- src/mesa/main/feedback.h |3 +++ 2 files changed, 4 insertions(+), 1 deletions(-)

[Mesa-dev] [PATCH 3/4] meta: Add flag MESA_META_SELECT_FEEDBACK

2011-10-07 Thread Chad Versace
If this flag is set, then _mesa_meta_begin will save/restore the state of GL_SELECT and GL_FEEDBACK render modes. Intel's futue resolve meta-ops will require this, since buffer resolves may occur when the GL_RENDER_MODE is GL_SELECT. Signed-off-by: Chad Versace c...@chad-versace.us ---

[Mesa-dev] [PATCH 4/4] mesa: Bump MAX_META_OPS_DEPTH from 2 to 8

2011-10-07 Thread Chad Versace
Sine i965 will soon use meta-ops to perform HiZ resolves, the meta-op stack will exceed depth 2. I bumped it to 8 because... 8 is bigger than 2, but not too big. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/common/meta.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [Mesa-dev] [PATCH 3/4] meta: Add flag MESA_META_SELECT_FEEDBACK

2011-10-07 Thread Brian Paul
On 10/07/2011 04:55 PM, Chad Versace wrote: If this flag is set, then _mesa_meta_begin will save/restore the state of GL_SELECT and GL_FEEDBACK render modes. Intel's futue resolve meta-ops will require this, since buffer resolves may occur when the GL_RENDER_MODE is GL_SELECT. Signed-off-by:

[Mesa-dev] [PATCH 2/2] linker: Fix a slightly incorrect comment

2011-10-07 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/linker.cpp |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 9463f53..42075cb 100644 --- a/src/glsl/linker.cpp

[Mesa-dev] [PATCH 1/2] hash_table: Make string_to_uint_map make a copy of the name

2011-10-07 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com The hash table needs a copy of the key that it can keep for comparisons during searches. Signed-off-by: Ian Romanick ian.d.roman...@intel.com Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41499 Cc: Stéphane Marchesin

Re: [Mesa-dev] [PATCH] pb_bufmgr_cache: flush cache when create_buffer fails and try again

2011-10-07 Thread Jose Fonseca
- Original Message - NOTE: This is a candidate for the stable branches. --- src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c

Re: [Mesa-dev] [PATCH 3/4] meta: Add flag MESA_META_SELECT_FEEDBACK

2011-10-07 Thread Chad Versace
On 10/07/2011 04:23 PM, Brian Paul wrote: On 10/07/2011 04:55 PM, Chad Versace wrote: If this flag is set, then _mesa_meta_begin will save/restore the state of GL_SELECT and GL_FEEDBACK render modes. Intel's futue resolve meta-ops will require this, since buffer resolves may occur when the

Re: [Mesa-dev] [PATCH 3/4] meta: Add flag MESA_META_SELECT_FEEDBACK

2011-10-07 Thread Chad Versace
On 10/07/2011 04:45 PM, Chad Versace wrote: On 10/07/2011 04:23 PM, Brian Paul wrote: On 10/07/2011 04:55 PM, Chad Versace wrote: If this flag is set, then _mesa_meta_begin will save/restore the state of GL_SELECT and GL_FEEDBACK render modes. Intel's futue resolve meta-ops will require

[Mesa-dev] [Bug 41023] [PATCH] d3d1x: error when building - src/dxgi_native.cpp:1165:40: error: uninitialized const ‘black’

2011-10-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41023 Alexandre Demers alexandre.f.dem...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [PATCH 0/6] More shader API internal house cleaning

2011-10-07 Thread Ian Romanick
This should be the last batch of internal clean-ups before the real work. I should be able to send some cleaned up uniform rework patches (as discuessed at XDC last month) next week. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH 3/6] mesa: Use glsl_type::gl_type in glGetActiveUniform

2011-10-07 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com This has the same value has gl_program_parameter::DataType field. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/mesa/main/uniform_query.cpp |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 2/6] mesa: Move _mesa_GetActiveUniformARB to uniform_query.cpp

2011-10-07 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Fold _mesa_get_active_uniform into its only caller in the process. More changes are coming soon. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/mesa/main/uniform_query.cpp | 78 +++

[Mesa-dev] [PATCH 6/6] glsl_to_tgsi: Use _mesa_generate_parameters_list_for_uniforms

2011-10-07 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: Bryan Cain bryanca...@gmail.com --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 119 +--- 1 files changed, 2 insertions(+), 117 deletions(-) diff --git

[Mesa-dev] [PATCH 5/6] ir_to_mesa: Generate gl_program_parameter list by walking the GLSL IR.

2011-10-07 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Generate the program parameters list by walking the IR instead of by walking the list of linked uniforms. This simplifies the code quite a bit, and is probably a bit more correct. The list of linked uniforms should really only be used by the GL API to

Re: [Mesa-dev] [PATCH 6/6] glsl_to_tgsi: Use _mesa_generate_parameters_list_for_uniforms

2011-10-07 Thread Bryan Cain
On 10/07/2011 07:06 PM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: Bryan Cain bryanca...@gmail.com --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 119 +--- 1 files changed, 2

Re: [Mesa-dev] [PATCH] pb_bufmgr_cache: flush cache when create_buffer fails and try again

2011-10-07 Thread Marek Olšák
On Sat, Oct 8, 2011 at 1:44 AM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - NOTE: This is a candidate for the stable branches. ---  src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c |    7 +++  1 files changed, 7 insertions(+), 0 deletions(-) diff --git

[Mesa-dev] [PATCH] i965: Replace incorrect use of GLboolean with enum brw_compression.

2011-10-07 Thread Kenneth Graunke
brw_set_compression_control took a GLboolean as an argument, then promptly used a switch statement to compare it with various enumeration values. Clearly it's not actually a boolean. Introduce a new enumeration type, enum brw_compression, and use that. Found by converting GLboolean to bool;