[Mesa-dev] [PATCH] vl: Initialize pipe_vertex_buffer.user_buffer fields.

2012-05-13 Thread Vinson Lee
Fix uninitialized scalar variable defects reported by Coverity. Signed-off-by: Vinson Lee --- src/gallium/auxiliary/vl/vl_vertex_buffers.c |4 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/vl/vl_vertex_buffers.c b/src/gallium/auxiliary/vl/vl_vertex_buffers.c index

[Mesa-dev] [PATCH] st/mesa: set PIPE_BIND_STREAM_OUTPUT for TFB target in st_bufferobj_data

2012-05-13 Thread Christoph Bumiller
--- src/mesa/state_tracker/st_cb_bufferobjects.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 6534a43..b47a2d8 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c

Re: [Mesa-dev] [PATCH 10/11] clover: Add function for building a clover::module for non-TGSI targets

2012-05-13 Thread Tom Stellard
On Sun, May 13, 2012 at 04:10:50PM +0200, Francisco Jerez wrote: > Tom Stellard writes: > > > On Sun, May 13, 2012 at 12:40:43AM +0200, Francisco Jerez wrote: > >>[...] > >> I can think of two different ways this could work (your solution would > >> be somewhere in between): > >> > >> - The r60

Re: [Mesa-dev] [PATCH 10/11] clover: Add function for building a clover::module for non-TGSI targets

2012-05-13 Thread Francisco Jerez
Tom Stellard writes: > On Sun, May 13, 2012 at 12:40:43AM +0200, Francisco Jerez wrote: >>[...] >> I can think of two different ways this could work (your solution would >> be somewhere in between): >> >> - The r600g LLVM back-end could support some well-defined output object >>format (e.g.

[Mesa-dev] [PATCH 4/4] i965: use cut index to handle primitive restart when possible

2012-05-13 Thread Jordan Justen
If the primitive restart index and the primitive type can be handled by the cut index feature, then use the hardware to handle the primitive restart feature. The VBO module's software handling of primitive restart is used as a fall back. Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i96

[Mesa-dev] [PATCH 3/4] i965: add flag to enable cut_index

2012-05-13 Thread Jordan Justen
When brw->prim_restart.enable_cut_index is set, the cut index will be enabled when uploading index_buffer commands. Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_context.c |1 + src/mesa/drivers/dri/i965/brw_context.h |1 + src/mesa/drivers/dri/i965/brw_defines.h

[Mesa-dev] [PATCH 2/4] i965: create code path to handle primitive restart in hardware

2012-05-13 Thread Jordan Justen
For newer hardware we disable the VBO module's software handling of primitive restart. We now handle primitive restarts in brw_handle_primitive_restart. The initial version of brw_handle_primitive_restart simply calls vbo_sw_primitive_restart, and therefore still uses the VBO module software primi

[Mesa-dev] [PATCH 1/4] dri/intel: enable primitive restart in software

2012-05-13 Thread Jordan Justen
Sets Const.PrimitiveRestartInSoftware to enable primitive restarts to be handled in software. Sets Extensions.NV_primitive_restart to declare driver support for the primitive restart extension. Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/intel/intel_extensions.c |3 +++ 1 file cha

[Mesa-dev] [PATCH 0/4] add i965 primitive restart hardware support where possible

2012-05-13 Thread Jordan Justen
Note: This changeset depends on my other changeset: "move software primitive restart into VBO module" v1: * Enable NV_primitive_restart for all hardware. (Software primitive restart is used where necessary) * If hardware supports cut index and cut index can handle the primitive resta

[Mesa-dev] [PATCH v2 6/6] state_tracker: remove sw_primitive_restart from st_context

2012-05-13 Thread Jordan Justen
The VBO module now can handle primitive restart in software if required. Signed-off-by: Jordan Justen --- src/mesa/state_tracker/st_context.h|1 - src/mesa/state_tracker/st_extensions.c |1 - 2 files changed, 2 deletions(-) diff --git a/src/mesa/state_tracker/st_context.h b/src/mes

[Mesa-dev] [PATCH v2 5/6] state_tracker: remove software handling of primitive restart

2012-05-13 Thread Jordan Justen
The VBO module now can handle primitive restart in software if required. Therefore this support is no londer required. Signed-off-by: Jordan Justen --- src/mesa/state_tracker/st_draw.c | 180 +- 1 file changed, 2 insertions(+), 178 deletions(-) diff --git a/

[Mesa-dev] [PATCH v2 4/6] state_tracker: set PrimitiveRestartInSoftware if needed

2012-05-13 Thread Jordan Justen
If the PIPE_CAP_PRIMITIVE_RESTART screen param is not set, then enable PrimitiveRestartInSoftware to enable software primitive restart support in the VBO module. Signed-off-by: Jordan Justen --- src/mesa/state_tracker/st_extensions.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/mes

[Mesa-dev] [PATCH v2 3/6] vbo: use software primitive restart in the VBO module

2012-05-13 Thread Jordan Justen
When PrimitiveRestartInSoftware is set, the VBO module will handle primitive restart scenarios before calling the vbo->draw_prims drawing function. Signed-off-by: Jordan Justen --- src/mesa/vbo/vbo_exec_array.c | 35 +-- 1 file changed, 29 insertions(+), 6 delet

[Mesa-dev] [PATCH v2 2/6] mesa: add PrimitiveRestartInSoftware to gl_context.Const

2012-05-13 Thread Jordan Justen
If set, then the VBO module will handle all primitive restart scenarios before calling the driver draw_prims. Software primitive restart support is disabled by default. Signed-off-by: Jordan Justen --- src/mesa/main/context.c |3 +++ src/mesa/main/mtypes.h |5 + 2 files changed, 8

[Mesa-dev] [PATCH v2 1/6] vbo: add software primitive restart support

2012-05-13 Thread Jordan Justen
vbo_sw_primitive_restart implements primitive restart in software by splitting primitive draws apart. This is based on similar support in mesa/state_tracker/st_draw.c. Signed-off-by: Jordan Justen --- src/mesa/SConscript |1 + src/mesa/sources.mak |1 +

[Mesa-dev] [PATCH v2 0/6] move software primitive restart into VBO module

2012-05-13 Thread Jordan Justen
v2: * change non-gallium drivers to not enable NV_primitive_restart by default. (this matches the current mesa behavior.) * gallium drivers will continue to use software primitivie restart where needed and will always declare the NV_primitive_restart extension. (this matches the current

[Mesa-dev] [Bug 49862] Build error due to `-Wcovered-switch-default ` in LLVM_CFLAGS unrecognized by gcc

2012-05-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49862 ojab changed: What|Removed |Added Attachment #61546|0 |1 is obsolete|

[Mesa-dev] [Bug 49862] New: Build error due to `-Wcovered-switch-default ` in LLVM_CFLAGS unrecognized by gcc

2012-05-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49862 Bug #: 49862 Summary: Build error due to `-Wcovered-switch-default ` in LLVM_CFLAGS unrecognized by gcc Classification: Unclassified Product: Mesa Version: git Platfor

[Mesa-dev] [PATCH] glsl: Initialize lower_vector_visitor::dont_lower_swz in constructor.

2012-05-13 Thread Vinson Lee
Fix uninitialized scalar field defect reported by Coverity. Signed-off-by: Vinson Lee --- src/glsl/lower_vector.cpp |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/lower_vector.cpp b/src/glsl/lower_vector.cpp index 57963a1..6f031d5 100644 --- a/src/glsl/lower_vect