mesa.git
16 years agoi915: Fix for tex-surface merge
Jakob Bornecrantz [Sun, 25 May 2008 15:26:07 +0000 (17:26 +0200)]
i915: Fix for tex-surface merge

16 years agoMerge branch 'gallium-tex-surface' into gallium-0.1
Jakob Bornecrantz [Mon, 26 May 2008 11:04:25 +0000 (13:04 +0200)]
Merge branch 'gallium-tex-surface' into gallium-0.1

Conflicts:

src/gallium/include/pipe/p_util.h

16 years agoAdd copyright header.
José Fonseca [Mon, 26 May 2008 11:02:29 +0000 (20:02 +0900)]
Add copyright header.

16 years agodraw: extend precision in RSQ opcode
Keith Whitwell [Mon, 26 May 2008 10:03:00 +0000 (11:03 +0100)]
draw: extend precision in RSQ opcode

16 years agodraw: more aos tweaks
Keith Whitwell [Sun, 25 May 2008 23:09:02 +0000 (00:09 +0100)]
draw: more aos tweaks

16 years agocso: use memcpy rather than structure asignment for copying
Keith Whitwell [Sun, 25 May 2008 14:28:30 +0000 (15:28 +0100)]
cso: use memcpy rather than structure asignment for copying

Apparently gcc will omit to copy hidden padding bytes under some circumstances,
which means later on memcmp() will indicate a difference between structs
even though all the visible members are identical.

16 years agodraw: slight tweak for XPD opcode
Keith Whitwell [Sun, 25 May 2008 14:47:04 +0000 (15:47 +0100)]
draw: slight tweak for XPD opcode

16 years agodraw: remove EXP & LOG from vs_aos.c
Keith Whitwell [Sun, 25 May 2008 14:45:27 +0000 (15:45 +0100)]
draw: remove EXP & LOG from vs_aos.c

These don't get hit & look like bug magnets to me...

16 years agodraw: special case for writing out scalar results
Keith Whitwell [Sun, 25 May 2008 14:44:17 +0000 (15:44 +0100)]
draw: special case for writing out scalar results

16 years agodraw: clean up some of the xmm register manipulation function names
Keith Whitwell [Sun, 25 May 2008 14:37:47 +0000 (15:37 +0100)]
draw: clean up some of the xmm register manipulation function names

16 years agocso: use memcpy rather than structure asignment for copying
Keith Whitwell [Sun, 25 May 2008 14:28:30 +0000 (15:28 +0100)]
cso: use memcpy rather than structure asignment for copying

Apparently gcc will omit to copy hidden padding bytes under some circumstances,
which means later on memcmp() will indicate a difference between structs
even though all the visible members are identical.

16 years agodraw: add viewport support to generic vs varient code
Keith Whitwell [Sun, 25 May 2008 10:25:09 +0000 (11:25 +0100)]
draw: add viewport support to generic vs varient code

16 years agodraw: fix input vs output typo in emit
Keith Whitwell [Sun, 25 May 2008 10:20:38 +0000 (11:20 +0100)]
draw: fix input vs output typo in emit

16 years agoDemangle C++ symbols.
José Fonseca [Sat, 24 May 2008 16:35:53 +0000 (01:35 +0900)]
Demangle C++ symbols.

16 years agoRevert "mesa: save a temp on normalizes"
Keith Whitwell [Sat, 24 May 2008 15:32:08 +0000 (16:32 +0100)]
Revert "mesa: save a temp on normalizes"

This reverts commit feceb43948f76cc4d4c8ecbb86b1b1f438c6daee.

16 years agodraw: use lookup tables to avoid calling pow() in LIT opcode
Keith Whitwell [Sat, 24 May 2008 15:31:11 +0000 (16:31 +0100)]
draw: use lookup tables to avoid calling pow() in LIT opcode

16 years agomesa: pre-swizzle normal scale state value
Keith Whitwell [Sat, 24 May 2008 12:23:06 +0000 (13:23 +0100)]
mesa: pre-swizzle normal scale state value

16 years agomesa: evaluate _NeedEyeCoords prior to generating internal vertex shader
Keith Whitwell [Sat, 24 May 2008 12:22:39 +0000 (13:22 +0100)]
mesa: evaluate _NeedEyeCoords prior to generating internal vertex shader

16 years agodraw: add a debug-print which can be called from inside generated shaders
Keith Whitwell [Sat, 24 May 2008 12:22:29 +0000 (13:22 +0100)]
draw: add a debug-print which can be called from inside generated shaders

16 years agortasm: add some helpers for calling out from generated code
Keith Whitwell [Sat, 24 May 2008 12:22:15 +0000 (13:22 +0100)]
rtasm: add some helpers for calling out from generated code

16 years agogallium: Pre-processor for win32 kernel profile output.
José Fonseca [Sat, 24 May 2008 10:26:14 +0000 (19:26 +0900)]
gallium: Pre-processor for win32 kernel profile output.

16 years agogallium: Poor-man profiler for win32 kernel.
José Fonseca [Sat, 24 May 2008 10:25:33 +0000 (19:25 +0900)]
gallium: Poor-man profiler for win32 kernel.

16 years agoscons: New profile build.
José Fonseca [Sat, 24 May 2008 10:25:02 +0000 (19:25 +0900)]
scons: New profile build.

16 years agomesa: save a temp on normalizes
Keith Whitwell [Fri, 23 May 2008 19:37:50 +0000 (20:37 +0100)]
mesa: save a temp on normalizes

16 years agomesa: further degenerate the special case lit substitute
Keith Whitwell [Fri, 23 May 2008 19:05:36 +0000 (20:05 +0100)]
mesa: further degenerate the special case lit substitute

16 years agoglapi: fix include path & make build work
Keith Whitwell [Fri, 23 May 2008 18:17:57 +0000 (19:17 +0100)]
glapi: fix include path & make build work

16 years agomesa: don't emit LIT instruction when mat shininess known to be zero
Keith Whitwell [Fri, 23 May 2008 18:17:02 +0000 (19:17 +0100)]
mesa: don't emit LIT instruction when mat shininess known to be zero

Use a faster path in that case & make gears go faster.

16 years agoi915: Revert accidental change
Jakob Bornecrantz [Fri, 23 May 2008 14:55:30 +0000 (16:55 +0200)]
i915: Revert accidental change

16 years agoi915: Improved vertex buffer performance
Jakob Bornecrantz [Fri, 23 May 2008 14:11:38 +0000 (16:11 +0200)]
i915: Improved vertex buffer performance

16 years agoi915: Fix for edgeflags
Jakob Bornecrantz [Thu, 22 May 2008 13:02:54 +0000 (15:02 +0200)]
i915: Fix for edgeflags

16 years agoMerge branch 'gallium-i915-current' into gallium-0.1
Jakob Bornecrantz [Fri, 23 May 2008 14:26:14 +0000 (16:26 +0200)]
Merge branch 'gallium-i915-current' into gallium-0.1

16 years agoegl: Don't build EGL programs either
Jakob Bornecrantz [Fri, 23 May 2008 14:25:51 +0000 (16:25 +0200)]
egl: Don't build EGL programs either

16 years agoegl: Stoped compiling EGL completely
Jakob Bornecrantz [Fri, 23 May 2008 14:18:42 +0000 (16:18 +0200)]
egl: Stoped compiling EGL completely

16 years agoi915: Made EGL report the actual modes on the screen/output pair
Jakob Bornecrantz [Fri, 23 May 2008 09:24:33 +0000 (11:24 +0200)]
i915: Made EGL report the actual modes on the screen/output pair

16 years agoi915: Make batchbuffers larger.
Thomas Hellstrom [Fri, 23 May 2008 09:14:12 +0000 (11:14 +0200)]
i915: Make batchbuffers larger.

16 years agoi915: Use the malloc pool for constant buffers since they don't go to the GPU directly.
Thomas Hellstrom [Thu, 22 May 2008 14:42:53 +0000 (16:42 +0200)]
i915: Use the malloc pool for constant buffers since they don't go to the GPU directly.

16 years agomesa: Added linux-egl target, that only builds the i915simple driver and egl drivers
Jakob Bornecrantz [Thu, 22 May 2008 14:24:51 +0000 (16:24 +0200)]
mesa: Added linux-egl target, that only builds the i915simple driver and egl drivers

16 years agomesa: On second thought lets not build the driver
Jakob Bornecrantz [Thu, 22 May 2008 14:24:10 +0000 (16:24 +0200)]
mesa: On second thought lets not build the driver

16 years agodraw: faster LIT(), incorrect though
Keith Whitwell [Fri, 23 May 2008 08:14:17 +0000 (09:14 +0100)]
draw: faster LIT(), incorrect though

16 years agomesa: do object-space lighting in ffvertex_prog.c
Keith Whitwell [Fri, 23 May 2008 08:10:59 +0000 (09:10 +0100)]
mesa: do object-space lighting in ffvertex_prog.c

Start pulling over some of the optimizations from the fixed function
paths.

16 years agodraw: correct but slow LIT() in aos varient
Keith Whitwell [Thu, 22 May 2008 19:22:15 +0000 (20:22 +0100)]
draw: correct but slow LIT() in aos varient

16 years agodraw: tweak x87_emit_ex2 to avoid changing x87 fpu settings
Keith Whitwell [Thu, 22 May 2008 19:21:49 +0000 (20:21 +0100)]
draw: tweak x87_emit_ex2 to avoid changing x87 fpu settings

16 years agodraw: use aligned movs within draw_vs_aos.c
Keith Whitwell [Thu, 22 May 2008 14:24:02 +0000 (15:24 +0100)]
draw: use aligned movs within draw_vs_aos.c

16 years agodraw: for debug, do rhw divide in aos_sse viewport calcs
Keith Whitwell [Thu, 22 May 2008 12:49:38 +0000 (13:49 +0100)]
draw: for debug, do rhw divide in aos_sse viewport calcs

16 years agodraw: shortcircuit shuffle in aos_sse when possible
Keith Whitwell [Thu, 22 May 2008 12:48:07 +0000 (13:48 +0100)]
draw: shortcircuit shuffle in aos_sse when possible

16 years agodraw: remove FPU_MANIP ifdef
Keith Whitwell [Thu, 22 May 2008 12:47:08 +0000 (13:47 +0100)]
draw: remove FPU_MANIP ifdef

16 years agodraw: clean up masked writes in aos sse, make some xmm function names clearer
Keith Whitwell [Thu, 22 May 2008 12:46:06 +0000 (13:46 +0100)]
draw: clean up masked writes in aos sse, make some xmm function names clearer

16 years agodraw: clean up internal immediates in aos sse
Keith Whitwell [Thu, 22 May 2008 12:41:49 +0000 (13:41 +0100)]
draw: clean up internal immediates in aos sse

16 years agodraw: fse works with elts, remove assert
Keith Whitwell [Thu, 22 May 2008 12:37:48 +0000 (13:37 +0100)]
draw: fse works with elts, remove assert

16 years agortasm: remove debug
Keith Whitwell [Wed, 21 May 2008 19:50:36 +0000 (20:50 +0100)]
rtasm: remove debug

16 years agodraw: when preloading args to x87 stack, need to use reverse order
Keith Whitwell [Wed, 21 May 2008 19:41:01 +0000 (20:41 +0100)]
draw: when preloading args to x87 stack, need to use reverse order

16 years agodraw: avoid a pointless mov in many sse opcodes
Keith Whitwell [Wed, 21 May 2008 19:38:23 +0000 (20:38 +0100)]
draw: avoid a pointless mov in many sse opcodes

16 years agodraw: fix x87_ex2 and partially fix lit insn
Keith Whitwell [Wed, 21 May 2008 19:34:52 +0000 (20:34 +0100)]
draw: fix x87_ex2 and partially fix lit insn

16 years agodraw: fix fpu control word manipulations
Keith Whitwell [Wed, 21 May 2008 19:32:43 +0000 (20:32 +0100)]
draw: fix fpu control word manipulations

16 years agodraw: fix vs aos internal/machine state
Keith Whitwell [Wed, 21 May 2008 19:31:08 +0000 (20:31 +0100)]
draw: fix vs aos internal/machine state

16 years agodraw: add viewport to varient state
Keith Whitwell [Wed, 21 May 2008 19:28:56 +0000 (20:28 +0100)]
draw: add viewport to varient state

16 years agortasm: add x87 instructions and debug-check for x87 stack usage
Keith Whitwell [Wed, 21 May 2008 19:14:55 +0000 (20:14 +0100)]
rtasm: add x87 instructions and debug-check for x87 stack usage

16 years agovp-tris: use test name as window name
Keith Whitwell [Wed, 21 May 2008 12:17:48 +0000 (13:17 +0100)]
vp-tris: use test name as window name

16 years agodraw: add aos vertex shader varient
Keith Whitwell [Wed, 21 May 2008 08:44:16 +0000 (09:44 +0100)]
draw: add aos vertex shader varient

16 years agodraw: mark varient functions as PIPE_CDECL
Keith Whitwell [Wed, 21 May 2008 08:43:30 +0000 (09:43 +0100)]
draw: mark varient functions as PIPE_CDECL

16 years agotranslate: mark functions as PIPE_CDECL
Keith Whitwell [Wed, 21 May 2008 07:29:19 +0000 (08:29 +0100)]
translate: mark functions as PIPE_CDECL

16 years agogallium: define PIPE_CDECL calling convention, which really is cdecl everywhere
Keith Whitwell [Wed, 21 May 2008 07:28:53 +0000 (08:28 +0100)]
gallium: define PIPE_CDECL calling convention, which really is cdecl everywhere

16 years agortasm: export debug reg print function
Keith Whitwell [Wed, 21 May 2008 07:28:16 +0000 (08:28 +0100)]
rtasm: export debug reg print function

16 years agotranslate: remove spurious comment
Keith Whitwell [Tue, 20 May 2008 13:34:06 +0000 (14:34 +0100)]
translate: remove spurious comment

16 years agortasm: remove unused struct member
Keith Whitwell [Mon, 19 May 2008 15:28:53 +0000 (16:28 +0100)]
rtasm: remove unused struct member

16 years agodraw: create specialized vs varients incorporating fetch & emit
Keith Whitwell [Thu, 15 May 2008 11:39:08 +0000 (12:39 +0100)]
draw: create specialized vs varients incorporating fetch & emit

16 years agodraw: move some state into a new 'vs' area
Keith Whitwell [Tue, 13 May 2008 12:40:22 +0000 (13:40 +0100)]
draw: move some state into a new 'vs' area

16 years agodraw: get rid of fetch-shade-emit frontend hack
Keith Whitwell [Tue, 13 May 2008 12:35:14 +0000 (13:35 +0100)]
draw: get rid of fetch-shade-emit frontend hack

The code is now living in it's intended place as a pt middle end.

16 years agodraw: remove disabled non-sse swizzle code
Keith Whitwell [Tue, 13 May 2008 08:46:53 +0000 (09:46 +0100)]
draw: remove disabled non-sse swizzle code

16 years agodisable egl by default
Zack Rusin [Fri, 23 May 2008 02:13:38 +0000 (22:13 -0400)]
disable egl by default

16 years agopipebuffer: More robust face null pointers.
José Fonseca [Thu, 22 May 2008 12:54:41 +0000 (21:54 +0900)]
pipebuffer: More robust face null pointers.

It is really the caller responsibility not to call pipebuffer with null
buffers, etc. But don't let the crash happen here, and still asserting
early.

16 years agopipebuffer: Don't retry allocating in slab suballocator.
José Fonseca [Thu, 22 May 2008 11:33:17 +0000 (20:33 +0900)]
pipebuffer: Don't retry allocating in slab suballocator.

In pipebuffer, fencing is done at on a level above sub-allocation, so no
matter how many times slab allocator retries no buffer will be freed. The
pipebuffer fencing implemention already retries allocating.

16 years agoMerge branch 'gallium-0.1' into gallium-tex-surfaces
Michel Dänzer [Wed, 21 May 2008 16:15:07 +0000 (17:15 +0100)]
Merge branch 'gallium-0.1' into gallium-tex-surfaces

16 years agofix assorted bugs, works now
Brian [Wed, 24 Oct 2007 19:55:22 +0000 (13:55 -0600)]
fix assorted bugs, works now

(cherry picked from commit 55d4f32fc211dbc37bd28c0e67da5ce5e0da5777)

16 years agomesa: fix #include path for glapioffsets.h (fixes x86 build)
Brian [Wed, 21 May 2008 12:59:49 +0000 (06:59 -0600)]
mesa: fix #include path for glapioffsets.h (fixes x86 build)

16 years agoadd new binaries to ignore to make 'git status' cleaner
Zack Rusin [Tue, 20 May 2008 23:18:22 +0000 (19:18 -0400)]
add new binaries to ignore to make 'git status' cleaner

16 years agoIgnore more generated files in progs/
Dan Nicholson [Sat, 29 Sep 2007 18:23:22 +0000 (11:23 -0700)]
Ignore more generated files in progs/

Many of the directories in progs/ were missing .gitignore files or
were tracking generated files. This patch is basically the process of
running `make' in each directory and then finding the untracked files
with `git-ls-files -o --exclude-per-directory=.gitignore'. The existing
files were also sorted.

16 years agoadd a simple but nice example of convolution filters in glsl
Zack Rusin [Tue, 20 May 2008 22:49:40 +0000 (18:49 -0400)]
add a simple but nice example of convolution filters in glsl

shows basics of image processing with glsl

16 years agoMerge branch 'gallium-0.1' into gallium-tex-surfaces
Brian Paul [Tue, 20 May 2008 21:30:23 +0000 (15:30 -0600)]
Merge branch 'gallium-0.1' into gallium-tex-surfaces

16 years agogallium: fix vertex shader mem leak (glRasterPos)
Brian Paul [Tue, 20 May 2008 21:20:29 +0000 (15:20 -0600)]
gallium: fix vertex shader mem leak (glRasterPos)

16 years agoMerge branch 'gallium-0.1' into gallium-tex-surfaces
Brian Paul [Tue, 20 May 2008 21:12:50 +0000 (15:12 -0600)]
Merge branch 'gallium-0.1' into gallium-tex-surfaces

16 years agogallium: replace assignment with pipe_texture_reference()
Brian Paul [Tue, 20 May 2008 21:12:26 +0000 (15:12 -0600)]
gallium: replace assignment with pipe_texture_reference()

16 years agogallium: fix shader mem leak
Brian Paul [Tue, 20 May 2008 21:11:53 +0000 (15:11 -0600)]
gallium: fix shader mem leak

16 years agomesa: call glutDestroyWindow()
Brian Paul [Tue, 20 May 2008 21:11:33 +0000 (15:11 -0600)]
mesa: call glutDestroyWindow()

16 years agoMerge branch 'gallium-0.1' into gallium-tex-surfaces
Brian Paul [Tue, 20 May 2008 20:38:45 +0000 (14:38 -0600)]
Merge branch 'gallium-0.1' into gallium-tex-surfaces

16 years agogallium: move vertex/fragment program unbinding
Brian Paul [Tue, 20 May 2008 20:38:22 +0000 (14:38 -0600)]
gallium: move vertex/fragment program unbinding

16 years agogallium: fix default case in st_new_program()
Brian Paul [Tue, 20 May 2008 20:38:00 +0000 (14:38 -0600)]
gallium: fix default case in st_new_program()

16 years agoMerge branch 'gallium-0.1' into gallium-tex-surfaces
Brian Paul [Tue, 20 May 2008 19:50:10 +0000 (13:50 -0600)]
Merge branch 'gallium-0.1' into gallium-tex-surfaces

16 years agogallium: fix mem leaks
Brian Paul [Tue, 20 May 2008 19:48:34 +0000 (13:48 -0600)]
gallium: fix mem leaks

16 years agomesa: call glutDestroyWindow()
Brian Paul [Tue, 20 May 2008 19:38:59 +0000 (13:38 -0600)]
mesa: call glutDestroyWindow()

16 years agogallium: clean-up glDraw/CopyPixels shaders when destroying context
Brian Paul [Tue, 20 May 2008 19:38:45 +0000 (13:38 -0600)]
gallium: clean-up glDraw/CopyPixels shaders when destroying context

16 years agoMerge branch 'gallium-0.1' into gallium-tex-surfaces
Brian Paul [Tue, 20 May 2008 19:39:27 +0000 (13:39 -0600)]
Merge branch 'gallium-0.1' into gallium-tex-surfaces

16 years agomesa: call glutDestroyWindow()
Brian Paul [Tue, 20 May 2008 19:38:59 +0000 (13:38 -0600)]
mesa: call glutDestroyWindow()

16 years agogallium: clean-up glDraw/CopyPixels shaders when destroying context
Brian Paul [Tue, 20 May 2008 19:38:45 +0000 (13:38 -0600)]
gallium: clean-up glDraw/CopyPixels shaders when destroying context

16 years agoMerge branch 'gallium-0.1' into gallium-tex-surfaces
Brian Paul [Tue, 20 May 2008 17:34:36 +0000 (11:34 -0600)]
Merge branch 'gallium-0.1' into gallium-tex-surfaces

16 years agocopy StateFlags in _mesa_clone_parameter_list()
Brian Paul [Tue, 20 May 2008 17:31:20 +0000 (11:31 -0600)]
copy StateFlags in _mesa_clone_parameter_list()

cherry-picked from master (b539b6132141b0f583076355ad158852667b79cd)

16 years agofix incorrect sampler numbering/indexing.
Brian Paul [Tue, 20 May 2008 17:29:58 +0000 (11:29 -0600)]
fix incorrect sampler numbering/indexing.

All samplers indexes were zero.

cherry-picked from master (b6fb0940c226373ac235a5d327d3fcfd742bc6b9)

16 years agogallium: remove dead code
Brian Paul [Mon, 19 May 2008 22:05:41 +0000 (16:05 -0600)]
gallium: remove dead code

16 years agofix tempReg test in _mesa_combine_programs()
Brian Paul [Mon, 19 May 2008 22:04:02 +0000 (16:04 -0600)]
fix tempReg test in _mesa_combine_programs()

16 years agogallium: remove dead code
Brian Paul [Mon, 19 May 2008 22:05:41 +0000 (16:05 -0600)]
gallium: remove dead code