[Mesa-dev] [PATCH] glsl: Remove unused member predicate from ir_dead_functions_visitor.

2012-04-26 Thread Vinson Lee
Fix uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee --- src/glsl/opt_dead_functions.cpp |2 -- 1 file changed, 2 deletions(-) diff --git a/src/glsl/opt_dead_functions.cpp b/src/glsl/opt_dead_functions.cpp index 017a286..f503493 100644 --- a/src/glsl/opt_de

Re: [Mesa-dev] How to use gbm_surface_lock_front_buffer() ?

2012-04-26 Thread Bie Tiwei
Hi, I made some changes in my code, and it works, but doesn't work properly. There are obviously errors in my code, but I don't know to how correct them. I commented out the gbm_surface_lock_front_buffer(). There is something covered the triangle near the top edge of the monitor (screenshot is her

[Mesa-dev] How to use gbm_surface_lock_front_buffer() ?

2012-04-26 Thread Bie Tiwei
Hello, I downloaded and modified the code here (http://cgit.freedesktop.org/~krh/mesa-demos/tree/src/egl/opengl/eglkms.c?h=gbm-surface), in order to continuous display in the loop. But it doesn't work. The output message is: EGL_VERSION = 1.4 (DRI2) 1 handle=14, stride=7680 2 handle=17, stride=7

[Mesa-dev] [PATCH] i965: update draw offset after referencing new_mt

2012-04-26 Thread Yuanhan Liu
Here we created a new miptree thus we should update the draw offset based on the newly created miptree instead of the old one. This would fix the two webglc test cases on 965 platforms: conformance/limits/gl-max-texture-dimensions.html conformance/textures/texture-size.html NOTE: This is a ca

Re: [Mesa-dev] [PATCH 2/2] fbo: Only reuse depth/stencil attachments if the parameters match.

2012-04-26 Thread Chad Versace
On 04/24/2012 12:23 PM, Paul Berry wrote: > When the user attaches a texture to one of the depth/stencil > attachment points (GL_STENCIL_ATTACHMENT or GL_DEPTH_ATTACHMENT), we > check to see if the same texture is also attached to the other > attachment point, and if so, we re-use the existing text

Re: [Mesa-dev] [PATCH 1/2] i965: Fix mipmap offsets for HiZ and separate stencil buffers.

2012-04-26 Thread Chad Versace
A few comments below. On 04/24/2012 12:23 PM, Paul Berry wrote: > When rendering to a miplevel other than 0 within a color, depth, > stencil, or HiZ buffer, we need to tell the GPU to render to an offset > within the buffer, so that the data is written into the correct > miplevel. We do this usin

[Mesa-dev] [Bug 49088] MapsGL labels doen't render properly on nouveau, r600, i965

2012-04-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49088 --- Comment #3 from Iaroslav 2012-04-26 16:30:31 PDT --- Created attachment 60641 --> https://bugs.freedesktop.org/attachment.cgi?id=60641 hd6770+mesa-git Opera+hd6770+mesa-git looks fine, i see no problem. -- Configure bugmail: https://bugs

[Mesa-dev] [Bug 49088] MapsGL labels doen't render properly on nouveau, r600, i965

2012-04-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49088 Kenneth Graunke changed: What|Removed |Added Summary|MapsGL labels doen't render |MapsGL labels doen't render

[Mesa-dev] [Bug 49088] MapsGL labels doen't render properly on nouveau, r600

2012-04-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49088 Karl Tomlinson changed: What|Removed |Added Summary|MapsGL labels doen't render |MapsGL labels doen't render

[Mesa-dev] [Bug 49088] MapsGL labels doen't render properly on nouveau

2012-04-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49088 Karl Tomlinson changed: What|Removed |Added AssignedTo|nouveau@lists.freedesktop.o |mesa-dev@lists.freedesktop.

Re: [Mesa-dev] [PATCH 3/9] st/mesa: make user index buffers optional

2012-04-26 Thread Marek Olšák
On Thu, Apr 26, 2012 at 8:54 PM, Jose Fonseca wrote: > - Original Message - >> --- >>  src/mesa/state_tracker/st_context.c    |    4 +++- >>  src/mesa/state_tracker/st_context.h    |    1 + >>  src/mesa/state_tracker/st_draw.c       |    5 + >>  src/mesa/state_tracker/st_extensions.c |

Re: [Mesa-dev] [PATCH 3/9] st/mesa: make user index buffers optional

2012-04-26 Thread Jose Fonseca
- Original Message - > --- > src/mesa/state_tracker/st_context.c|4 +++- > src/mesa/state_tracker/st_context.h|1 + > src/mesa/state_tracker/st_draw.c |5 + > src/mesa/state_tracker/st_extensions.c |4 > 4 files changed, 13 insertions(+), 1 deletions(

[Mesa-dev] [PATCH 2/4] gallium/radeon: Fix potential address space loss in radeon_bomgr_force_va().

2012-04-26 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index e2d

[Mesa-dev] [PATCH 3/4] gallium/radeon: Merge holes when freeing virtual address space.

2012-04-26 Thread Michel Dänzer
From: Michel Dänzer Otherwise we'll likely end up with an ever increasing amount of ever smaller holes. Requires keeping the list ordered wrt offsets. Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 43 + 1 file changed, 36 insertions

[Mesa-dev] [PATCH 4/4] gallium/radeon: Delete uppermost virtual address space hole if it's at the top.

2012-04-26 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index feea957..f

[Mesa-dev] [PATCH 1/4] gallium/radeon: Fix losing holes when allocating virtual address space.

2012-04-26 Thread Michel Dänzer
From: Michel Dänzer If a hole exactly matches the allocated size plus alignment, we would fail to preserve the alignment as a hole. This would result in never being able to use the alignment area for an allocation again. Signed-off-by: Michel Dänzer --- src/gallium/winsys/radeon/drm/radeon_drm

Re: [Mesa-dev] [PATCH 2/2] glsl: Always copy the index when cloning a variable.

2012-04-26 Thread Ian Romanick
On 04/26/2012 08:26 AM, Kenneth Graunke wrote: On 04/25/2012 04:07 PM, Eric Anholt wrote: The index is also used for GL_ARB_blend_func_extended. Cloning in i965 was dropping a non-ARB_explicit_attrib_location index. --- src/glsl/ir_clone.cpp | 7 +-- 1 file changed, 1 insertion(+), 6 deletion

[Mesa-dev] [PATCH 1/2] i965: Add support for GL_ARB_draw_buffers_blend.

2012-04-26 Thread Eric Anholt
Tested with piglit fbo-draw-buffers-blend and intel oglconform. --- docs/GL3.txt |2 +- src/mesa/drivers/dri/i965/gen6_cc.c | 12 ++-- src/mesa/drivers/dri/intel/intel_extensions.c |4 3 files changed, 11 insertions(+), 7 deletions(

Re: [Mesa-dev] [PATCH 1/6] r600g: Add no_merge_inst_groups flag

2012-04-26 Thread Christian König
On 26.04.2012 16:40, Tom Stellard wrote: On Thu, Apr 26, 2012 at 08:46:52AM -0400, Tom Stellard wrote: Setting this flag will skip the merge_inst_groups() function. --- src/gallium/drivers/r600/r600_asm.c |3 ++- src/gallium/drivers/r600/r600_asm.h | 10 ++ 2 files changed, 12

Re: [Mesa-dev] [PATCH 1/6] r600g: Add no_merge_inst_groups flag

2012-04-26 Thread Tom Stellard
On Thu, Apr 26, 2012 at 08:46:52AM -0400, Tom Stellard wrote: > Setting this flag will skip the merge_inst_groups() function. > --- > src/gallium/drivers/r600/r600_asm.c |3 ++- > src/gallium/drivers/r600/r600_asm.h | 10 ++ > 2 files changed, 12 insertions(+), 1 deletions(-) > > di

[Mesa-dev] [PATCH 2/2] i965/Gen7: Work around GPU hangs due to misaligned depth coordinate offsets.

2012-04-26 Thread Paul Berry
In i965 Gen7, Mesa has for a long time used the "depth coordinate offset X/Y" settings (in 3DSTATE_DEPTH_BUFFER) to cause the GPU to render to miplevels other than 0. Unfortunately, this doesn't work, because these offsets must be aligned to multiples of 8, and miplevels in the depth buffer are on

[Mesa-dev] [PATCH 1/2] i965/Gen6: Work around GPU hangs due to misaligned depth coordinate offsets.

2012-04-26 Thread Paul Berry
In i965 Gen6, Mesa has for a long time used the "depth coordinate offset X/Y" settings (in 3DSTATE_DEPTH_BUFFER) to cause the GPU to render to miplevels other than 0. Unfortunately, this doesn't work, because these offsets must be aligned to multiples of 8, and miplevels in the depth buffer are on

[Mesa-dev] [PATCH 6/6] r600g: fixed the bug with VTX fetches in TEX clauses for evergreen

2012-04-26 Thread Tom Stellard
From: Adam Rak --- src/gallium/drivers/r600/r600_asm.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index d1a0a4a..d3c46df 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src

[Mesa-dev] [PATCH 5/6] winsys/radeon: Get max_pipes from the kernel

2012-04-26 Thread Tom Stellard
--- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 10 ++ src/gallium/winsys/radeon/drm/radeon_winsys.h |1 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.

[Mesa-dev] [PATCH 4/6] r600g: Add support for reading vertex fetches from bytestream

2012-04-26 Thread Tom Stellard
--- src/gallium/drivers/r600/r600_shader.c | 37 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 5dbc4dd..b901ba0 100644 --- a/src/gallium/drivers/r600/r600_sha

[Mesa-dev] [PATCH 3/6] r600g: Add support for reading native instructions from the LLVM bytestream

2012-04-26 Thread Tom Stellard
--- src/gallium/drivers/r600/r600_shader.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index b4953bb..5dbc4dd 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/galliu

[Mesa-dev] [PATCH 2/6] r600g: Add FC_NATIVE instruction

2012-04-26 Thread Tom Stellard
This is a pseudo instruction that enables the LLVM backend to encode instructions and pass it through r600_bytecode_build() --- src/gallium/drivers/r600/eg_asm.c |4 src/gallium/drivers/r600/r600_asm.c |7 +++ src/gallium/drivers/r600/r600_asm.h |9 + 3 files changed

[Mesa-dev] [PATCH 1/6] r600g: Add no_merge_inst_groups flag

2012-04-26 Thread Tom Stellard
Setting this flag will skip the merge_inst_groups() function. --- src/gallium/drivers/r600/r600_asm.c |3 ++- src/gallium/drivers/r600/r600_asm.h | 10 ++ 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r

[Mesa-dev] r600g: Compute implementation prerequisites

2012-04-26 Thread Tom Stellard
Hi, This patch series contains changes to r600g that are needed for the new compute implementation. -Tom ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 2/2] intel: set dri_format field for all images

2012-04-26 Thread Ander Conselvan de Oliveira
Only images created with intel_create_image() had the field properly set. Set it also on intel_dup_image(), intel_create_image_from_name() and intel_create_image_from_renderbuffer(). --- src/mesa/drivers/dri/intel/intel_screen.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletion

[Mesa-dev] [PATCH 1/2] intel: properly return the image format on intel_query_image

2012-04-26 Thread Ander Conselvan de Oliveira
--- src/mesa/drivers/dri/intel/intel_screen.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index e823792..ac21e96 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/me

Re: [Mesa-dev] [PATCH] glsl: Remove unused member mem_ctx from ir_dead_functions_visitor.

2012-04-26 Thread Kenneth Graunke
On 04/25/2012 11:12 PM, Vinson Lee wrote: Fix uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee --- src/glsl/opt_structure_splitting.cpp |1 - 1 file changed, 1 deletion(-) diff --git a/src/glsl/opt_structure_splitting.cpp b/src/glsl/opt_structure_splitt

Re: [Mesa-dev] [PATCH 2/2] glsl: Always copy the index when cloning a variable.

2012-04-26 Thread Kenneth Graunke
On 04/25/2012 04:07 PM, Eric Anholt wrote: The index is also used for GL_ARB_blend_func_extended. Cloning in i965 was dropping a non-ARB_explicit_attrib_location index. --- src/glsl/ir_clone.cpp |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/glsl/ir_clone.cpp

Re: [Mesa-dev] [PATCH 2/2] glsl: Always copy the index when cloning a variable.

2012-04-26 Thread Dave Airlie
On Thu, Apr 26, 2012 at 12:07 AM, Eric Anholt wrote: > The index is also used for GL_ARB_blend_func_extended.  Cloning in > i965 was dropping a non-ARB_explicit_attrib_location index. LGTM Reviewed-by: Dave Airlie Dave. > --- >  src/glsl/ir_clone.cpp |    7 +-- >  1 file changed, 1 insert