mesa.git
15 years agotrivial: add more vp tests
Keith Whitwell [Tue, 7 Oct 2008 18:12:26 +0000 (19:12 +0100)]
trivial: add more vp tests

15 years agomesa: replace GLuint with GLbitfield to be clearer about usage
Brian Paul [Tue, 7 Oct 2008 17:22:47 +0000 (11:22 -0600)]
mesa: replace GLuint with GLbitfield to be clearer about usage

Also, fix up some comments to be doxygen style.

15 years agodraw: don't assume output buffer pointer is aligned
Keith Whitwell [Tue, 7 Oct 2008 15:44:24 +0000 (16:44 +0100)]
draw: don't assume output buffer pointer is aligned

15 years agomesa: update state after binding vertex list in dlist path
Keith Whitwell [Tue, 7 Oct 2008 15:33:17 +0000 (16:33 +0100)]
mesa: update state after binding vertex list in dlist path

15 years agotrivial: exercise vertprog sligtly
Keith Whitwell [Tue, 7 Oct 2008 12:09:05 +0000 (13:09 +0100)]
trivial: exercise vertprog sligtly

15 years agomesa: protect against segfault in get_fp_input_mask()
Keith Whitwell [Tue, 7 Oct 2008 11:31:31 +0000 (12:31 +0100)]
mesa: protect against segfault in get_fp_input_mask()

15 years agodraw: add switch for drivers to force vertex data passthrough
Keith Whitwell [Mon, 6 Oct 2008 11:22:55 +0000 (12:22 +0100)]
draw: add switch for drivers to force vertex data passthrough

15 years agomesa: remove old assertion
Brian Paul [Tue, 7 Oct 2008 14:30:29 +0000 (08:30 -0600)]
mesa: remove old assertion

15 years agogallium: replace assertion with conditional/recovery code
Brian [Tue, 7 Oct 2008 00:31:56 +0000 (18:31 -0600)]
gallium: replace assertion with conditional/recovery code

The assertion failed when we ran out of exec memory.
Found with conform texcombine test.

15 years agomesa: fix convolve/convolution mix-ups
Brian [Mon, 6 Oct 2008 23:10:45 +0000 (17:10 -0600)]
mesa: fix convolve/convolution mix-ups

15 years agomesa: add missing GLcontext param to _mesa_delete_query().
Brian Paul [Mon, 6 Oct 2008 15:27:31 +0000 (09:27 -0600)]
mesa: add missing GLcontext param to _mesa_delete_query().

Fixes vtk crash and others.

15 years agodraw: Fix compiler errors on Windows.
Michal Krol [Mon, 6 Oct 2008 11:23:56 +0000 (13:23 +0200)]
draw: Fix compiler errors on Windows.

15 years agortasm: fix debug build
Keith Whitwell [Mon, 6 Oct 2008 10:54:22 +0000 (11:54 +0100)]
rtasm: fix debug build

15 years agomake draw's vertex_info struct smaller/quicker to compare with memcmp()
Keith Whitwell [Wed, 10 Sep 2008 10:39:43 +0000 (11:39 +0100)]
make draw's vertex_info struct smaller/quicker to compare with memcmp()

15 years agomesa: handle vertex program enabled case also in texenvprogram.c
Keith Whitwell [Sat, 4 Oct 2008 11:41:56 +0000 (12:41 +0100)]
mesa: handle vertex program enabled case also in texenvprogram.c

15 years agomesa: avoid generating constant vertex attributes in fixedfunc programs
Keith Whitwell [Fri, 3 Oct 2008 16:30:59 +0000 (17:30 +0100)]
mesa: avoid generating constant vertex attributes in fixedfunc programs

Keep track of enabled/active vertex attributes.
Keep track of potential vertex program outputs.

When generating fragment program, replace references to fragment attributes
which are effectively non-varying and non-computed passthrough attributes with
references to the new CURRENT_ATTRIB tracked state value.

Only downside is slight ugliness in VBO code where we need to validate state
twice in succession.

15 years agoMesa: short-circuit case when looking up the same program twice in cache
Keith Whitwell [Fri, 3 Oct 2008 15:46:48 +0000 (16:46 +0100)]
Mesa: short-circuit case when looking up the same program twice in cache

15 years agomesa: add new internal state for tracking current vertex attribs
Keith Whitwell [Fri, 3 Oct 2008 12:55:40 +0000 (13:55 +0100)]
mesa: add new internal state for tracking current vertex attribs

15 years agomesa: add missing state dependencies for various tracked constants
Keith Whitwell [Fri, 3 Oct 2008 12:53:07 +0000 (13:53 +0100)]
mesa: add missing state dependencies for various tracked constants

15 years agomesa: shrink texenvprogram state key struct
Keith Whitwell [Fri, 3 Oct 2008 12:51:56 +0000 (13:51 +0100)]
mesa: shrink texenvprogram state key struct

15 years agortasm: add sse_movntps
Keith Whitwell [Fri, 3 Oct 2008 12:50:34 +0000 (13:50 +0100)]
rtasm: add sse_movntps

15 years agodraw: modify prefetching slightly
Keith Whitwell [Thu, 2 Oct 2008 11:53:11 +0000 (12:53 +0100)]
draw: modify prefetching slightly

15 years agodraw: don't keep refetching constant inputs
Keith Whitwell [Wed, 1 Oct 2008 17:40:01 +0000 (18:40 +0100)]
draw: don't keep refetching constant inputs

15 years agortasm: add prefetch instructions
Keith Whitwell [Thu, 2 Oct 2008 11:46:01 +0000 (12:46 +0100)]
rtasm: add prefetch instructions

15 years agodraw: add streamlined paths for fetching linear verts
Keith Whitwell [Wed, 1 Oct 2008 12:34:38 +0000 (13:34 +0100)]
draw: add streamlined paths for fetching linear verts

15 years agomesa: Fix compiler warnings on Windows.
Michal Krol [Wed, 1 Oct 2008 17:36:04 +0000 (19:36 +0200)]
mesa: Fix compiler warnings on Windows.

15 years agoGallivm: add slt. glxgears should be running, except it isn't.
Stephane Marchesin [Tue, 30 Sep 2008 22:00:58 +0000 (00:00 +0200)]
Gallivm: add slt. glxgears should be running, except it isn't.

15 years agoGallivm: port to llvm 2.4.
Stephane Marchesin [Tue, 30 Sep 2008 18:50:49 +0000 (20:50 +0200)]
Gallivm: port to llvm 2.4.

15 years agoGallivm: fix off-by-one.
Stephane Marchesin [Sun, 28 Sep 2008 21:18:55 +0000 (23:18 +0200)]
Gallivm: fix off-by-one.

15 years agoGallivm: need to link with libstdc++ for llvm.
Stephane Marchesin [Sun, 28 Sep 2008 19:45:48 +0000 (21:45 +0200)]
Gallivm: need to link with libstdc++ for llvm.

15 years agoGallivm: more instructions.
Stephane Marchesin [Sun, 28 Sep 2008 17:48:26 +0000 (19:48 +0200)]
Gallivm: more instructions.

15 years agoGallivm: make it compile again, add some opcodes.
Stephane Marchesin [Sun, 28 Sep 2008 16:33:23 +0000 (18:33 +0200)]
Gallivm: make it compile again, add some opcodes.

15 years agomesa: fix temp register allocation problems.
Brian Paul [Fri, 26 Sep 2008 17:18:06 +0000 (11:18 -0600)]
mesa: fix temp register allocation problems.

Complex texcombine modes were running out of registers (>32 registers for 8 tex units).

15 years agoegl: check for null ptr/name
Brian Paul [Fri, 26 Sep 2008 17:17:09 +0000 (11:17 -0600)]
egl: check for null ptr/name

15 years agoegl: remove space after -L flag
Brian Paul [Fri, 26 Sep 2008 17:16:44 +0000 (11:16 -0600)]
egl: remove space after -L flag

15 years agogallium: rename tgsi_translate_mesa_program() to st_translate_mesa_program()
Brian Paul [Fri, 19 Sep 2008 15:25:32 +0000 (09:25 -0600)]
gallium: rename tgsi_translate_mesa_program() to st_translate_mesa_program()

15 years agomesa: add some braces
Brian Paul [Fri, 19 Sep 2008 00:31:47 +0000 (18:31 -0600)]
mesa: add some braces

15 years agomesa: fix/simplify initialization of vertex/fragment program limits
Brian Paul [Fri, 26 Sep 2008 01:22:29 +0000 (19:22 -0600)]
mesa: fix/simplify initialization of vertex/fragment program limits

Defaults for program length, num ALU instructions, num indirections, etc.
basically indicate no limit for software rendering.  Driver should override
as needed.

15 years agomesa: increase MAX_INSTRUCTIONS
Brian Paul [Fri, 26 Sep 2008 00:40:16 +0000 (18:40 -0600)]
mesa: increase MAX_INSTRUCTIONS

15 years agomesa: fix swizzle failure, fix typo
Brian Paul [Fri, 26 Sep 2008 00:27:22 +0000 (18:27 -0600)]
mesa: fix swizzle failure, fix typo

15 years agomesa: fix default buffer object access value
Brian Paul [Thu, 25 Sep 2008 17:46:27 +0000 (11:46 -0600)]
mesa: fix default buffer object access value

15 years agomesa: Fix compiler error.
Michal Krol [Fri, 19 Sep 2008 17:11:37 +0000 (19:11 +0200)]
mesa: Fix compiler error.

15 years agomesa: Fix arb parse constants
Brian Paul [Fri, 19 Sep 2008 11:04:52 +0000 (13:04 +0200)]
mesa: Fix arb parse constants

15 years agomesa: Update ignores a bit
Jakob Bornecrantz [Fri, 19 Sep 2008 10:43:02 +0000 (12:43 +0200)]
mesa: Update ignores a bit

15 years agodestroy window on exit
Brian Paul [Thu, 18 Sep 2008 21:36:17 +0000 (15:36 -0600)]
destroy window on exit

15 years agogallium: if we run out of memory in st_TexImage, flush and try again.
Brian Paul [Thu, 18 Sep 2008 21:35:56 +0000 (15:35 -0600)]
gallium: if we run out of memory in st_TexImage, flush and try again.

If the driver buffers a scene flushing should release old textures and
make space for new ones.  Fixes problem with texdown.c test.

15 years agotgsi: Build tgsi_text with make
Jakob Bornecrantz [Thu, 18 Sep 2008 14:28:16 +0000 (16:28 +0200)]
tgsi: Build tgsi_text with make

15 years agoutil: A few more memory debugging checks.
José Fonseca [Thu, 18 Sep 2008 14:00:18 +0000 (23:00 +0900)]
util: A few more memory debugging checks.

15 years agoutil: Add missing p_debug.h include.
José Fonseca [Thu, 18 Sep 2008 13:24:45 +0000 (22:24 +0900)]
util: Add missing p_debug.h include.

15 years agogallium: fix surface object memory leak in cso module
Brian Paul [Thu, 18 Sep 2008 14:10:34 +0000 (08:10 -0600)]
gallium: fix surface object memory leak in cso module

15 years agotgsi: Make tgsi dumps look more like mesa shader dumps.
Jakob Bornecrantz [Thu, 18 Sep 2008 12:48:45 +0000 (14:48 +0200)]
tgsi: Make tgsi dumps look more like mesa shader dumps.

15 years agoprogs/fp: Add a bit of local variable testing to fp-tri
Jakob Bornecrantz [Thu, 18 Sep 2008 12:14:56 +0000 (14:14 +0200)]
progs/fp: Add a bit of local variable testing to fp-tri

15 years agopipebuffer: New callback to flush all temporary-held buffers.
José Fonseca [Thu, 18 Sep 2008 02:10:09 +0000 (11:10 +0900)]
pipebuffer: New callback to flush all temporary-held buffers.

Used mostly to aid debugging memory issues or to clean up resources when
the drivers are long lived.

15 years agogallium: fix wide point / point coord semantic info (generic, not fog)
Brian Paul [Wed, 17 Sep 2008 22:51:53 +0000 (16:51 -0600)]
gallium: fix wide point / point coord semantic info (generic, not fog)

15 years agogallium: fix fog vs. pointcoord attribute handling in mesa->TGSI conversion
Brian Paul [Wed, 17 Sep 2008 22:49:26 +0000 (16:49 -0600)]
gallium: fix fog vs. pointcoord attribute handling in mesa->TGSI conversion

15 years agomesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord
Brian Paul [Wed, 17 Sep 2008 22:48:13 +0000 (16:48 -0600)]
mesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord

15 years agoegl: print multisample info
Brian Paul [Wed, 17 Sep 2008 21:29:59 +0000 (15:29 -0600)]
egl: print multisample info

15 years agogallium: clean-up/fix msaa override in state tracker
Brian Paul [Wed, 17 Sep 2008 20:32:33 +0000 (14:32 -0600)]
gallium: clean-up/fix msaa override in state tracker

15 years agogallium: fix tgsi sanity checker with respect to END.
Brian Paul [Wed, 17 Sep 2008 19:14:57 +0000 (13:14 -0600)]
gallium: fix tgsi sanity checker with respect to END.

Subroutine code may be found after the END instruction so it's not always
the last instruction.
At least check for presence of exactly one END instruction though.

15 years agomesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()
Brian Paul [Wed, 17 Sep 2008 19:13:02 +0000 (13:13 -0600)]
mesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()

15 years agogallium: include prog_print.h to silence warning
Brian Paul [Wed, 17 Sep 2008 16:25:18 +0000 (10:25 -0600)]
gallium: include prog_print.h to silence warning

15 years agogallium: need to finish, not flush, in st_copy_texsubimage()
Brian Paul [Wed, 17 Sep 2008 16:22:38 +0000 (10:22 -0600)]
gallium: need to finish, not flush, in st_copy_texsubimage()

15 years agogallium: new assertion on surface->texture
Brian Paul [Wed, 17 Sep 2008 16:20:49 +0000 (10:20 -0600)]
gallium: new assertion on surface->texture

15 years agotgsi: Add a ugly fix for CONSTANT problems
Jakob Bornecrantz [Wed, 17 Sep 2008 16:11:35 +0000 (18:11 +0200)]
tgsi: Add a ugly fix for CONSTANT problems

15 years agotgsi: More debug printing on sanity check error
Jakob Bornecrantz [Wed, 17 Sep 2008 16:08:03 +0000 (18:08 +0200)]
tgsi: More debug printing on sanity check error

15 years agogallium: fix lack of surface reference counting in cso_set/save/restore_framebuffer()
Brian Paul [Wed, 17 Sep 2008 15:47:51 +0000 (09:47 -0600)]
gallium: fix lack of surface reference counting in cso_set/save/restore_framebuffer()

Fixes asst problems with FBO / render to texture.

15 years agomesa: fix bug in previous changes to _slang_resolve_attributes()
Brian Paul [Wed, 17 Sep 2008 15:05:04 +0000 (09:05 -0600)]
mesa: fix bug in previous changes to _slang_resolve_attributes()

15 years agomesa: rework GLSL vertex attribute binding
Brian Paul [Tue, 16 Sep 2008 21:50:44 +0000 (15:50 -0600)]
mesa: rework GLSL vertex attribute binding

Calls to glBindAttribLocation() should not take effect until the next time
that glLinkProgram() is called.
gl_shader_program::Attributes now just contains user-defined bindings.
gl_shader_program::VertexProgram->Attributes contains the actual/final bindings.

15 years agogallium: fix glTexImage(width=height=depth=0) case
Brian Paul [Tue, 16 Sep 2008 17:59:24 +0000 (11:59 -0600)]
gallium: fix glTexImage(width=height=depth=0) case

Free old teximage/level data, then stop.

15 years agomesa: fix display list regression (check if save->prim_count > 0 in vbo_save_EndList())
Brian Paul [Tue, 16 Sep 2008 19:23:01 +0000 (13:23 -0600)]
mesa: fix display list regression (check if save->prim_count > 0 in vbo_save_EndList())

15 years agogallium: fix info entries for KIL, KILP
Brian Paul [Tue, 16 Sep 2008 18:52:19 +0000 (12:52 -0600)]
gallium: fix info entries for KIL, KILP

KIL takes 1 src register.  KILP uses no registers (uses cond codes).

15 years agomesa: fix bug in get_uniform_rows_cols(): sometimes returned too many rows
Brian Paul [Tue, 16 Sep 2008 14:55:54 +0000 (08:55 -0600)]
mesa: fix bug in get_uniform_rows_cols(): sometimes returned too many rows

15 years agogallium: move _vbo_DestroyContext() call
Brian Paul [Tue, 16 Sep 2008 14:51:28 +0000 (08:51 -0600)]
gallium: move _vbo_DestroyContext() call

Call it before freeing core Mesa state to avoid references to freed buffer objects.

15 years agomesa: protect against double-free in _vbo_DestroyContext()
Brian Paul [Tue, 16 Sep 2008 14:49:43 +0000 (08:49 -0600)]
mesa: protect against double-free in _vbo_DestroyContext()

15 years agomesa: State tracker now checks for faulty shaders on debug
Jakob Bornecrantz [Tue, 16 Sep 2008 14:17:46 +0000 (16:17 +0200)]
mesa: State tracker now checks for faulty shaders on debug

15 years agotgsi: Make tgsi_sanity.c compile with make
Jakob Bornecrantz [Tue, 16 Sep 2008 14:16:54 +0000 (16:16 +0200)]
tgsi: Make tgsi_sanity.c compile with make

15 years agotrace: Fix typo in build instructions.
José Fonseca [Tue, 16 Sep 2008 11:24:43 +0000 (20:24 +0900)]
trace: Fix typo in build instructions.

15 years agomesa: fix MSAA enable state in update_multisample()
Brian Paul [Mon, 15 Sep 2008 23:10:04 +0000 (17:10 -0600)]
mesa: fix MSAA enable state in update_multisample()

15 years agomesa: remove some assertions that are invalid during context tear-down
Brian Paul [Mon, 15 Sep 2008 15:07:32 +0000 (09:07 -0600)]
mesa: remove some assertions that are invalid during context tear-down

15 years agomesa: get another class of degenerate dlists working
Keith Whitwell [Mon, 15 Sep 2008 12:47:25 +0000 (13:47 +0100)]
mesa: get another class of degenerate dlists working

Primitive begin in one dlist, end in another.

15 years agogallium: add another value check to util_fast_pow()
Brian Paul [Sat, 13 Sep 2008 21:20:31 +0000 (15:20 -0600)]
gallium: add another value check to util_fast_pow()

Fixes glitches seen in morph3d demo.

15 years agocell: fix twiddled tile display for XSHM. Fixed blank window problem.
Brian Paul [Fri, 12 Sep 2008 17:35:22 +0000 (11:35 -0600)]
cell: fix twiddled tile display for XSHM.  Fixed blank window problem.

15 years agocell: disable calls to old gen code
Brian Paul [Fri, 12 Sep 2008 13:57:08 +0000 (07:57 -0600)]
cell: disable calls to old gen code

15 years agocell: initial support for fragment shader code generation.
Brian Paul [Thu, 11 Sep 2008 23:59:52 +0000 (17:59 -0600)]
cell: initial support for fragment shader code generation.

TGSI shaders are translated into SPE instructions which are then sent to
the SPEs for execution.  Only a few opcodes work, no swizzling yet, no
support for constants/immediates, etc.

15 years agouse APP_CC
Brian Paul [Thu, 11 Sep 2008 23:55:53 +0000 (17:55 -0600)]
use APP_CC

15 years agocell: fix tile twidding bug seen in the event of multiple expose events
Brian Paul [Thu, 11 Sep 2008 23:10:10 +0000 (17:10 -0600)]
cell: fix tile twidding bug seen in the event of multiple expose events

15 years agocell: minor improvements to fragment code-gen
Brian Paul [Thu, 11 Sep 2008 23:08:52 +0000 (17:08 -0600)]
cell: minor improvements to fragment code-gen

15 years agogallium: add special cases in spe_load_float(), spe_load_int(), added spe_splat()
Brian Paul [Thu, 11 Sep 2008 23:07:30 +0000 (17:07 -0600)]
gallium: add special cases in spe_load_float(), spe_load_int(), added spe_splat()

15 years agocell: put cell_ prefix on gen_fragment_function()
Brian Paul [Thu, 11 Sep 2008 21:48:13 +0000 (15:48 -0600)]
cell: put cell_ prefix on gen_fragment_function()

15 years agogallium: typo: s/PIPE_FORMAT_Z16UNORM/PIPE_FORMAT_Z16_UNORM/
Brian Paul [Thu, 11 Sep 2008 18:01:19 +0000 (12:01 -0600)]
gallium: typo: s/PIPE_FORMAT_Z16UNORM/PIPE_FORMAT_Z16_UNORM/

15 years agoegl_xdri: Add the top-level lib dir so we link against the libGL we built.
Dima Zavin [Thu, 21 Aug 2008 17:41:19 +0000 (10:41 -0700)]
egl_xdri: Add the top-level lib dir so we link against the libGL we built.

15 years agoegl_dri/egl_xdri: Makefiles should use pkg-config to find libdrm.
Dima Zavin [Thu, 21 Aug 2008 17:40:55 +0000 (10:40 -0700)]
egl_dri/egl_xdri: Makefiles should use pkg-config to find libdrm.

15 years agoglut: only call glFinish() in processWindowWorkList() for indirect contexts.
Brian Paul [Thu, 11 Sep 2008 17:05:13 +0000 (11:05 -0600)]
glut: only call glFinish() in processWindowWorkList() for indirect contexts.

Basically, do as the comment says.

15 years agodefine new APP_CC configuration variable for building apps/demos/tests
Brian Paul [Thu, 11 Sep 2008 17:00:54 +0000 (11:00 -0600)]
define new APP_CC configuration variable for building apps/demos/tests

For Cell, need to use different compilers for the libraries vs. the demos/tests
to avoid strange link error regarding "_Unwind_GetIPInfo@GCC_4.2.0"

15 years agocell: more comments, stub code for colormask/logicop/etc
Brian Paul [Thu, 11 Sep 2008 16:52:03 +0000 (10:52 -0600)]
cell: more comments, stub code for colormask/logicop/etc

15 years agosimple quad drawing test
Brian Paul [Thu, 11 Sep 2008 16:43:14 +0000 (10:43 -0600)]
simple quad drawing test

15 years agocell: fix typos in blend code-gen
Brian Paul [Thu, 11 Sep 2008 16:38:55 +0000 (10:38 -0600)]
cell: fix typos in blend code-gen

15 years agocell: remove old state CMDs, added comments
Brian Paul [Thu, 11 Sep 2008 16:38:37 +0000 (10:38 -0600)]
cell: remove old state CMDs, added comments

15 years agocell: clean-up, comments
Brian Paul [Thu, 11 Sep 2008 16:33:24 +0000 (10:33 -0600)]
cell: clean-up, comments

15 years agocell: disable NEW_VS emit
Brian Paul [Thu, 11 Sep 2008 16:33:13 +0000 (10:33 -0600)]
cell: disable NEW_VS emit