[Mesa-dev] [PATCH 3/3] st/mesa: don't use _NEW_PROGRAM where ST_NEW_xxx_PROGRAM is sufficient

2012-10-28 Thread Marek Olšák
--- src/mesa/state_tracker/st_atom_array.c|2 +- src/mesa/state_tracker/st_atom_clip.c |4 ++-- src/mesa/state_tracker/st_atom_constbuf.c |6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/s

[Mesa-dev] [PATCH 1/3] vbo: implement uploading of current attribs

2012-10-28 Thread Marek Olšák
The driver chooses which attrib should be uploaded by calling vbo_get_current_attrib_buffer. The reason for this is we can track which current attribs are dirty and skip uploading accordingly. Before, we had to upload the attribs every draw call, which wasn't very effective. Stats for a whole run

[Mesa-dev] [PATCH 2/3] st/mesa: upload current attribs using the vbo module

2012-10-28 Thread Marek Olšák
--- src/mesa/state_tracker/st_atom_array.c | 38 ++-- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c index c96f6dc..86328e2 100644 --- a/src/mesa/state_tracker/st_atom_ar

[Mesa-dev] [Bug 48351] 'wine FurMark' crashes in 'movapd' instruction within JIT function (draw: llvm_pipeline_generic)

2012-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48351 Johannes Obermayr changed: What|Removed |Added QA Contact||mesa-dev@lists.freedesktop.

Re: [Mesa-dev] [PATCH 00/16] Replacing the default_extensions list with dummy_true

2012-10-28 Thread Kenneth Graunke
On 10/28/2012 07:24 AM, Marek Olšák wrote: These are extensions which are enabled by default though the default_extensions list in main/extensions.c. This series changes the mechanism to using the dummy_true flag instead while removing the extension enable flags. The only exception is GL_OES_s

[Mesa-dev] [PATCH 1/2] intel: Avoid double copy with MapBufferRange's explicit flushing case.

2012-10-28 Thread Kenneth Graunke
When mapping a buffer object with GL_MAP_INVALIDATE_RANGE_BIT and GL_MAP_FLUSH_EXPLICIT_BIT and encountering a busy BO, we malloc'd a temporary buffer. Then, on FlushMappedBufferRange, we'd allocate a second temporary BO, immediately pwrite the data to that (copy #1), then use the BLT ring to writ

[Mesa-dev] [PATCH 2/2] i965: Implement the ARB_map_buffer_alignment extension.

2012-10-28 Thread Kenneth Graunke
(This extension became core in OpenGL 4.2.) On Gen4+, all of our buffer objects are backed by GEM bos, which are aligned to multiples of PAGE_SIZE (typically 4096, definitely >= 64). Gen3 uses malloc'd memory for some buffers, so don't expose this extension there. It's not likely to be useful an

Re: [Mesa-dev] R600 tiling halves the frame rate

2012-10-28 Thread Tzvetan Mikov
On 10/28/2012 04:26 AM, Marek Olšák wrote: > Did you also turn on ColorTiling2D through xorg.conf? If not, you > might try that and see what happens. No, there is no X11 at all. I am running my tests on a very bare system with EGL only, hoping to minimize the test surface and isolate any interfere

Re: [Mesa-dev] [PATCH 2/2] mesa: use the EXT_texture_compression_s3tc enable flag for all S3TC extensions

2012-10-28 Thread Kenneth Graunke
On 10/28/2012 08:09 AM, Marek Olšák wrote: --- src/mesa/drivers/dri/intel/intel_extensions.c |2 -- src/mesa/drivers/dri/nouveau/nv10_context.c |1 - src/mesa/drivers/dri/nouveau/nv20_context.c |1 - src/mesa/drivers/dri/r200/r200_context.c |1 - src/mesa/drivers/dr

Re: [Mesa-dev] R600 tiling halves the frame rate

2012-10-28 Thread Tzvetan Mikov
On 10/27/2012 07:37 PM, Matt Turner wrote: >> for ( float angle = 0; ; angle += 0.5 ) >> { >> if (angle >= 360) >> angle -= 360; >> >> display( angle ); >> glFlush(); >> eglSwapBuffers( dpy, screenSurf ); > > Do you actually need glFlush()? > > It might be a case of > ht

[Mesa-dev] [PATCH] r600g: make tgsi-to-llvm generates store.pixel* intrinsic for fs

2012-10-28 Thread Vincent Lejeune
--- src/gallium/drivers/r600/eg_asm.c| 17 src/gallium/drivers/r600/r600_asm.c | 17 src/gallium/drivers/r600/r600_asm.h | 2 + src/gallium/drivers/r600/r600_llvm.c | 71 src/gallium/drivers/r600/r600_shader.c | 32 +++

[Mesa-dev] [PATCH] radeon/llvm: use specialised R600.store.pixel.* for fragment shader

2012-10-28 Thread Vincent Lejeune
--- lib/Target/AMDGPU/AMDGPUISelLowering.cpp | 1 + lib/Target/AMDGPU/AMDGPUISelLowering.h | 1 + .../AMDGPU/MCTargetDesc/R600MCCodeEmitter.cpp | 11 +- lib/Target/AMDGPU/R600ISelLowering.cpp | 66 +++ lib/Target/AMDGPU/R600Instructions.td

[Mesa-dev] [PATCH 2/2] gallium: expose ARB_map_buffer_alignment on Radeon

2012-10-28 Thread Marek Olšák
--- docs/GL3.txt |2 +- src/gallium/drivers/i915/i915_screen.c |1 + src/gallium/drivers/llvmpipe/lp_screen.c |1 + src/gallium/drivers/nv30/nv30_screen.c |1 + src/gallium/drivers/nv50/nv50_screen.c |1 + src/gallium/driver

[Mesa-dev] [PATCH 1/2] mesa: implement ARB_map_buffer_alignment

2012-10-28 Thread Marek Olšák
--- src/mapi/glapi/gen/gl_API.xml|8 +++- src/mesa/main/extensions.c |1 + src/mesa/main/get.c |1 + src/mesa/main/get_hash_params.py |3 +++ src/mesa/main/mtypes.h |4 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/

[Mesa-dev] [PATCH 2/2] mesa: use the EXT_texture_compression_s3tc enable flag for all S3TC extensions

2012-10-28 Thread Marek Olšák
--- src/mesa/drivers/dri/intel/intel_extensions.c |2 -- src/mesa/drivers/dri/nouveau/nv10_context.c |1 - src/mesa/drivers/dri/nouveau/nv20_context.c |1 - src/mesa/drivers/dri/r200/r200_context.c |1 - src/mesa/drivers/dri/radeon/radeon_context.c |1 - src/mesa/driv

[Mesa-dev] [PATCH 1/2] mesa: remove NV_read_buffer extension enable flag

2012-10-28 Thread Marek Olšák
It's been enabled by default, so the flag isn't really useful. --- src/mesa/main/get.c|2 +- src/mesa/main/mtypes.h |1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index fb55aa7..eff850c 100644 --- a/src/mesa/main/get.c +++

[Mesa-dev] [PATCH 16/16] mesa: remove SGIS_texture_lod extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c | 20 +--- src/mesa/main/mtypes.h |1 - 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index ad7b91a..56d5f90 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main

[Mesa-dev] [PATCH 15/16] mesa: remove NV_texgen_reflection extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c |4 +--- src/mesa/main/mtypes.h |1 - src/mesa/state_tracker/st_extensions.c |1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index d0382cf..ad7b91a 100

[Mesa-dev] [PATCH 14/16] mesa: remove NV_light_max_exponent extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c |4 +--- src/mesa/main/get.c |1 - src/mesa/main/get_hash_params.py |4 ++-- src/mesa/main/mtypes.h |1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions

[Mesa-dev] [PATCH 13/16] mesa: remove IBM_rasterpos_clip extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/enable.c |2 -- src/mesa/main/extensions.c |3 +-- src/mesa/main/get.c |1 - src/mesa/main/get_hash_params.py |2 +- src/mesa/main/mtypes.h |1 - 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mesa/mai

[Mesa-dev] [PATCH 12/16] mesa: remove IBM_multimode_draw_arrays extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/drivers/dri/swrast/swrast.c |1 - src/mesa/main/extensions.c |4 +--- src/mesa/main/mtypes.h |1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c index fb4ea

[Mesa-dev] [PATCH 11/16] mesa: remove APPLE_packed_pixels extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c |3 +-- src/mesa/main/mtypes.h |1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index b6a39c1..638ddb1 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -

[Mesa-dev] [PATCH 10/16] mesa: don't always enable OES_standard_derivatives

2012-10-28 Thread Marek Olšák
For Intel, expose it only if gen >= 4. For Gallium, expose it only if PIPE_CAP_SM3 is advertised. --- src/glsl/standalone_scaffolding.cpp |1 + src/mesa/drivers/dri/intel/intel_extensions.c |1 + src/mesa/main/extensions.c|3 +-- src/mesa/state_tracker/st_

[Mesa-dev] [PATCH 09/16] mesa: remove EXT_texture3D extension enable flag

2012-10-28 Thread Marek Olšák
--- src/glsl/glsl_parser_extras.cpp |2 +- src/glsl/standalone_scaffolding.cpp |1 - src/mesa/main/extensions.c |6 ++ src/mesa/main/mtypes.h |1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/gls

[Mesa-dev] [PATCH 08/16] mesa: remove EXT_separate_specular_color extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c |3 +-- src/mesa/main/mtypes.h |1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 36e2d6d..88b5762 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -

[Mesa-dev] [PATCH 07/16] mesa: remove EXT_rescale_normal extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c |3 +-- src/mesa/main/mtypes.h |1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 5988549..36e2d6d 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -

[Mesa-dev] [PATCH 06/16] mesa: remove EXT_packed_pixels extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c |3 +-- src/mesa/main/mtypes.h |1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 90930fe..5988549 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -

[Mesa-dev] [PATCH 05/16] mesa: remove EXT_draw_range_elements extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c |3 +-- src/mesa/main/mtypes.h |1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 4b62c6b..90930fe 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -

[Mesa-dev] [PATCH 04/16] mesa: remove EXT_compiled_vertex_array extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/drivers/dri/swrast/swrast.c |1 - src/mesa/main/extensions.c |3 +-- src/mesa/main/get.c |1 - src/mesa/main/get_hash_params.py |4 ++-- src/mesa/main/mtypes.h |1 - 5 files changed, 3 insertions(+), 7 deletions(-) diff

[Mesa-dev] [PATCH 03/16] mesa: remove ARB_window_pos extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/drivers/dri/swrast/swrast.c |1 - src/mesa/main/extensions.c |7 ++- src/mesa/main/mtypes.h |1 - src/mesa/main/version.c|1 - src/mesa/state_tracker/st_extensions.c |1 - 5 files changed, 2 insertions(+), 9 deletio

[Mesa-dev] [PATCH 02/16] mesa: remove ARB_transpose_matrix extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/drivers/dri/swrast/swrast.c |1 - src/mesa/main/extensions.c |4 +--- src/mesa/main/mtypes.h |1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c index 75969

[Mesa-dev] [PATCH 01/16] mesa: remove ARB_copy_buffer extension enable flag

2012-10-28 Thread Marek Olšák
--- src/mesa/main/extensions.c |4 +--- src/mesa/main/get.c|1 - src/mesa/main/get_hash_params.py |4 ++-- src/mesa/main/mtypes.h |1 - src/mesa/main/version.c|1 - src/mesa/state_tracker/st_extensions.c |

[Mesa-dev] [PATCH 00/16] Replacing the default_extensions list with dummy_true

2012-10-28 Thread Marek Olšák
These are extensions which are enabled by default though the default_extensions list in main/extensions.c. This series changes the mechanism to using the dummy_true flag instead while removing the extension enable flags. The only exception is GL_OES_standard_derivatives, which I would not like t

[Mesa-dev] [PATCH v2] wayland: Destroy frame callback when destroying surface

2012-10-28 Thread Jonas Ådahl
If a frame callback is not destroyed when destroying a surface, its handler function will be invoked if the surface was destoryed after the callback was requested but before it was invoked, causing a write on free:ed memory. This can happen if eglDestroySurface() is called shortly after eglSwapBuf

Re: [Mesa-dev] R600 tiling halves the frame rate

2012-10-28 Thread Marek Olšák
Did you also turn on ColorTiling2D through xorg.conf? If not, you might try that and see what happens. Marek On Sun, Oct 28, 2012 at 1:53 AM, Tzvetan Mikov wrote: > On 10/27/2012 06:58 AM, Marek Olšák wrote: >> If you upload the texture every frame, set pipe_resource::usage to >> PIPE_USAGE_STAG

Re: [Mesa-dev] [PATCH] gallium/auxiliary: Fix build with newer LLVM.

2012-10-28 Thread Jose Fonseca
We use LLVM in a few other directories. Shouldn't we be putting this a bit higher up? For example in LLVM_CXXFLAGS? I just noticed that src/gallium/state_trackers/clover uses exceptions. So this won't fly everywhere... Jose - Original Message - > rtti was removed from more llvm librari

Re: [Mesa-dev] [PATCH] scons: Add -fno-rtti to CXXFLAGS with llvm-3.2.

2012-10-28 Thread Jose Fonseca
Looks good to me. I hope this doesn't affect any other C++ code we might interface with, but I don't think that's a problem ATM. Jose - Original Message - > llvm-3.2svn r166772 no longer requires RTTI for lib/Support. > > Signed-off-by: Vinson Lee > --- > scons/llvm.py | 3 +++ > 1 f