mesa.git
16 years agogallium: silence warnings
Brian Paul [Wed, 3 Sep 2008 19:32:09 +0000 (13:32 -0600)]
gallium: silence warnings

16 years agocell: replace assert() with special spu ASSERT() macro
Brian Paul [Wed, 3 Sep 2008 19:31:51 +0000 (13:31 -0600)]
cell: replace assert() with special spu ASSERT() macro

16 years agocell: add pipe_texture_reference() call in cell_get_tex_surface()
Brian Paul [Wed, 3 Sep 2008 19:31:14 +0000 (13:31 -0600)]
cell: add pipe_texture_reference() call in cell_get_tex_surface()

16 years agocell: updated assertion
Brian Paul [Wed, 3 Sep 2008 19:30:46 +0000 (13:30 -0600)]
cell: updated assertion

16 years agocell: comments
Brian Paul [Wed, 3 Sep 2008 17:45:28 +0000 (11:45 -0600)]
cell: comments

16 years agogallium: do image clipping in xmesa_display_surface_tiled()
Brian Paul [Wed, 3 Sep 2008 17:44:14 +0000 (11:44 -0600)]
gallium: do image clipping in xmesa_display_surface_tiled()

16 years agocell: fix texture/surface allocation to allocate by multiple of tile size
Brian Paul [Wed, 3 Sep 2008 17:43:11 +0000 (11:43 -0600)]
cell: fix texture/surface allocation to allocate by multiple of tile size

This fixes the garbage blocks/pixels seen along the bottom of some windows.

16 years agocell: move misplaced assertions; put them after ximage is assigned.
Brian Paul [Wed, 3 Sep 2008 16:26:38 +0000 (10:26 -0600)]
cell: move misplaced assertions; put them after ximage is assigned.

16 years agoi915: Fix typo in intel_lock.c
Jakob Bornecrantz [Wed, 3 Sep 2008 13:01:19 +0000 (15:01 +0200)]
i915: Fix typo in intel_lock.c

16 years agocell: add -DDEBUG flag, fixes to Cell Makefiles
Brian Paul [Wed, 3 Sep 2008 15:31:36 +0000 (09:31 -0600)]
cell: add -DDEBUG flag, fixes to Cell Makefiles

16 years agoCell: added linux-cell-debug config
Brian Paul [Wed, 3 Sep 2008 15:08:19 +0000 (09:08 -0600)]
Cell: added linux-cell-debug config

linux-cell is now the optimized configuration.
Remove some Cell-specific stuff from winsys/xlib/Makefile.

16 years agocell: add missing cell_tex_surface_release()
Brian Paul [Wed, 27 Aug 2008 22:45:41 +0000 (16:45 -0600)]
cell: add missing cell_tex_surface_release()

16 years agogallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.
José Fonseca [Wed, 3 Sep 2008 02:48:05 +0000 (11:48 +0900)]
gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.

We want to use the pipe_buffer_* inlines everywhere, but a pipe context
is not always available nor is it needed.

16 years agodraw: Describe the steps in emit_load_R32G32B32A32.
José Fonseca [Wed, 3 Sep 2008 01:30:09 +0000 (10:30 +0900)]
draw: Describe the steps in emit_load_R32G32B32A32.

16 years agofix BUFFER_DEPTH/BUFFER_ACCUM mix-up
Brian Paul [Wed, 3 Sep 2008 00:10:34 +0000 (18:10 -0600)]
fix BUFFER_DEPTH/BUFFER_ACCUM mix-up

16 years agogallium: increase string buffer size to 16000 to avoid truncated output of long shaders
Brian Paul [Wed, 3 Sep 2008 00:05:09 +0000 (18:05 -0600)]
gallium: increase string buffer size to 16000 to avoid truncated output of long shaders

16 years agogallium: fix out of bounds array errors in SSE execution
Brian Paul [Wed, 3 Sep 2008 00:04:08 +0000 (18:04 -0600)]
gallium: fix out of bounds array errors in SSE execution

1. #define MAX_INPUTS/OUTPUTS/TEMPS/etc with better values.
2. Add assertions in aos_get_x86() to check register file indexes
3. Assert that constant regs haven't changed after running SSE code.

16 years agoi915: Fix typo in ws_dri_bufmgr.c
Jakob Bornecrantz [Tue, 2 Sep 2008 15:29:19 +0000 (17:29 +0200)]
i915: Fix typo in ws_dri_bufmgr.c

16 years agoi915: Small fixes for tiled textures
Jakob Bornecrantz [Tue, 2 Sep 2008 15:28:42 +0000 (17:28 +0200)]
i915: Small fixes for tiled textures

16 years agogallium: remove glthread.h file (not used)
Brian Paul [Mon, 1 Sep 2008 21:32:40 +0000 (15:32 -0600)]
gallium: remove glthread.h file (not used)

16 years agogallium: removed p_pointer.h (use util/u_pointer.h instead)
Brian Paul [Mon, 1 Sep 2008 21:31:18 +0000 (15:31 -0600)]
gallium: removed p_pointer.h (use util/u_pointer.h instead)

16 years agogallium: include u_pointer,h, not p_pointer.h
Brian Paul [Mon, 1 Sep 2008 21:30:26 +0000 (15:30 -0600)]
gallium: include u_pointer,h, not p_pointer.h

16 years agomesa: use CALLOC instead of MALLOC to fix valgrind warning
Brian Paul [Mon, 1 Sep 2008 19:10:23 +0000 (13:10 -0600)]
mesa: use CALLOC instead of MALLOC to fix valgrind warning

16 years agogallium: added st_bind/release_teximage() functions
Brian Paul [Mon, 1 Sep 2008 19:10:00 +0000 (13:10 -0600)]
gallium: added st_bind/release_teximage() functions

16 years agogallium: move st_texture_image() cast wrapper to header file
Brian Paul [Mon, 1 Sep 2008 19:09:31 +0000 (13:09 -0600)]
gallium: move st_texture_image() cast wrapper to header file

16 years agoegl: CreatePbufferSurface, Bind/ReleaseTexImage functions
Brian Paul [Mon, 1 Sep 2008 19:08:44 +0000 (13:08 -0600)]
egl: CreatePbufferSurface, Bind/ReleaseTexImage functions

16 years agoegl: additional error checking in _eglBind/ReleaseTexImage()
Brian Paul [Mon, 1 Sep 2008 19:08:12 +0000 (13:08 -0600)]
egl: additional error checking in _eglBind/ReleaseTexImage()

16 years agopipebuffer: Add missing break statement to cache lookup logic.
José Fonseca [Mon, 1 Sep 2008 17:51:06 +0000 (02:51 +0900)]
pipebuffer: Add missing break statement to cache lookup logic.

Second loop was never run. Spotted by Keith.

16 years agopipebuffer: Comment the slab code. Remove the freeSlabs list.
José Fonseca [Mon, 1 Sep 2008 17:16:43 +0000 (02:16 +0900)]
pipebuffer: Comment the slab code. Remove the freeSlabs list.

The freeSlabs list is not really needed as we free empty slabs immediately.
Time based cached is done separately.

16 years agoscons: Optimize for speed, not size, with MSVC.
José Fonseca [Mon, 1 Sep 2008 00:47:40 +0000 (09:47 +0900)]
scons: Optimize for speed, not size, with MSVC.

16 years agodraw: Put INLINES where appropriate.
José Fonseca [Sun, 31 Aug 2008 14:56:59 +0000 (23:56 +0900)]
draw: Put INLINES where appropriate.

In the hope of MSVC inline some more functions, but without much result.

16 years agoutil: make timed_winsys os independent
Keith Whitwell [Mon, 1 Sep 2008 13:24:07 +0000 (14:24 +0100)]
util: make timed_winsys os independent

16 years agoutil: add func to return time as uint64 microseconds
Keith Whitwell [Mon, 1 Sep 2008 13:23:47 +0000 (14:23 +0100)]
util: add func to return time as uint64 microseconds

16 years agoadd u_timed_winsys.[ch]
Keith Whitwell [Mon, 1 Sep 2008 13:11:12 +0000 (14:11 +0100)]
add u_timed_winsys.[ch]

16 years agoremove depend.bak in realclean
Keith Whitwell [Fri, 29 Aug 2008 10:17:24 +0000 (11:17 +0100)]
remove depend.bak in realclean

16 years agoRemove CVS keywords.
José Fonseca [Sun, 31 Aug 2008 08:43:20 +0000 (17:43 +0900)]
Remove CVS keywords.

Please remove CVS keywords when importing third-party code into the git
repository.

16 years agoutil: Fix compiler errors in the release build of C++ sources.
José Fonseca [Sun, 31 Aug 2008 08:40:08 +0000 (17:40 +0900)]
util: Fix compiler errors in the release build of C++ sources.

16 years agogallium: winsys/common no longer exists
José Fonseca [Fri, 29 Aug 2008 01:39:02 +0000 (10:39 +0900)]
gallium: winsys/common no longer exists

16 years agoAdded command line option for Scons to select which version of MSVS to use. Version...
Jonathan White [Fri, 29 Aug 2008 17:30:32 +0000 (11:30 -0600)]
Added command line option for Scons to select which version of MSVS to use.   Versions 7.1, 8.0 and 9.0 are allowed.   Usage is scons MSVS_VERSION=8.0.

16 years agomesa: added test for very long fixed-function vertex programs
Brian Paul [Thu, 28 Aug 2008 21:22:44 +0000 (15:22 -0600)]
mesa: added test for very long fixed-function vertex programs

16 years agomesa: remove debug code
Brian Paul [Thu, 28 Aug 2008 21:21:44 +0000 (15:21 -0600)]
mesa: remove debug code

16 years agomesa: dynamically grow the fixed function vertex program as needed
Brian Paul [Thu, 28 Aug 2008 21:11:04 +0000 (15:11 -0600)]
mesa: dynamically grow the fixed function vertex program as needed

Don't use a fixed-size array.  Saves memory in most cases and avoids
potential overflow for long programs.

16 years agogallium: change the conditional which tests for combined Z+stencil buffers
Brian Paul [Thu, 28 Aug 2008 20:18:20 +0000 (14:18 -0600)]
gallium: change the conditional which tests for combined Z+stencil buffers

The caller might be requesting 16-bit Z + 8-bit stencil be placed in a
PIPE_FORMAT_S8Z24 or PIPE_FORMAT_Z24S8 buffer.

16 years agomesa: bump MAX_INSN to 300
Brian Paul [Thu, 28 Aug 2008 14:38:27 +0000 (08:38 -0600)]
mesa: bump MAX_INSN to 300

16 years agopipebuffer: Fix/add detail to the under- overflow report messages.
José Fonseca [Thu, 28 Aug 2008 13:03:42 +0000 (22:03 +0900)]
pipebuffer: Fix/add detail to the under- overflow report messages.

16 years agopipebuffer: Check buffer over- & underflows when mapping/unmapping too.
José Fonseca [Thu, 28 Aug 2008 12:06:06 +0000 (21:06 +0900)]
pipebuffer: Check buffer over- & underflows when mapping/unmapping too.

16 years agoegl: free display ext data in xdri_eglTerminate().
Brian Paul [Wed, 27 Aug 2008 22:03:03 +0000 (16:03 -0600)]
egl: free display ext data in xdri_eglTerminate().

16 years agogallium: s/PIPE_OS_WINDOWS/PIPE_SUBSYSTEM_WINDOWS_USER/ in p_thread.
José Fonseca [Wed, 27 Aug 2008 21:53:57 +0000 (06:53 +0900)]
gallium: s/PIPE_OS_WINDOWS/PIPE_SUBSYSTEM_WINDOWS_USER/ in p_thread.

PIPE_OS_WINDOWS is an umbrella for all Windows variants and subsystems,
PIPE_SUBSYSTEM_WINDOWS_USER is just for user-space windows (e.g., OpenGL),
and the thread primitives currently included in p_thread only support the
later.

16 years agogallium: better support for user-space interleaved arrays
Brian Paul [Wed, 27 Aug 2008 20:42:50 +0000 (14:42 -0600)]
gallium: better support for user-space interleaved arrays

Basically, set up one user-space wrapper for all arrays instead of
the individual arrays.

16 years agogallium: in st_draw_vbo() try to detect interleaved arrays in a single VBO.
Brian Paul [Wed, 27 Aug 2008 19:20:10 +0000 (13:20 -0600)]
gallium: in st_draw_vbo() try to detect interleaved arrays in a single VBO.

16 years agogallium: remove old assertions
Brian Paul [Wed, 27 Aug 2008 17:30:14 +0000 (11:30 -0600)]
gallium: remove old assertions

16 years agogallium: call st_finish() in XMesaFlush()
Brian Paul [Wed, 27 Aug 2008 17:29:26 +0000 (11:29 -0600)]
gallium: call st_finish() in XMesaFlush()

16 years agogallium: s/_glthread_Cond/unsigned/ in p_thread.h
Brian Paul [Wed, 27 Aug 2008 14:46:29 +0000 (08:46 -0600)]
gallium: s/_glthread_Cond/unsigned/ in p_thread.h

16 years agogallium: Add dummy defines of pipe_condvar for Windows to make it compile.
Michal Krol [Wed, 27 Aug 2008 09:06:08 +0000 (11:06 +0200)]
gallium: Add dummy defines of pipe_condvar for Windows to make it compile.

16 years agogallium: thread wrapper clean-up
Brian Paul [Tue, 26 Aug 2008 22:35:12 +0000 (16:35 -0600)]
gallium: thread wrapper clean-up

In p_thread.h replace _glthread_* functions with new pipe_* functions.
Remove other old cruft.

16 years agocell: use SDK 3.0 by default
Brian Paul [Tue, 26 Aug 2008 20:09:28 +0000 (14:09 -0600)]
cell: use SDK 3.0 by default

16 years agodraw: attempt atomic submit of large drawelements calls
Keith Whitwell [Mon, 25 Aug 2008 10:19:24 +0000 (11:19 +0100)]
draw: attempt atomic submit of large drawelements calls

16 years agovbo: seed initial max_element value with a more likely candidate
Keith Whitwell [Mon, 25 Aug 2008 09:59:45 +0000 (10:59 +0100)]
vbo: seed initial max_element value with a more likely candidate

16 years agocell: asst fixes to get driver building/running again.
Brian [Mon, 25 Aug 2008 17:31:59 +0000 (11:31 -0600)]
cell: asst fixes to get driver building/running again.

Note that SPU vertex transformation is disabled at this time.

16 years agogallium: added const qualifiers on some draw funcs
Brian [Mon, 25 Aug 2008 17:30:57 +0000 (11:30 -0600)]
gallium: added const qualifiers on some draw funcs

16 years agogallium: include p_debug.h for non-HAVE_POSIX_MEMALIGN
Brian [Mon, 25 Aug 2008 17:30:20 +0000 (11:30 -0600)]
gallium: include p_debug.h for non-HAVE_POSIX_MEMALIGN

16 years agogallium: include <sched.h> on linux to get sched_yield() proto
Brian [Mon, 25 Aug 2008 17:29:39 +0000 (11:29 -0600)]
gallium: include <sched.h> on linux to get sched_yield() proto

16 years agogallium: include u_math.h
Brian Paul [Mon, 25 Aug 2008 14:32:50 +0000 (08:32 -0600)]
gallium: include u_math.h

16 years agogallium: Add missing includes.
Michal Krol [Mon, 25 Aug 2008 08:42:00 +0000 (10:42 +0200)]
gallium: Add missing includes.

16 years agogallium: include u_memory.h, u_math.h
Brian [Mon, 25 Aug 2008 00:10:50 +0000 (18:10 -0600)]
gallium: include u_memory.h, u_math.h

16 years agogallium: remove old tile util files
Brian Paul [Sun, 24 Aug 2008 23:49:11 +0000 (17:49 -0600)]
gallium: remove old tile util files

16 years agogallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.h
Brian Paul [Sun, 24 Aug 2008 23:48:55 +0000 (17:48 -0600)]
gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.h

Also, rename p_tile.[ch] to u_tile.[ch]

16 years agotrace: Include u_string.h.
Michal Krol [Sat, 23 Aug 2008 10:31:50 +0000 (12:31 +0200)]
trace: Include u_string.h.

16 years agoutil: Silence compiler warnings on Windows.
Michal Krol [Sat, 23 Aug 2008 10:31:16 +0000 (12:31 +0200)]
util: Silence compiler warnings on Windows.

16 years agoutil: Include missing u_rect.h.
Michal Krol [Sat, 23 Aug 2008 10:30:39 +0000 (12:30 +0200)]
util: Include missing u_rect.h.

16 years agogallium: rename p_util.c to u_rect.c (it only contains rect copy/fill helpers)
Brian Paul [Fri, 22 Aug 2008 22:22:35 +0000 (16:22 -0600)]
gallium: rename p_util.c to u_rect.c (it only contains rect copy/fill helpers)

16 years agogallium: move pipe_copy_rect(), pipe_fill_rect() protos into new u_rect.h header
Brian Paul [Fri, 22 Aug 2008 22:19:22 +0000 (16:19 -0600)]
gallium: move pipe_copy_rect(), pipe_fill_rect() protos into new u_rect.h header

16 years agogallium: replace align_int() with align()
Brian Paul [Fri, 22 Aug 2008 22:09:37 +0000 (16:09 -0600)]
gallium: replace align_int() with align()

The two functions are identical.  Removed align_int() from p_util.h

16 years agogallium: insert __cplusplus/extern wrappings
Brian Paul [Fri, 22 Aug 2008 21:53:28 +0000 (15:53 -0600)]
gallium: insert __cplusplus/extern wrappings

16 years agogallium: move math macros from p_util.h to u_math.h
Brian Paul [Fri, 22 Aug 2008 21:51:38 +0000 (15:51 -0600)]
gallium: move math macros from p_util.h to u_math.h

More can be done...

16 years agogallium: stop using ifloor(), FABSF(), etc
Brian Paul [Fri, 22 Aug 2008 21:51:02 +0000 (15:51 -0600)]
gallium: stop using ifloor(), FABSF(), etc

16 years agogallium: stop using FABSF() macro
Brian Paul [Fri, 22 Aug 2008 21:49:36 +0000 (15:49 -0600)]
gallium: stop using FABSF() macro

16 years agogallium: replace LOG2() macro with util_fast_log2() inline func
Brian Paul [Fri, 22 Aug 2008 21:25:21 +0000 (15:25 -0600)]
gallium: replace LOG2() macro with util_fast_log2() inline func

16 years agogallium: use new util_fast_exp2(), _log2(), pow() functions
Brian Paul [Fri, 22 Aug 2008 21:16:43 +0000 (15:16 -0600)]
gallium: use new util_fast_exp2(), _log2(), pow() functions

New code surrounded with #if FAST_MATH to allow comparing against original
code if we need to debug.

16 years agomesa: glsl: regenerated file
Brian Paul [Fri, 22 Aug 2008 21:14:47 +0000 (15:14 -0600)]
mesa: glsl: regenerated file

16 years agomesa: glsl: implement exp() functions in terms of EXP asm instruction, not pow
Brian Paul [Fri, 22 Aug 2008 21:14:36 +0000 (15:14 -0600)]
mesa: glsl: implement exp() functions in terms of EXP asm instruction, not pow

16 years agogallium: new u_math.[ch] files for math functions
Brian Paul [Fri, 22 Aug 2008 21:13:47 +0000 (15:13 -0600)]
gallium: new u_math.[ch] files for math functions

So far, optimized/low-precision versions of exp(), exp2(), log2(), pow().

16 years agopython/retrace: Interpret texture/surfaces destructions.
José Fonseca [Fri, 22 Aug 2008 02:14:51 +0000 (03:14 +0100)]
python/retrace: Interpret texture/surfaces destructions.

16 years agotrace: Don't trace texture/surfaces releases, only destructions.
José Fonseca [Fri, 22 Aug 2008 02:14:24 +0000 (03:14 +0100)]
trace: Don't trace texture/surfaces releases, only destructions.

16 years agotrace: Use a 4 hexadecimal digit suffix.
José Fonseca [Fri, 22 Aug 2008 02:13:27 +0000 (03:13 +0100)]
trace: Use a 4 hexadecimal digit suffix.

16 years agopython/retrace: Process the trace call-by-call (instead of reading everything into...
José Fonseca [Fri, 22 Aug 2008 00:23:48 +0000 (01:23 +0100)]
python/retrace: Process the trace call-by-call (instead of reading everything into memory).

16 years agopython/retrace: Support gziped traces.
José Fonseca [Thu, 21 Aug 2008 17:45:43 +0000 (18:45 +0100)]
python/retrace: Support gziped traces.

16 years agotrace: Hack to detect writes to user buffers.
José Fonseca [Thu, 21 Aug 2008 12:57:59 +0000 (13:57 +0100)]
trace: Hack to detect writes to user buffers.

It often happens that new data is written directly to the user buffers
without mapping/unmapping. This hack marks user buffers and dumps them
before passing them to pipe context.

16 years agotrace: Split the output stream on windows.
José Fonseca [Thu, 21 Aug 2008 12:39:52 +0000 (13:39 +0100)]
trace: Split the output stream on windows.

Because windows limits the ammount of memory that can be mapped.

16 years agoscons: Build the trace pipe driver by default.
José Fonseca [Thu, 21 Aug 2008 00:41:20 +0000 (01:41 +0100)]
scons: Build the trace pipe driver by default.

16 years agomesa: glsl: fix a swizzle bug in storage_to_src_reg()
Brian Paul [Wed, 20 Aug 2008 20:40:02 +0000 (14:40 -0600)]
mesa: glsl: fix a swizzle bug in storage_to_src_reg()

Need to remove the 'nil' components before swizzling a swizzle

16 years agomesa: glsl: add check for exceeding max number of constants/uniforms
Brian Paul [Wed, 20 Aug 2008 20:39:10 +0000 (14:39 -0600)]
mesa: glsl: add check for exceeding max number of constants/uniforms

16 years agomesa: glsl: regenerated file
Brian Paul [Wed, 20 Aug 2008 17:07:25 +0000 (11:07 -0600)]
mesa: glsl: regenerated file

16 years agomesa: glsl: better implementation of ftransform()
Brian Paul [Wed, 20 Aug 2008 17:06:53 +0000 (11:06 -0600)]
mesa: glsl: better implementation of ftransform()

16 years agogallium: test for and cull prims with inf/nan vertices in sp_setup.c code.
Brian Paul [Wed, 20 Aug 2008 16:31:38 +0000 (10:31 -0600)]
gallium: test for and cull prims with inf/nan vertices in sp_setup.c code.

16 years agogallium: fix typo in LINE() macro (replace i+1 with i1 var)
Brian Paul [Wed, 20 Aug 2008 16:27:30 +0000 (10:27 -0600)]
gallium: fix typo in LINE() macro (replace i+1 with i1 var)

We were sometimes referencing an invalid vertex.
Fixes progs/trivial/line-clip.c test among others.

16 years agopython/retrace: Retrace draw_elements and draw_range_elements.
José Fonseca [Wed, 20 Aug 2008 13:03:12 +0000 (14:03 +0100)]
python/retrace: Retrace draw_elements and draw_range_elements.

16 years agopython: bindings for draw_range_elements.
José Fonseca [Wed, 20 Aug 2008 13:02:43 +0000 (14:02 +0100)]
python: bindings for draw_range_elements.

16 years agomesa: allow for extra per-context init
Brian Paul [Wed, 20 Aug 2008 00:14:15 +0000 (18:14 -0600)]
mesa: allow for extra per-context init

16 years agogallium: fix do_flip bug in sp_surface_copy()
Brian Paul [Tue, 19 Aug 2008 23:41:34 +0000 (17:41 -0600)]
gallium: fix do_flip bug in sp_surface_copy()

Surfaces are always in y=0=top raster order so the caller should invert
the Y coordinate if needed; don't do it in sp_surface_copy().

Fixes a glCopyTexture regression.