Re: [Mesa-dev] [PATCH 3/4] glsl: add ir_cache class and functions for shader serialization

2013-11-01 Thread Tapani
On 11/01/2013 06:41 PM, Eric Anholt wrote: Tapani Pälli writes: On 10/29/2013 03:48 PM, Paul Berry wrote: On 29 October 2013 00:53, Tapani mailto:tapani.pa...@intel.com>> wrote: +} + + +/* data required to serialize ir_variable */ +struct ir_cache

Re: [Mesa-dev] [PATCH] draw: move type construction out of loop

2013-11-01 Thread Roland Scheidegger
Am 02.11.2013 00:09, schrieb Brian Paul: > We can create clip_ptr_type once instead of n times inside the loop. > --- > src/gallium/auxiliary/draw/draw_llvm.c |4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/auxiliary/draw/draw_llvm.c > b/src/gallium/aux

[Mesa-dev] [PATCH] i965: Combine gen6_clip_state.c and gen7_clip_state.c.

2013-11-01 Thread Kenneth Graunke
The changes between Gen6-7 are minimal, and can easily be solved with an extra generation check. This cuts a lot of duplicated code. It also helps prevent even more duplication for Broadwell. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/Makefile.sources | 1 - src/mesa/drive

[Mesa-dev] [PATCH 1/4] i965: Virtualize emit_buffer_surface_state().

2013-11-01 Thread Kenneth Graunke
This entails adding "mocs" and "rw" parameters to the Gen4-5 version. I made it actually pay attention to the rw flag (even though it is always false), but mocs is always ignored. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.h | 9 + src/mesa/driver

[Mesa-dev] [PATCH 2/4] i965: Use the new emit_buffer_surface_state() vtable entry.

2013-11-01 Thread Kenneth Graunke
This will allow us to combine the Gen4-6 and Gen7 variants of these functions. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_s

[Mesa-dev] [PATCH 3/4] i965: Unvirtualize brw_create_constant_surface; delete Gen7+ variant.

2013-11-01 Thread Kenneth Graunke
Now that brw_create_constant_surface uses a virtual function internally, it doesn't need to be virtual itself. We can delete the Gen7+ variant and simplify things. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.h | 12 +- src/mesa/drivers/dri/i965/brw

[Mesa-dev] [PATCH 4/4] i965: Combine {brw, gen7}_update_texture_buffer_surface() functions.

2013-11-01 Thread Kenneth Graunke
Now that brw_update_texture_buffer_surface() uses the virtual emit_buffer_surface_state() function, it works for Gen7+ too. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.h | 3 ++ src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 +- src/mesa/drivers/dr

Re: [Mesa-dev] [PATCH] i965: Tell the unit states how many binding table entries we have.

2013-11-01 Thread Kenneth Graunke
On 11/01/2013 07:57 PM, Eric Anholt wrote: > Before the series with 3c9dc2d31b80fc73bffa1f40a91443a53229c8e2 to > dynamically assign our binding table indices, we didn't really track our > binding table count per shader, so we never filled in these fields. > > Affects cairo-gl trace runtime by -2.

[Mesa-dev] [PATCH] i965: Tell the unit states how many binding table entries we have.

2013-11-01 Thread Eric Anholt
Before the series with 3c9dc2d31b80fc73bffa1f40a91443a53229c8e2 to dynamically assign our binding table indices, we didn't really track our binding table count per shader, so we never filled in these fields. Affects cairo-gl trace runtime by -2.47953% +/- 1.07281% (n=20) --- src/mesa/drivers/dri/

[Mesa-dev] [PATCH] i965/fs: New peephole optimization to flatten IF/BREAK/ENDIF.

2013-11-01 Thread Matt Turner
total instructions in shared programs: 1649485 -> 1649157 (-0.02%) instructions in affected programs: 7823 -> 7495 (-4.19%) --- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + src/mesa/drivers/dri/i965/brw_fs.h

[Mesa-dev] [PATCH 1/2] glxinfo: query and print list of compressed texture formats

2013-11-01 Thread Brian Paul
When the -l (print limits) option is used. --- src/xdemos/glxinfo.c | 146 -- 1 file changed, 143 insertions(+), 3 deletions(-) diff --git a/src/xdemos/glxinfo.c b/src/xdemos/glxinfo.c index 4d9a5cc..522a4e3 100644 --- a/src/xdemos/glxinfo.c +++ b/

[Mesa-dev] [PATCH 2/2] wglinfo: query and print list of compressed texture formats

2013-11-01 Thread Brian Paul
--- src/wgl/wglinfo.c | 147 +++-- 1 file changed, 144 insertions(+), 3 deletions(-) diff --git a/src/wgl/wglinfo.c b/src/wgl/wglinfo.c index 41f2a31..b54c3b6 100644 --- a/src/wgl/wglinfo.c +++ b/src/wgl/wglinfo.c @@ -49,6 +49,137 @@ typedef enum

Re: [Mesa-dev] [PATCH] mesa: Change driver interface for ARB_viewport_array

2013-11-01 Thread Francisco Jerez
Ian Romanick writes: > On 11/01/2013 02:04 PM, Courtney Goeltzenleuchter wrote: >>[...] > More often, the dd_function_table functions allow core Mesa to signal > the driver driver that something happened... and the driver may need to > do something in response. For DRI2 drivers, the Viewport fun

[Mesa-dev] [PATCH] draw: move type construction out of loop

2013-11-01 Thread Brian Paul
We can create clip_ptr_type once instead of n times inside the loop. --- src/gallium/auxiliary/draw/draw_llvm.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index 03668d9..fe49b86 100644 -

[Mesa-dev] [Bug 71124] dst[3] will not always initialized in etc2_rgb8_fetch_texel().

2013-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71124 Matt Turner changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |anuj.pho...@gmail.com |o

Re: [Mesa-dev] [PATCH 3/5] i965/fs: New peephole optimization to generate SEL.

2013-11-01 Thread Matt Turner
On Fri, Nov 1, 2013 at 3:02 PM, Paul Berry wrote: > In the last round of review, you gave me some nice clarification on why this > was chosen to be 8. Would you mind documenting that in the comment? Yes, I will add it. Thanks Paul! ___ mesa-dev mailin

[Mesa-dev] [PATCH 1/2] nouveau: Use _NEW_VIEWPORT instead of hooking through dd_function_table

2013-11-01 Thread Ian Romanick
From: Ian Romanick This will enable removing the dd_function_table::DepthRange hook in the near future. Signed-off-by: Ian Romanick Cc: Francisco Jerez --- src/mesa/drivers/dri/nouveau/nouveau_state.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/m

[Mesa-dev] [PATCH 2/2] nouveau: Use _NEW_SCISSOR instead of hooking through dd_function_table

2013-11-01 Thread Ian Romanick
From: Ian Romanick This will enable removing the dd_function_table::Scissor hook in the near future. Signed-off-by: Ian Romanick Cc: Francisco Jerez --- src/mesa/drivers/dri/nouveau/nouveau_state.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers

Re: [Mesa-dev] [PATCH 4/5] i965/fs: Extend SEL peephole to handle only matching MOVs.

2013-11-01 Thread Paul Berry
On 31 October 2013 18:57, Matt Turner wrote: > Before this patch, the following code would not be optimized even though > the first two instructions were common to the then and else blocks: > >(+f0) IF >MOV dst0 ... >MOV dst1 ... >MOV dst2 ... >ELSE >MOV dst0 ... >MOV

Re: [Mesa-dev] [PATCH 3/5] i965/fs: New peephole optimization to generate SEL.

2013-11-01 Thread Paul Berry
On 31 October 2013 18:57, Matt Turner wrote: > fs_visitor::try_replace_with_sel optimizes only if statements whose > "then" and "else" bodies contain a single MOV instruction. It also > could not handle constant arguments, since they cause an extra MOV > immediate to be generated (since we haven'

Re: [Mesa-dev] [PATCH] mesa: Change driver interface for ARB_viewport_array

2013-11-01 Thread Ian Romanick
On 11/01/2013 02:43 PM, Ian Romanick wrote: > On 11/01/2013 02:04 PM, Courtney Goeltzenleuchter wrote: >> >> On Fri, Nov 1, 2013 at 1:51 PM, Ian Romanick > > wrote: >> >> On 10/31/2013 08:55 AM, Courtney Goeltzenleuchter wrote: >> > Add the index parameter to th

Re: [Mesa-dev] [PATCH 1/5] i965: Keep pointers to IF/ELSE/ENDIF instructions in the cfg.

2013-11-01 Thread Paul Berry
On 31 October 2013 18:57, Matt Turner wrote: > Useful for finding the associated control flow instructions, given a > block ending in one. > --- > src/mesa/drivers/dri/i965/brw_cfg.cpp | 34 > ++ > src/mesa/drivers/dri/i965/brw_cfg.h | 10 ++ > 2 files c

Re: [Mesa-dev] [PATCH] mesa: Change driver interface for ARB_viewport_array

2013-11-01 Thread Ian Romanick
On 11/01/2013 02:04 PM, Courtney Goeltzenleuchter wrote: > > On Fri, Nov 1, 2013 at 1:51 PM, Ian Romanick > wrote: > > On 10/31/2013 08:55 AM, Courtney Goeltzenleuchter wrote: > > Add the index parameter to the Scissor, Viewport and > > DepthRange driver

Re: [Mesa-dev] [PATCH 1/2] dri: Add driconf option clamp_max_samples

2013-11-01 Thread Paul Berry
On 31 October 2013 18:36, Chad Versace wrote: > This clamps GL_MAX_SAMPLES to the given value. If negative, then no > clamping occurs. > > This patch adds the option, but no driver respects it yet. > Do you plan to implement support for this option in all drivers or just i965? If you're just im

Re: [Mesa-dev] [PATCH 2/2] i965: Respect driconf option clamp_max_samples

2013-11-01 Thread Paul Berry
On 31 October 2013 18:36, Chad Versace wrote: > Clamp gen7 GL_MAX_SAMPLES to 0, 4, or 8. > Clamp gen6 GL_MAX_SAMPLES to 0 or 4. > Clamp other gens to 0. > > CC: Eric Anholt > Signed-off-by: Chad Versace > --- > src/mesa/drivers/dri/i965/brw_context.c | 35 > +++- >

Re: [Mesa-dev] [PATCH] mesa: Change driver interface for ARB_viewport_array

2013-11-01 Thread Courtney Goeltzenleuchter
On Fri, Nov 1, 2013 at 1:51 PM, Ian Romanick wrote: > On 10/31/2013 08:55 AM, Courtney Goeltzenleuchter wrote: > > Add the index parameter to the Scissor, Viewport and > > DepthRange driver methods. Update i965 and Gallium > > to the change. Index always 0. > > I just sent out a patch series that

Re: [Mesa-dev] [PATCH 6/6] i965/gen7: Add instruction latency estimates for untyped atomics and reads.

2013-11-01 Thread Francisco Jerez
Paul Berry writes: > On 29 October 2013 16:37, Francisco Jerez wrote: > >> The latency information has been obtained empirically from >> measurements taken on Haswell and Ivy Bridge. >> --- >> .../drivers/dri/i965/brw_schedule_instructions.cpp | 41 >> ++ >> 1 file changed,

Re: [Mesa-dev] [PATCH] mesa: Change driver interface for ARB_viewport_array

2013-11-01 Thread Ian Romanick
On 10/31/2013 08:55 AM, Courtney Goeltzenleuchter wrote: > Add the index parameter to the Scissor, Viewport and > DepthRange driver methods. Update i965 and Gallium > to the change. Index always 0. I just sent out a patch series that cleans up a bunch of the driver implementations of dd_function_t

[Mesa-dev] [PATCH 3/3] radeon / r200: Don't pass unused parameters to radeon_viewport

2013-11-01 Thread Ian Romanick
From: Ian Romanick The x, y, width, and height parameters aren't used by radeon_viewport, so don't pass them. This should make future changes to the dd_function_table::Viewport interface a little easier. Signed-off-by: Ian Romanick Cc: Courtney Goeltzenleuchter Cc: Jordan Justen --- src/mes

[Mesa-dev] [PATCH 2/3] i915: Bring sanity to the Viewport function

2013-11-01 Thread Ian Romanick
From: Ian Romanick The i830 and the i915 driver have the same dd_function_table::Viewport function... it just has two names and lives in two places. Using a single implementation allows cleaning up the saved_viewport nonsense too. Signed-off-by: Ian Romanick Cc: Courtney Goeltzenleuchter Cc:

[Mesa-dev] [PATCH 1/3] i965: Eliminate the saved_viewport wrapper

2013-11-01 Thread Ian Romanick
From: Ian Romanick The i965 driver never installed a dd_function_table::Viewport function, so this wrapper never actually did anything. No piglit regressions on IVB on DRI2. Signed-off-by: Ian Romanick Cc: Courtney Goeltzenleuchter Cc: Jordan Justen --- src/mesa/drivers/dri/i965/brw_context

Re: [Mesa-dev] [PATCH] mesa: Add ARB_texture_view to Mesa core

2013-11-01 Thread Ian Romanick
On 11/01/2013 09:54 AM, Courtney Goeltzenleuchter wrote: > Add necessary driver interface and state to support glTextureView as > specified by ARB_texture_view. Includes updates to configuration > files (i.e. Makefile.am, SConscript, etc.), xml definition for > glTextureView, header files and the

Re: [Mesa-dev] [PATCH 5/5] mesa: Fix bug about "what if we didn't find the VBO"?

2013-11-01 Thread Fredrik Höglund
On Thursday 31 October 2013, Eric Anholt wrote: > There was some spec text, and what there isn't text for we have obvious > intended behavior from other buffer object bindings. The first revision of the specification didn't say anything about it, but the intent is indeed pretty clear now. I chang

Re: [Mesa-dev] [PATCH 3/5] corresponding cleanup for patch 11: Optimize rebinding the same VBO

2013-11-01 Thread Fredrik Höglund
I spotted a small bug in this patch. On Thursday 31 October 2013, Eric Anholt wrote: > --- > src/mesa/main/varray.c | 10 -- > 1 file changed, 4 insertions(+), 6 deletions(-) > > diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c > index e7ff8d7..0087096 100644 > --- a/src/mesa

[Mesa-dev] i965 DOTA2 perf issue: faulting and unsynchronized maps

2013-11-01 Thread Eric Anholt
Those of you at the office yesterday may remember me getting very excited about perf events suggesting gtt thrashing on DOTA2. On further testing, i915:i915_gem_evict says that we aren't evicting things from the GTT after the first run. We still get the i915:i915_gem_request_wait_begin stalls on

Re: [Mesa-dev] [PATCH 6/6] i965/gen7: Add instruction latency estimates for untyped atomics and reads.

2013-11-01 Thread Matt Turner
On Fri, Nov 1, 2013 at 10:31 AM, Paul Berry wrote: > On 29 October 2013 16:37, Francisco Jerez wrote: >> >> The latency information has been obtained empirically from >> measurements taken on Haswell and Ivy Bridge. >> --- >> .../drivers/dri/i965/brw_schedule_instructions.cpp | 41 >> +++

Re: [Mesa-dev] [PATCH] st/xorg: handle updates to DamageUnregister API

2013-11-01 Thread Brian Paul
On 11/01/2013 11:02 AM, Emil Velikov wrote: xserver 1.14.99.2 simplified the DamageUnregister API, by dropping the drawable argument. Follow xf86-video-intel and xf86-video-vmware approach and handle the new API by checking XORG_VERSION_CURRENT. Bugzilla: https://bugs.freedesktop.org/show_bug.cg

Re: [Mesa-dev] [PATCH 5/6] docs/GL3: document radeonsi support, minor cleanup

2013-11-01 Thread Marek Olšák
I'm a little sentimental about r300, but you're right. There is no value to listing hw drivers that will never do GL3, just as there will soon be no value to listing GL 3.0 and 3.1 status, because it will all be done. Marek On Fri, Nov 1, 2013 at 12:15 AM, Matt Turner wrote: > On Thu, Oct 31, 20

Re: [Mesa-dev] [PATCH 6/6] i965/gen7: Add instruction latency estimates for untyped atomics and reads.

2013-11-01 Thread Paul Berry
On 29 October 2013 16:37, Francisco Jerez wrote: > The latency information has been obtained empirically from > measurements taken on Haswell and Ivy Bridge. > --- > .../drivers/dri/i965/brw_schedule_instructions.cpp | 41 > ++ > 1 file changed, 41 insertions(+) > > diff --gi

Re: [Mesa-dev] [PATCH 5/6] i965/gen7: Handle atomic instructions from the VEC4 back-end.

2013-11-01 Thread Paul Berry
On 29 October 2013 16:37, Francisco Jerez wrote: > This can deal with all the 15 32-bit untyped atomic operations the > hardware supports, but only INC and PREDEC are going to be exposed > through the API for now. > > v2: Represent atomics as GLSL intrinsics. Add support for variably > index

Re: [Mesa-dev] [PATCH 4/6] i965/gen7: Handle atomic instructions from the FS back-end.

2013-11-01 Thread Paul Berry
On 29 October 2013 16:37, Francisco Jerez wrote: > This can deal with all the 15 32-bit untyped atomic operations the > hardware supports, but only INC and PREDEC are going to be exposed > through the API for now. > > v2: Represent atomics as GLSL intrinsics. Add support for variably > index

Re: [Mesa-dev] [PATCH 2/6] glsl: Linker support for ARB_shader_atomic_counters.

2013-11-01 Thread Paul Berry
On 29 October 2013 16:37, Francisco Jerez wrote: > v2: Add comments on the purpose of the auxiliary data structures. > Check for atomic counter overlaps. Use the contains_atomic() > convenience method. Add static assert with the number of expected > shader stages. > > v3: Don't resi

Re: [Mesa-dev] [PATCH 1/2] dri: Add driconf option clamp_max_samples

2013-11-01 Thread Chad Versace
+Eric, because I misspelled your email address in the CC list. On 10/31/2013 06:36 PM, Chad Versace wrote: This clamps GL_MAX_SAMPLES to the given value. If negative, then no clamping occurs. This patch adds the option, but no driver respects it yet. CC: Eric Anholt Signed-off-by: Chad Versac

[Mesa-dev] [PATCH] st/xorg: handle updates to DamageUnregister API

2013-11-01 Thread Emil Velikov
xserver 1.14.99.2 simplified the DamageUnregister API, by dropping the drawable argument. Follow xf86-video-intel and xf86-video-vmware approach and handle the new API by checking XORG_VERSION_CURRENT. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71110 Reported-by: Michał Górny Reported

[Mesa-dev] [Bug 71110] xorg_driver.c:1030:2: error: too many arguments to function ‘DamageUnregister’

2013-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71110 --- Comment #3 from Emil Velikov --- Created attachment 88493 --> https://bugs.freedesktop.org/attachment.cgi?id=88493&action=edit st/xorg: handle updates to DamageUnregister API There are multiple ways we can handle this but I suspect that us

[Mesa-dev] [PATCH] mesa: Add ARB_texture_view to Mesa core

2013-11-01 Thread Courtney Goeltzenleuchter
Add necessary driver interface and state to support glTextureView as specified by ARB_texture_view. Includes updates to configuration files (i.e. Makefile.am, SConscript, etc.), xml definition for glTextureView, header files and the new texture parameters. --- src/mapi/glapi/gen/ARB_texture_view.

Re: [Mesa-dev] [PATCH V3 06/12] i965: Don't do vector splitting for ir_var_system_value

2013-11-01 Thread Eric Anholt
Anuj Phogat writes: > This is required while adding builtin system value vec{2, 3, 4} > variables. For example: > (declare (sys) vec2 gl_SamplePosition) > > Without this patch above glsl ir splits in to: > (declare (temporary) float gl_SamplePosition_x) > (declare (temporary) float gl_SamplePosit

Re: [Mesa-dev] [PATCH 3/4] glsl: add ir_cache class and functions for shader serialization

2013-11-01 Thread Eric Anholt
Tapani Pälli writes: > On 10/29/2013 03:48 PM, Paul Berry wrote: >> On 29 October 2013 00:53, Tapani > > wrote: >>> +} >>> + >>> + >>> +/* data required to serialize ir_variable */ >>> +struct ir_cache_variable_data >>> >>> >>

[Mesa-dev] [Bug 70403] xorg state tracker fails to build due to change in DamageUnregister API

2013-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70403 Emil Velikov changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 71110] xorg_driver.c:1030:2: error: too many arguments to function ‘DamageUnregister’

2013-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71110 Emil Velikov changed: What|Removed |Added CC||mgo...@gentoo.org --- Comment #2 from Emi

[Mesa-dev] [PATCH] mesa: Change driver interface for ARB_viewport_array

2013-11-01 Thread Courtney Goeltzenleuchter
Start setting the stage for ARB_viewport_array extension support. Add the index parameter to the Scissor, Viewport and DepthRange driver methods. Update i965 and Gallium to match. Include change for i915, nouveau and radeon per feedback from mesa-dev. piglit quick.tests passes --- src/mesa/driver

[Mesa-dev] [PATCH] clover: fix build with LLVM 3.4

2013-11-01 Thread Aaron Watry
dso_list was added as an argument for createInternalizePass in 3.4, and then it was removed again in the same llvm version. --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 5 - 1 file changed, 5 deletions(-) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src

Re: [Mesa-dev] [PATCH 1/6] glsl: Implement parser support for atomic counters.

2013-11-01 Thread Paul Berry
On 29 October 2013 16:37, Francisco Jerez wrote: > v2: Mark atomic counters as read-only variables. Move offset overlap > code to the linker. Use the contains_atomic() convenience method. > v3: Use pointer to integer instead of non-const reference. Add > comment so we remember to add a

Re: [Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-01 Thread Tapani
On 11/01/2013 03:31 PM, Erik Faye-Lund wrote: Won't using the git-sha1 as a compatibility-criteria cause issues for developers with local changes? I'm not so worried about this for OES_get_program_binary itself, but once the shader-cache is in place it sounds like a potential source of difficult

[Mesa-dev] [Bug 71124] New: dst[3] will not always initialized in etc2_rgb8_fetch_texel().

2013-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71124 Priority: medium Bug ID: 71124 Assignee: mesa-dev@lists.freedesktop.org Summary: dst[3] will not always initialized in etc2_rgb8_fetch_texel(). Severity: trivial Classifi

Re: [Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-01 Thread Erik Faye-Lund
On Fri, Nov 1, 2013 at 1:08 PM, Tapani Pälli wrote: > On 11/01/2013 12:38 PM, Erik Faye-Lund wrote: >> >> On Fri, Nov 1, 2013 at 11:35 AM, Tapani Pälli >> wrote: >>> >>> On 11/01/2013 12:21 PM, Erik Faye-Lund wrote: On Fri, Nov 1, 2013 at 10:16 AM, Tapani Pälli wrote: > >

Re: [Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-01 Thread Tapani Pälli
On 11/01/2013 12:38 PM, Erik Faye-Lund wrote: On Fri, Nov 1, 2013 at 11:35 AM, Tapani Pälli wrote: On 11/01/2013 12:21 PM, Erik Faye-Lund wrote: On Fri, Nov 1, 2013 at 10:16 AM, Tapani Pälli wrote: Signed-off-by: Tapani Pälli --- src/mesa/main/shaderapi.c | 46 +++

[Mesa-dev] Suggestions for Mesa 11

2013-11-01 Thread oscar barenys
Hi, I'm working on porting a D3D11 demo to OpenGL 4 which uses some key D3D11 like features (HDR new tex compression, OIT via UAV,etc..) it's sad to see on these presentation of ATI some 4 years ago citing key D3D11 features (see http://bit.ly/1bIJ5WN) sadly no support of most of these on Mesa.. th

Re: [Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-01 Thread Erik Faye-Lund
On Fri, Nov 1, 2013 at 11:35 AM, Tapani Pälli wrote: > On 11/01/2013 12:21 PM, Erik Faye-Lund wrote: >> >> On Fri, Nov 1, 2013 at 10:16 AM, Tapani Pälli >> wrote: >>> >>> Signed-off-by: Tapani Pälli >>> --- >>> src/mesa/main/shaderapi.c | 46 >>> +++--- >

Re: [Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-01 Thread Tapani Pälli
On 11/01/2013 12:21 PM, Erik Faye-Lund wrote: On Fri, Nov 1, 2013 at 10:16 AM, Tapani Pälli wrote: Signed-off-by: Tapani Pälli --- src/mesa/main/shaderapi.c | 46 +++--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/shad

[Mesa-dev] [PATCH] glsl: cleanup, remove duplicate assignment

2013-11-01 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/glsl/glsl_parser_extras.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index be17109..8f66d5f 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -1521,7

[Mesa-dev] [PATCH] glsl: cleanup, remove duplicate assignment

2013-11-01 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/glsl/glsl_parser_extras.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index be17109..8f66d5f 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -1521,7

Re: [Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-01 Thread Erik Faye-Lund
On Fri, Nov 1, 2013 at 10:16 AM, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli > --- > src/mesa/main/shaderapi.c | 46 +++--- > 1 file changed, 39 insertions(+), 7 deletions(-) > > diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c > in

[Mesa-dev] Intel DRM API Reference?

2013-11-01 Thread Rogovin, Kevin
Hi all, I've been digging through Mesa's i965 and am at the point that I likely need to atleast know what is the API for the intel_drm calls. Chasing the code in DRM sources for each of the calls leaves me with essentially a function pointer chase which then lands me with an ioctl call. The i

[Mesa-dev] [v2 2/6] mesa: iterate method for string_to_uint_map

2013-11-01 Thread Tapani Pälli
shader cache requires this to be able to cache gl_shader_program Signed-off-by: Tapani Pälli --- src/mesa/program/hash_table.h | 8 1 file changed, 8 insertions(+) diff --git a/src/mesa/program/hash_table.h b/src/mesa/program/hash_table.h index e95fc49..ece43a1 100644 --- a/src/mesa/pr

[Mesa-dev] [v2 1/6] glsl: export populate_symbol_table

2013-11-01 Thread Tapani Pälli
shader cache needs this to allocate and fill gl_shader symbol table Signed-off-by: Tapani Pälli --- src/glsl/linker.cpp | 2 +- src/glsl/linker.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 49bb142..76ee184 100644 --- a

[Mesa-dev] [v2 5/6] glsl: functions to serialize gl_shader and gl_shader_program

2013-11-01 Thread Tapani Pälli
These utility functions can be used to (de)serialize gl_shader and gl_shader_program structures. This makes it possible to implement a shader compiler cache for individual shaders and functionality required by OES_get_program_binary extension. Signed-off-by: Tapani Pälli --- src/glsl/Makefile.so

[Mesa-dev] [v2 6/6] mesa: OES_get_program_binary functionality

2013-11-01 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/mesa/main/shaderapi.c | 46 +++--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 7da860d..67aee6b 100644 --- a/src/mesa/main/shaderapi.c +++ b/s

[Mesa-dev] [v2 3/6] glsl: ir_serializer class for the shader cache

2013-11-01 Thread Tapani Pälli
ir_serializer can serialize a gl_shader structure as binary data, will be used by OES_get_program_binary implementation. Signed-off-by: Tapani Pälli --- src/glsl/Makefile.sources| 1 + src/glsl/ir_cache_serializer.cpp | 933 +++ src/glsl/ir_cache_ser

[Mesa-dev] [v2 0/6] GL_OES_get_program_binary extension

2013-11-01 Thread Tapani Pälli
Hi; Here's version 2 of my GL_OES_get_program_binary implementation I sent before: http://lists.freedesktop.org/archives/mesa-dev/2013-October/046934.html I've fixed the errors Paul Berry found and refactored the code quite a bit. I also split it in to more patches to hopefully make it more reada

Re: [Mesa-dev] [PATCH V3 03/12] mesa: Pass number of samples as a program state variable

2013-11-01 Thread Pohjolainen, Topi
On Thu, Oct 31, 2013 at 04:33:36PM -0700, Anuj Phogat wrote: > Number of samples will be required in fragment shader program by new > GLSL builtin uniform "gl_NumSamples". > > V2: Use "state.numsamples" in place of "state.num.samples" > Use _NEW_BUFFERS flag in place of _NEW_MULTISAMPLE > > S

Re: [Mesa-dev] [PATCH] mesa: Change driver interface for ARB_viewport_array

2013-11-01 Thread Jordan Justen
On Thu, Oct 31, 2013 at 8:55 AM, Courtney Goeltzenleuchter wrote: > Add the index parameter to the Scissor, Viewport and > DepthRange driver methods. Update i965 and Gallium > to the change. Index always 0. > --- > src/mesa/drivers/common/driverfuncs.c | 2 +- > src/mesa/drivers/dri/i965/brw_c