[Mesa-dev] Regression: Cogs continually recompiles the same shader

2011-11-08 Thread Kenneth Graunke
Ian, I just tried running Cogs (from the Humble Indie Bundle 3) and discovered a terrible regression: it continually keeps recompiling fragment shader 19 over and over again. It looks like it was caused by commit 71990969 ("mesa: Rewrite the way uniforms are tracked and handled"). Each tim

[Mesa-dev] [PATCH] i965: Set sampler message return format for Broadwater/Crestline.

2011-11-08 Thread Kenneth Graunke
G45+ determine the data type to return based on the Surface Format, but the original Gen4 hardware needs a bit more hand-holding. For convenience, set the return format based on the destination register type, as we already set that correctly. Cc: Eric Anholt Signed-off-by: Kenneth Graunke ---

Re: [Mesa-dev] [PATCH 2/2] i965: Add support for 16-bit unorm L, A, and I textures.

2011-11-08 Thread Kenneth Graunke
On 11/08/2011 11:27 AM, Eric Anholt wrote: > While not required by any particular spec version, mplayer was asking > for L16 and hoping for actual L16 without checking. The 8 bits > allocated led to 10-bit planar video data stored in the lower 10 bits > giving only 2 bits of precision in video. W

Re: [Mesa-dev] [PATCH 4/4] mesa: Implement glGetFragDataLocation

2011-11-08 Thread Kenneth Graunke
On 11/08/2011 08:10 PM, Kenneth Graunke wrote: > On 11/04/2011 04:41 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> Fixes piglit's getfragdatalocation test. >> >> Signed-off-by: Ian Romanick >> --- >> src/mesa/main/shader_query.cpp | 56 >> >> src

Re: [Mesa-dev] [PATCH 4/4] mesa: Implement glGetFragDataLocation

2011-11-08 Thread Kenneth Graunke
On 11/04/2011 04:41 PM, Ian Romanick wrote: > From: Ian Romanick > > Fixes piglit's getfragdatalocation test. > > Signed-off-by: Ian Romanick > --- > src/mesa/main/shader_query.cpp | 56 > > src/mesa/main/shaderapi.c | 20 -- > 2 f

Re: [Mesa-dev] [PATCH 0/4] Move resource checking to the linker

2011-11-08 Thread Kenneth Graunke
On 11/08/2011 02:26 PM, Ian Romanick wrote: > This is the next step in the uniform-rework saga. Right now the i965 > depends on ir_to_mesa doing some uniform related work for it. One of > those pieces of work, which is duplicated in st_glsl_to_tgsi, is > validating some resource usage against imp

Re: [Mesa-dev] GL_EXT_texture_integer on i965

2011-11-08 Thread Kenneth Graunke
On 11/04/2011 03:01 PM, Eric Anholt wrote: > Here's a patch series to get GL_EXT_texture_integer partially working > on i965, hidden under the GL 3.0 override. There's a bunch of support > I think isn't finished yet, mostly because testing is in a bad state. > A few things I noticed while looking

Re: [Mesa-dev] [PATCH 08/10] meta: Add support for glClear() to integer color buffers.

2011-11-08 Thread Kenneth Graunke
On 11/04/2011 03:01 PM, Eric Anholt wrote: > This requires using a new fragment shader to get the integer color > output, and a new vertex shader because #version has to match between > the two. Hm. The extra VS is rather unfortunate (it's exactly the same other than the #version), but I suppose

Re: [Mesa-dev] [PATCH 07/10] i965: Claim to support rendering to integer FBOs.

2011-11-08 Thread Kenneth Graunke
On 11/04/2011 03:01 PM, Eric Anholt wrote: > We're missing support for the software paths still, but basic > rendering is working. Yeah, we'll need to finish killing the software paths. Glad to see GPU rendering working! Comments below. > --- > src/mesa/drivers/dri/intel/intel_span.c |

[Mesa-dev] [PATCH 06.03 v2] i965/fs: Add support for user-defined out variables.

2011-11-08 Thread Kenneth Graunke
From: Eric Anholt Before, I was tracking the ir_variable * found for gl_FragColor or gl_FragData[]. Instead, when visiting those variables, set up an array of per-render-target fs_regs to copy the output data from. This cleans up the color emit path, while making handling of multiple user-defin

[Mesa-dev] [PATCH 06.3] i965/fs: Add support for user-defined out variables.

2011-11-08 Thread Kenneth Graunke
From: Eric Anholt Before, I was tracking the ir_variable * found for gl_FragColor or gl_FragData[]. Instead, when visiting those variables, set up an array of per-render-target fs_regs to copy the output data from. This cleans up the color emit path, while making handling of multiple user-defin

[Mesa-dev] [PATCH 06.2] i965/fs: Preserve the source register type when doing color writes.

2011-11-08 Thread Kenneth Graunke
From: Eric Anholt When rendering to integer color buffers, we need to be careful to use MRFs of the correct type when emitting color writes. Signed-off-by: Eric Anholt Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 11 +++ 1 files changed, 7 insert

[Mesa-dev] [PATCH 06.1] i965: Make brw_type_for_base_type return the element type for arrays.

2011-11-08 Thread Kenneth Graunke
From: Eric Anholt Previously, brw_type_for_base_type returned UD for array variables, similar to structures. For structures, each field may have a different type, so every field access must explicitly override the register's type with that field's type. We chose to return UD in this case since

Re: [Mesa-dev] [PATCH 06/10] i965/fs: Add support for user-defined out variables.

2011-11-08 Thread Kenneth Graunke
On 11/04/2011 03:01 PM, Eric Anholt wrote: > Before, I was tracking the ir_variable * found for gl_FragColor or > gl_FragData[]. Instead, when visiting those variables, set up an > array of per-render-target fs_regs to copy the output data from. This > cleans up the color emit path, while making

Re: [Mesa-dev] Mixing C & C++

2011-11-08 Thread Kenneth Graunke
On 11/08/2011 12:30 PM, Jose Fonseca wrote: [snip] > Second, it would really help to clearly distinguish headers that are > meant to be used exclusive by C++ with a different suffix (e.g., > .hpp). And leave .h for headers that are meant for joint C/C++ > consuption. > > Take e.g., ../glsl/program

Re: [Mesa-dev] Mixing C & C++

2011-11-08 Thread Jose Fonseca
- Original Message - > On 11/08/2011 12:30 PM, Jose Fonseca wrote: > > At the moment MSVC build's failing with the error > > > > mesa.lib(uniform_query.obj) : error LNK2001: unresolved external > > symbol "int MESA_VERBOSE" (?MESA_VERBOSE@@3HA) > > build\windows-x86-debug\gallium\targets\li

Re: [Mesa-dev] [PATCH 06/10] i965/fs: Add support for user-defined out variables.

2011-11-08 Thread Ian Romanick
On 11/04/2011 03:01 PM, Eric Anholt wrote: Before, I was tracking the ir_variable * found for gl_FragColor or gl_FragData[]. Instead, when visiting those variables, set up an array of per-render-target fs_regs to copy the output data from. This cleans up the color emit path, while making handli

Re: [Mesa-dev] Mixing C & C++

2011-11-08 Thread Ian Romanick
On 11/08/2011 12:30 PM, Jose Fonseca wrote: At the moment MSVC build's failing with the error mesa.lib(uniform_query.obj) : error LNK2001: unresolved external symbol "int MESA_VERBOSE" (?MESA_VERBOSE@@3HA) build\windows-x86-debug\gallium\targets\libgl-gdi\opengl32.dll : fatal error LNK1120: 1 un

[Mesa-dev] [PATCH 13/13] i965: Put a proper sampler count in 3DSTATE_VS.

2011-11-08 Thread Kenneth Graunke
See similar code for 3DSTATE_WM. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen6_vs_state.c |5 +++-- src/mesa/drivers/dri/i965/gen7_vs_state.c |3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen6_vs_state.c b/src/mesa/d

[Mesa-dev] [PATCH 12/13] i965: Upload SAMPLER_STATE pointers for the VS on Ivybridge.

2011-11-08 Thread Kenneth Graunke
See similar code in gen7_wm_state.c. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen7_vs_state.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_vs_state.c b/src/mesa/drivers/dri/i965/gen7_vs_state.c index e3234b5..

[Mesa-dev] [PATCH 11/13] i965: Move and rename "wm sampler" fields to just "sampler".

2011-11-08 Thread Kenneth Graunke
brw_wm_samplers actually enables any active samplers regardless of what pipeline stage is using them, so it doesn't make much sense for it to be WM-specific. So, rename it to "brw_samplers." To properly generalize it, move sampler_count and sampler_offset from brw_context::wm to a new brw_context

[Mesa-dev] [PATCH 10/13] i965: Clean up code for VS pull constant surface creation.

2011-11-08 Thread Kenneth Graunke
Like for the WM pull constants, we can merge the former prepare/emit stages into one tracked state atom. Furthermore, the code that used to handle the binding table was removed in the last commit, leaving some rather silly looking short functions that can easily be folded in. Signed-off-by: Kenne

[Mesa-dev] [PATCH 09/13] i965: Use a single binding table for all pipeline stages.

2011-11-08 Thread Kenneth Graunke
Although the hardware supports separate binding tables for each pipeline stage, we don't see much advantage over a single shared table. Consider the contents of the binding table: - Textures (16) - Draw buffers (8) - Pull constant buffers (1 for VS, 1 for WM) OpenGL's texture bindings are global:

[Mesa-dev] [PATCH 08/13] i965: Split brw_wm_surfaces state into renderbuffer and texture atoms.

2011-11-08 Thread Kenneth Graunke
First, the texturing setup code is relevant for all pipeline stages, while renderbuffer surfaces are only used by the WM. Secondly, renderbuffer and texture setup depends on a different set of dirty bits. There's no reason to walk the array of textures when changing draw buffers, or vice-versa.

[Mesa-dev] [PATCH 07/13] i965: Combine the two WM pull constant tracked state atoms.

2011-11-08 Thread Kenneth Graunke
These were only split for historical reasons: brw_wm_constants used to be the "prepare" step, while brw_wm_constant_surface was "emit". Now that both happen at emit time, it makes sense to combine them. Call the newly combined state atom "brw_wm_pull_constants" to indicate help distinguish it fro

[Mesa-dev] [PATCH 06/13] i965: Rename gen6_*_constants tracked state atoms to "push_constants".

2011-11-08 Thread Kenneth Graunke
When reading the "brw_wm_constants" and "gen6_wm_constants" atoms side-by-side, I initially failed to notice the crucial difference: the Gen6 atoms are for Push Constants, while brw_wm_constants handles Pull Constants. (Gen4/5 Push Constants are handled by "brw_curbe.") Renaming these should clar

[Mesa-dev] [PATCH 05/13] i965: Remove nr_surfaces computation from brw_update_wm_surfaces.

2011-11-08 Thread Kenneth Graunke
This code is fairly fragile, as it depends on the ordering of the entries in the binding table, which will change soon. Also, stop listening on the BRW_NEW_WM_CONSTBUF dirty bit as it's no longer required. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1

[Mesa-dev] [PATCH 04/13] i965: Use 0 for the number of binding table entries in 3DSTATE_(VS|WM).

2011-11-08 Thread Kenneth Graunke
These fields control how many entries the hardware prefetches into the state cache, so they only impact performance, not correctness. However, it's not clear how to use this in a way that's beneficial. According to the documentation, kernels "using a large number" of entries may wish to program t

[Mesa-dev] [PATCH 03/13] i965: Remove outdated comment about CACHE_NEW_SURF_BIND dirty bit.

2011-11-08 Thread Kenneth Graunke
The comment states that brw_update_vs_constant_surface produces a CACHE_NEW_SURF_BIND dirty bit, but it doesn't. In fact, that bit no longer even exists. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_vs_surface_state.c |3 +-- 1 files changed, 1 insertions(+), 2 deletion

[Mesa-dev] [PATCH 02/13] i965: Remove BRW_NEW_NR_VS_SURFACES dirty bit from brw_vs_surfaces.

2011-11-08 Thread Kenneth Graunke
brw_vs_surfaces _produces_ the BRW_NEW_NR_VS_SURFACES dirty bit, so it makes no sense for it to subscribe to it. Fixes an assertion failure in many piglit tests when INTEL_DEBUG is set: brw_state_upload.c:484: void brw_upload_state(struct brw_context *): Assertion `!check_state(&examined, &gen

[Mesa-dev] [PATCH 01/13] i965: Add missing CACHE_NEW_WM_PROG dirty bit to WM pull constants.

2011-11-08 Thread Kenneth Graunke
Comparing brw_upload_vs_pull_constants and brw_upload_wm_pull_constants, it became evident that something was amiss: the VS code had both CACHE_NEW_VS_PROG and BRW_NEW_VERTEX_PROGRAM, while the WM code was missing the CACHE_NEW_WM_PROG flag. Not observed to fix anything, but likely necessary. Sig

[Mesa-dev] i965 Binding Table rework and VS texturing state setup.

2011-11-08 Thread Kenneth Graunke
Patches 1 and 2 are simple bug fixes. Patches 3-10 significantly rework our binding table setup. They disable prefetching of SURFACE_STATE entries, use a single binding table for all pipeline stages, and most importantly, pave the way for getting textures into the VS binding table. This may impa

[Mesa-dev] [PATCH 4/4] glsl: Remove resource count checks from ir_to_mesa and st_glsl_to_tgsi

2011-11-08 Thread Ian Romanick
From: Ian Romanick These checks are now performed by the linker. Signed-off-by: Ian Romanick --- src/mesa/program/ir_to_mesa.cpp| 55 src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 51 -- 2 files changed, 0 insertions(+), 106 d

[Mesa-dev] [PATCH 3/4] linker: Validate resource usage in the linker

2011-11-08 Thread Ian Romanick
From: Ian Romanick This is also done in ir_to_mesa and st_glsl_to_tgsi, but that code will be removed soon. Signed-off-by: Ian Romanick --- src/glsl/linker.cpp | 44 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/src/glsl/linker.c

[Mesa-dev] [PATCH 2/4] linker: Count the number of uniform components used by a shader during linking

2011-11-08 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/glsl/link_uniforms.cpp | 19 +-- src/mesa/main/mtypes.h |7 +++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 11447f3..ca5da30 100

[Mesa-dev] [PATCH 1/4] linker: Count the number of samplers used by a shader during linking

2011-11-08 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick --- src/glsl/link_uniforms.cpp | 29 - src/mesa/main/mtypes.h |3 +++ 2 files changed, 31 insertions(+), 1 deletions(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index b9d5361..11447

[Mesa-dev] [PATCH 0/4] Move resource checking to the linker

2011-11-08 Thread Ian Romanick
This is the next step in the uniform-rework saga. Right now the i965 depends on ir_to_mesa doing some uniform related work for it. One of those pieces of work, which is duplicated in st_glsl_to_tgsi, is validating some resource usage against implementation limits. This patch series pulls that co

Re: [Mesa-dev] Mixing C & C++

2011-11-08 Thread Paul Berry
On 8 November 2011 12:30, Jose Fonseca wrote: > At the moment MSVC build's failing with the error > > mesa.lib(uniform_query.obj) : error LNK2001: unresolved external symbol > "int MESA_VERBOSE" (?MESA_VERBOSE@@3HA) > build\windows-x86-debug\gallium\targets\libgl-gdi\opengl32.dll : fatal > erro

Re: [Mesa-dev] [PATCH 2/2] i965: Use new vtable entries for surface state updating functions.

2011-11-08 Thread Eric Anholt
On Tue, 8 Nov 2011 10:39:45 -0800, Kenneth Graunke wrote: > Now that we have vtable entries in place, we should use them. This > allows us to drop the cut and pasted Gen7 brw_tracked_state atoms as > they now do exactly the same thing as their brw_wm_surface_state > counterparts. > > Signed-of

Re: [Mesa-dev] Mixing C & C++

2011-11-08 Thread Chad Versace
On 11/08/2011 12:30 PM, Jose Fonseca wrote: > Second, it would really help to clearly distinguish headers that are meant to > be used exclusive by C++ with a different suffix (e.g., .hpp). And leave .h > for headers that are meant for joint C/C++ consuption. > > Take e.g., ../glsl/program.h, are

Re: [Mesa-dev] [PATCH 05/10] i965: Enable ChooseTexFormat for supported GL_EXT_texture_integer formats.

2011-11-08 Thread Kenneth Graunke
On 11/04/2011 03:01 PM, Eric Anholt wrote: We don't get to use the 3-component formats, but faking of RGB with RGBA seems to be working. --- src/mesa/drivers/dri/intel/intel_context.c | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/src/mesa/

[Mesa-dev] Mixing C & C++

2011-11-08 Thread Jose Fonseca
At the moment MSVC build's failing with the error mesa.lib(uniform_query.obj) : error LNK2001: unresolved external symbol "int MESA_VERBOSE" (?MESA_VERBOSE@@3HA) build\windows-x86-debug\gallium\targets\libgl-gdi\opengl32.dll : fatal error LNK1120: 1 unresolved externals and trying to fix se

Re: [Mesa-dev] [PATCH 01/10] i965: Re-disable EXT_texture_float pre-gen5.

2011-11-08 Thread Kenneth Graunke
On 11/04/2011 03:01 PM, Eric Anholt wrote: Texture filtering is not supported on floating-point textures until gen5, which showed up as failures in texwrap in particular. --- src/mesa/drivers/dri/intel/intel_extensions.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) d

[Mesa-dev] [PATCH 2/2] i965: Add support for 16-bit unorm L, A, and I textures.

2011-11-08 Thread Eric Anholt
While not required by any particular spec version, mplayer was asking for L16 and hoping for actual L16 without checking. The 8 bits allocated led to 10-bit planar video data stored in the lower 10 bits giving only 2 bits of precision in video. While it was an amusing effect, give them what they

[Mesa-dev] [PATCH 1/2] intel: Don't _mesa_problem when asked for an RB of a texturing-only type.

2011-11-08 Thread Eric Anholt
We want to be able to support some formats for texturing that we can't render to, which means that some choices for RenderbufferStorage end up being incomplete (for example, L8 currently). For these, where we don't render to them, we don't want to have to make up an rb->DataType that's only used f

Re: [Mesa-dev] [PATCH] mesa: fix signed/unsigned integer comparison warnings

2011-11-08 Thread Ian Romanick
On 11/08/2011 07:23 AM, Brian Paul wrote: Some of these were existing warnings (e.g., cols and rows in _mesa_uniform_matrix) that I had meant to fix in a follow-on patch. In all the chaos of getting this code read to commit, I forgot. Thanks for following up. Reviewed-by: Ian Romanick -

Re: [Mesa-dev] [PATCH 18/20] mesa: Rewrite the way uniforms are tracked and handled

2011-11-08 Thread Vadim Girlin
Hi, Not sure if it's directly related to this patch, but I got memory corruption with 32-bit Lightsmark, bisected to corresponding commit. I'm attaching related part of the valgrind log. Vadim ==2800== Invalid write of size 4 ==2800==at 0x4D7C510: memcpy (mc_replace_strmem.c:643) ==2800==

[Mesa-dev] [PATCH] glsl: Remove texture built-ins with 'bias' from 1.30 VS profile.

2011-11-08 Thread Kenneth Graunke
>From the GLSL 1.30 spec, section 8.7 "Texture Lookup Functions": "In all functions below, the bias parameter is optional for fragment shaders. The bias parameter is not accepted in a vertex shader." This was a cut and paste mistake. Signed-off-by: Kenneth Graunke --- src/glsl/builtins/profil

[Mesa-dev] [PATCH 2/2] i965: Use new vtable entries for surface state updating functions.

2011-11-08 Thread Kenneth Graunke
Now that we have vtable entries in place, we should use them. This allows us to drop the cut and pasted Gen7 brw_tracked_state atoms as they now do exactly the same thing as their brw_wm_surface_state counterparts. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state_upload.c

[Mesa-dev] [PATCH 1/2] i965: Add new vtable entries for surface state updating functions.

2011-11-08 Thread Kenneth Graunke
Gen7+ SURFACE_STATE is different from Gen4-6, so we need separate per-generation functions for creating and updating it. However, the usage is the same, and callers just want to utilize the appropriate functions with minimal pain. So, put them in the vtable. Since these take a brw_context pointe

Re: [Mesa-dev] [PATCH] glsl: Clamp vector indices when lowering to swizzles

2011-11-08 Thread Kenneth Graunke
On 11/07/2011 11:12 AM, Ian Romanick wrote: From: Ian Romanick This prevents other code from seeing a swizzle of the 16th component of a vector, for example. NOTE: This is a candidate for the 7.11 branch. Signed-off-by: Ian Romanick Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42517

Re: [Mesa-dev] [PATCH] glsl: Clamp vector indices when lowering to swizzles

2011-11-08 Thread Paul Berry
On 7 November 2011 11:12, Ian Romanick wrote: > From: Ian Romanick > > This prevents other code from seeing a swizzle of the 16th component > of a vector, for example. > > NOTE: This is a candidate for the 7.11 branch. > > Signed-off-by: Ian Romanick > Bugzilla: https://bugs.freedesktop.org/sho

Re: [Mesa-dev] [PATCH] r200: remove dangling radeon.h symlink.

2011-11-08 Thread Alex Deucher
On Tue, Nov 8, 2011 at 10:59 AM, Paul Berry wrote: > Commit 1401b96b (radeon: cleanup radeon shared code after r300 and > r600 classic drivers removal) removed the file > src/mesa/drivers/dri/radeon/server/radeon.h, but it left behind the > symlink which was used to share that file into the > src/

[Mesa-dev] [PATCH] r200: remove dangling radeon.h symlink.

2011-11-08 Thread Paul Berry
Commit 1401b96b (radeon: cleanup radeon shared code after r300 and r600 classic drivers removal) removed the file src/mesa/drivers/dri/radeon/server/radeon.h, but it left behind the symlink which was used to share that file into the src/mesa/drivers/dri/r200/server directory. This patch removes th

Re: [Mesa-dev] RFC: Remove tgsi-sse2.

2011-11-08 Thread Keith Whitwell
On Tue, 2011-11-08 at 07:47 -0800, Jose Fonseca wrote: > tgsi_exec is simple; llvm is fast; and tgsi_sse2 ends up being neither. So > really serves no purpose and is currently broken. > Sounds good to me! Keith ___ mesa-dev mailing list mesa-dev@list

[Mesa-dev] RFC: Remove tgsi-sse2.

2011-11-08 Thread Jose Fonseca
tgsi_exec is simple; llvm is fast; and tgsi_sse2 ends up being neither. So really serves no purpose and is currently broken. Patch is big, so please see it in: http://cgit.freedesktop.org/mesa/mesa/commit/?h=remove-tgsi-sse2&id=aa7a6ec9d2bba743166c93ab15ba2e0872aff0d2 ___

Re: [Mesa-dev] [PATCH] softpipe: don't clamp or do logical operations on floating-point buffers.

2011-11-08 Thread Brian Paul
On 11/07/2011 12:43 PM, Morgan Armand wrote: Here is the updated patch. Pushed. Thanks. -Brian ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] mesa: fix signed/unsigned integer comparison warnings

2011-11-08 Thread Brian Paul
--- src/mesa/main/uniform_query.cpp | 12 src/mesa/main/uniforms.h|2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 2ff8207..388e81a 100644 --- a/src/mesa/main/uniform_query.cpp +

Re: [Mesa-dev] [PATCH] llvmpipe: add EXT_timer_query support.

2011-11-08 Thread Jose Fonseca
- Original Message - > From: Dave Airlie > > This adds timer query support, though I'm not 100% sure about the bin > stuff > if we have multiple queries in flight, maybe it needs a linked list, > suggestions > welcome. I think that taking the time interval to the last rasterization task

[Mesa-dev] softpipe entry points

2011-11-08 Thread matthieu
Hi everyone, I'm currently looking on mesa source code for having informations about graphic rendering. For example to get the amount of triangles/tiles needed to render one frame. I also want to have informations about the amount of cycles needed to render triangles/tiles for each stages of t

[Mesa-dev] [Bug 8645] Issue when rendering with 2 contexts to one window

2011-11-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=8645 --- Comment #9 from Wolfgang Draxinger 2011-11-08 06:42:35 PST --- Indeed a single drawable may have serveral OpenGL render contexts on it, which also may be active in multiple threads at the same time. This is a common setup to allow for such th

Re: [Mesa-dev] [PATCH v2] glsl: Assign transform feedback varying slots in linker.

2011-11-08 Thread Paul Berry
On 8 November 2011 05:15, Marek Olšák wrote: > On Tue, Nov 8, 2011 at 7:28 AM, Paul Berry > wrote: > > This patch modifies the GLSL linker to assign additional slots for > > varying variables used by transform feedback, and record the varying > > slots used by transform feedback for use by the d

Re: [Mesa-dev] [PATCH v2] glsl: Assign transform feedback varying slots in linker.

2011-11-08 Thread Marek Olšák
On Tue, Nov 8, 2011 at 7:28 AM, Paul Berry wrote: > This patch modifies the GLSL linker to assign additional slots for > varying variables used by transform feedback, and record the varying > slots used by transform feedback for use by the driver back-end. > > This required modifying assign_varyin