mesa.git
15 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Sun, 25 May 2008 04:19:18 +0000 (14:19 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

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

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

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

15 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

15 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

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

15 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

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

15 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.

15 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

15 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

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

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 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 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 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 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 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: fix some texture object leaks
Brian Paul [Mon, 19 May 2008 18:40:11 +0000 (12:40 -0600)]
gallium: fix some texture object leaks

16 years agoif x86_get_func() returns NULL, handle it properly instead of aborting
Brian Paul [Mon, 19 May 2008 15:34:28 +0000 (09:34 -0600)]
if x86_get_func() returns NULL, handle it properly instead of aborting

16 years agofix program delete/refcount bug
Brian Paul [Mon, 19 May 2008 15:04:02 +0000 (09:04 -0600)]
fix program delete/refcount bug

cherry-picked from gallium-tex-surfaces

16 years agoFix program refcounting assertion failure during context tear-down
Brian Paul [Mon, 19 May 2008 14:59:41 +0000 (08:59 -0600)]
Fix program refcounting assertion failure during context tear-down

When purging the program hash table, the refcount _should_ be one since
the program is referenced by the hash table.  Need to explicitly set to
zero before calling delete().

Also, purge high-level shader hash tables before low-level program hash tabl

cherry-picked from master

16 years agoprint vertex.attrib[n] (from master)
Brian Paul [Sun, 18 May 2008 21:46:58 +0000 (15:46 -0600)]
print vertex.attrib[n] (from master)

16 years agoFix some bugs in material, depth range state
Brian Paul [Sun, 18 May 2008 21:32:58 +0000 (15:32 -0600)]
Fix some bugs in material, depth range state

picked from master

16 years agoRegenerated API dispatch files
Brian Paul [Sun, 18 May 2008 21:23:03 +0000 (15:23 -0600)]
Regenerated API dispatch files

Follow on to cherry-pick from master

16 years agoalias ProgramEnvParameter4xyARB and ProgramParameter4xyNV (bug #12935)
Brian Paul [Sun, 18 May 2008 21:21:28 +0000 (15:21 -0600)]
alias ProgramEnvParameter4xyARB and ProgramParameter4xyNV (bug #12935)

these should be the same functions (as per spec).

cherry-picked from master (86a4810b09097714942bf2b889e6c62357bba931)

16 years agocosmetic changes
Zack Rusin [Fri, 16 May 2008 21:56:38 +0000 (17:56 -0400)]
cosmetic changes

16 years agofix rsq
Zack Rusin [Fri, 16 May 2008 21:35:47 +0000 (17:35 -0400)]
fix rsq

16 years agofix abs and start on rsq
Zack Rusin [Fri, 16 May 2008 21:10:52 +0000 (17:10 -0400)]
fix abs and start on rsq

16 years agodo the lit (some artifacts present)
Zack Rusin [Fri, 16 May 2008 20:06:59 +0000 (16:06 -0400)]
do the lit (some artifacts present)

16 years agoimplement min/max and abstract ops on vectors
Zack Rusin [Fri, 16 May 2008 18:54:40 +0000 (14:54 -0400)]
implement min/max and abstract ops on vectors

16 years agollvm: implement sub and abs
Zack Rusin [Thu, 15 May 2008 21:46:20 +0000 (17:46 -0400)]
llvm: implement sub and abs

16 years agofix injections of functions from builtins into shaders
Zack Rusin [Thu, 15 May 2008 18:11:19 +0000 (14:11 -0400)]
fix injections of functions from builtins into shaders

16 years agomove the swizzling code to gallivm in preperation for code-generating it
Zack Rusin [Thu, 15 May 2008 16:17:46 +0000 (12:17 -0400)]
move the swizzling code to gallivm in preperation for code-generating it
also some minor cleanups

16 years agogallium: in drivers, make copy of tokens passed to pipe->create_vs/fs_state()
Brian Paul [Sat, 17 May 2008 16:30:21 +0000 (10:30 -0600)]
gallium: in drivers, make copy of tokens passed to pipe->create_vs/fs_state()

The caller can then free the token array immediately.

16 years agogallium: remove deprecated format names
Brian Paul [Sat, 17 May 2008 14:47:56 +0000 (08:47 -0600)]
gallium: remove deprecated format names

16 years agos/PIPE_FORMAT_U_S8/PIPE_FORMAT_S8_UNORM/
Brian Paul [Sat, 17 May 2008 14:46:43 +0000 (08:46 -0600)]
s/PIPE_FORMAT_U_S8/PIPE_FORMAT_S8_UNORM/

16 years agogallium: release textures during context tear-down (fix mem leak)
Brian Paul [Fri, 16 May 2008 22:04:30 +0000 (16:04 -0600)]
gallium: release textures during context tear-down (fix mem leak)

16 years agogallium: ref counting clean-ups
Brian Paul [Fri, 16 May 2008 22:04:04 +0000 (16:04 -0600)]
gallium: ref counting clean-ups

16 years agomesa: call glutDestroyWindow() on exit to help find mem leaks
Brian Paul [Fri, 16 May 2008 22:02:52 +0000 (16:02 -0600)]
mesa: call glutDestroyWindow() on exit to help find mem leaks

16 years agobring in fixes/changes from master
Brian Paul [Fri, 16 May 2008 21:48:11 +0000 (15:48 -0600)]
bring in fixes/changes from master

16 years agoFix a program refcounting error, don't share program parameter lists.
Brian Paul [Fri, 16 May 2008 15:56:59 +0000 (09:56 -0600)]
Fix a program refcounting error, don't share program parameter lists.

The refcounting bug was causing a memleak (unfreed programs).
The old parameter list sharing is not needed since the change in how
uniforms are handled.

16 years agofix an attr/src mix-up when setting-up/binding vertex arrays
Brian Paul [Fri, 16 May 2008 21:34:22 +0000 (15:34 -0600)]
fix an attr/src mix-up when setting-up/binding vertex arrays

This fixes problems with incorrect material coefficients when glMaterial
is called per-vertex.

16 years agofix parsing of state.texenv.color (bug 14931)
Brian Paul [Thu, 15 May 2008 01:19:53 +0000 (19:19 -0600)]
fix parsing of state.texenv.color (bug 14931)

cherry-picked from master

16 years agoConsolidate texture fetch code and use partial derivatives when possible.
Brian Paul [Thu, 15 May 2008 01:14:41 +0000 (19:14 -0600)]
Consolidate texture fetch code and use partial derivatives when possible.

picked from master

16 years agomesa: fix InfoLog memleak, misc sync with master
Brian Paul [Wed, 14 May 2008 22:44:08 +0000 (16:44 -0600)]
mesa: fix InfoLog memleak, misc sync with master

16 years agoBug #13492: Only call ProgramStringNotify if program parsing succeeded.
Eric Anholt [Tue, 15 Jan 2008 23:08:34 +0000 (15:08 -0800)]
Bug #13492: Only call ProgramStringNotify if program parsing succeeded.

Wine intentionally tries some out-of-spec programs to test strictness, and
calling ProgramStringNotify on the results of a failed program parse resulted
in crashes in the 965 driver.

16 years agofix swizzle error test (bug 11881)
Brian [Tue, 7 Aug 2007 20:42:34 +0000 (21:42 +0100)]
fix swizzle error test (bug 11881)

16 years agofix-up inlined/non-inlined function inconsistencies
Brian Paul [Wed, 14 May 2008 22:32:18 +0000 (16:32 -0600)]
fix-up inlined/non-inlined function inconsistencies

cherry-picked from master

16 years agomesa: rm unneeded file
Brian Paul [Wed, 14 May 2008 22:30:15 +0000 (16:30 -0600)]
mesa: rm unneeded file

16 years agomesa: prefix rm command with -
Brian Paul [Wed, 14 May 2008 22:27:34 +0000 (16:27 -0600)]
mesa: prefix rm command with -

16 years agorewrite some of the mat*mat, mat*vec intrinsics
Brian Paul [Wed, 14 May 2008 22:20:28 +0000 (16:20 -0600)]
rewrite some of the mat*mat, mat*vec intrinsics

Also, remove obsolete matrix codegen code.

cherry-picked from master

16 years agomesa: regenerate slang built-in data (asin(vec4) fix)
Brian Paul [Wed, 14 May 2008 22:07:18 +0000 (16:07 -0600)]
mesa: regenerate slang built-in data (asin(vec4) fix)

16 years agomesa: fix missing w assignment in asin(vec4)
Brian Paul [Wed, 14 May 2008 22:06:10 +0000 (16:06 -0600)]
mesa: fix missing w assignment in asin(vec4)

16 years agomesa: use CALLOC_STRUCT()
Brian Paul [Wed, 14 May 2008 22:05:48 +0000 (16:05 -0600)]
mesa: use CALLOC_STRUCT()

16 years agomesa: sync up swrast/s_fragprog.c with master
Brian Paul [Wed, 14 May 2008 22:05:25 +0000 (16:05 -0600)]
mesa: sync up swrast/s_fragprog.c with master

16 years agomesa: updated comment
Brian Paul [Wed, 14 May 2008 22:04:51 +0000 (16:04 -0600)]
mesa: updated comment

16 years agomesa: minor bug fixes from master
Brian Paul [Wed, 14 May 2008 22:04:29 +0000 (16:04 -0600)]
mesa: minor bug fixes from master

16 years agomesa: dead code removal
Brian Paul [Wed, 14 May 2008 22:04:00 +0000 (16:04 -0600)]
mesa: dead code removal

16 years agomesa: minor bug fixes, null ptr checks, dead code removal
Brian Paul [Wed, 14 May 2008 22:03:38 +0000 (16:03 -0600)]
mesa: minor bug fixes, null ptr checks, dead code removal

16 years agomesa: fix errors in LightModelProduct state, other misc error cases
Brian Paul [Wed, 14 May 2008 22:02:20 +0000 (16:02 -0600)]
mesa: fix errors in LightModelProduct state, other misc error cases

16 years agomesa: glUniform(location==-1) is not an error
Brian Paul [Wed, 14 May 2008 22:01:31 +0000 (16:01 -0600)]
mesa: glUniform(location==-1) is not an error

16 years agofix some additional program refcounting bugs
Brian Paul [Wed, 14 May 2008 18:19:22 +0000 (12:19 -0600)]
fix some additional program refcounting bugs

cherry-picked from master

16 years agomesa: Made linux-dri targets build EGL
Jakob Bornecrantz [Wed, 14 May 2008 15:20:56 +0000 (17:20 +0200)]
mesa: Made linux-dri targets build EGL

16 years agoegl: Updated EGL samples to use new i915 EGL winsys
Jakob Bornecrantz [Wed, 14 May 2008 15:20:25 +0000 (17:20 +0200)]
egl: Updated EGL samples to use new i915 EGL winsys

16 years agoi915: Added EGL winsys
Jakob Bornecrantz [Wed, 14 May 2008 15:19:44 +0000 (17:19 +0200)]
i915: Added EGL winsys

16 years agonv40: fix typo in one of the previous commits
Ben Skeggs [Wed, 14 May 2008 08:35:37 +0000 (18:35 +1000)]
nv40: fix typo in one of the previous commits

16 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Wed, 14 May 2008 08:13:36 +0000 (18:13 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

16 years agonouveau: remove winsys-related stuff from nouveau_local.h
Ben Skeggs [Tue, 13 May 2008 14:25:09 +0000 (00:25 +1000)]
nouveau: remove winsys-related stuff from nouveau_local.h

16 years agonouveau: remove chipset fields in all nv pipe driver context/screen structs.
Ben Skeggs [Tue, 13 May 2008 02:16:35 +0000 (12:16 +1000)]
nouveau: remove chipset fields in all nv pipe driver context/screen structs.

16 years agonouveau: make nouveau_device.h part of public API
Ben Skeggs [Tue, 13 May 2008 02:09:04 +0000 (12:09 +1000)]
nouveau: make nouveau_device.h part of public API

16 years agonouveau: create objnull during channel creation
Ben Skeggs [Tue, 13 May 2008 02:06:32 +0000 (12:06 +1000)]
nouveau: create objnull during channel creation

16 years agonouveau: chipset is a device property, remove from nv/nvc.
Ben Skeggs [Tue, 13 May 2008 02:01:08 +0000 (12:01 +1000)]
nouveau: chipset is a device property, remove from nv/nvc.

16 years agonv50: slightly less skeletal texture funcs, prevents fun segfaults
Ben Skeggs [Mon, 5 May 2008 09:52:19 +0000 (19:52 +1000)]
nv50: slightly less skeletal texture funcs, prevents fun segfaults

16 years agonv50: report some supported formats to keep the state tracker from asserting.
Ben Skeggs [Mon, 5 May 2008 09:49:06 +0000 (19:49 +1000)]
nv50: report some supported formats to keep the state tracker from asserting.

16 years agoadjust llvm code to the changes in 2.3
Zack Rusin [Mon, 12 May 2008 21:17:18 +0000 (17:17 -0400)]
adjust llvm code to the changes in 2.3

16 years agogallium: optimize the flush_spans() function
Brian [Sat, 10 May 2008 18:46:00 +0000 (12:46 -0600)]
gallium: optimize the flush_spans() function

16 years agogallium: remove unused code
Brian [Sat, 10 May 2008 18:16:19 +0000 (12:16 -0600)]
gallium: remove unused code

16 years agodraw: Fix number of vertices allocated in draw_pt_emit().
Michel Dänzer [Fri, 9 May 2008 17:04:16 +0000 (18:04 +0100)]
draw: Fix number of vertices allocated in draw_pt_emit().

16 years agodraw: mimize cost of translate key compares, use cache universally
Keith Whitwell [Fri, 9 May 2008 12:10:15 +0000 (13:10 +0100)]
draw: mimize cost of translate key compares, use cache universally

16 years agotranslate: helper functions for mimizing cost of key compares
Keith Whitwell [Fri, 9 May 2008 12:09:58 +0000 (13:09 +0100)]
translate: helper functions for mimizing cost of key compares

16 years agodraw: only fill in / compare the part of the translate key we're using.
Keith Whitwell [Thu, 8 May 2008 21:13:21 +0000 (22:13 +0100)]
draw: only fill in / compare the part of the translate key we're using.

It's quite a big struct & we examine it a lot (too much).  Reduce
the impact of this by just looking at the active part where possible.

16 years agoxlib: more SP_NO_RAST support
Keith Whitwell [Thu, 8 May 2008 21:10:15 +0000 (22:10 +0100)]
xlib: more SP_NO_RAST support

For some resaon normal (non-display-buffer) buffers are being allocated
through Xshm...  Bypass at least for SP_NO_RAST

16 years agosoftpipe: don't calc det if NO_RAST set
Keith Whitwell [Thu, 8 May 2008 21:07:52 +0000 (22:07 +0100)]
softpipe: don't calc det if NO_RAST set

16 years agocso_cache: Fix test for currently bound blend state.
Michel Dänzer [Thu, 8 May 2008 18:00:11 +0000 (19:00 +0100)]
cso_cache: Fix test for currently bound blend state.

16 years agomesa: update/add newer GL ES headers
Brian Paul [Wed, 7 May 2008 14:47:55 +0000 (08:47 -0600)]
mesa: update/add newer GL ES headers

16 years agomesa: free shader program data before deleting shader objects.
Brian [Wed, 7 May 2008 05:08:02 +0000 (23:08 -0600)]
mesa: free shader program data before deleting shader objects.

Picked from master.
Fixes mem corruption seen when glean/api2 test exits.