mesa.git
16 years agog3dvl: Add stubs for some XvMC functions.
Younes Manton [Mon, 21 Jul 2008 01:30:14 +0000 (21:30 -0400)]
g3dvl: Add stubs for some XvMC functions.

Some of these may need to be implemented on the DDX side.

16 years agonv50: add NV86 and NV94 to list of "supported" chips
Ben Skeggs [Mon, 21 Jul 2008 09:05:55 +0000 (19:05 +1000)]
nv50: add NV86 and NV94 to list of "supported" chips

16 years agog3dvl: Fix some memory leaks in the winsys.
Younes Manton [Sat, 19 Jul 2008 20:22:56 +0000 (16:22 -0400)]
g3dvl: Fix some memory leaks in the winsys.

16 years agog3dvl: Minor SP winsys cleanup.
Younes Manton [Thu, 10 Jul 2008 04:32:18 +0000 (00:32 -0400)]
g3dvl: Minor SP winsys cleanup.

16 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Sun, 13 Jul 2008 15:14:52 +0000 (01:14 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

16 years agopython: New state tracker which exposes the pipe driver to python scripts.
José Fonseca [Sun, 13 Jul 2008 14:36:59 +0000 (23:36 +0900)]
python: New state tracker which exposes the pipe driver to python scripts.

Still under development. Just barely works.

16 years agoutil: Eliminate pipe from the arguments to pipe_get/put_tile_xxx functions.
José Fonseca [Sun, 13 Jul 2008 13:39:58 +0000 (22:39 +0900)]
util: Eliminate pipe from the arguments to pipe_get/put_tile_xxx functions.

You don't need a pipe_context * for this, and all other necessary info is
already inside pipe_surface.

16 years agopb: buffer over/underflows are errors.
José Fonseca [Sun, 13 Jul 2008 13:37:47 +0000 (22:37 +0900)]
pb: buffer over/underflows are errors.

16 years agotgsi: Parse destination operand modulate modifier.
Michal Krol [Sun, 13 Jul 2008 13:23:14 +0000 (15:23 +0200)]
tgsi: Parse destination operand modulate modifier.

16 years agotgsi: Parse extended source register modifiers.
Michal Krol [Sun, 13 Jul 2008 13:14:31 +0000 (15:14 +0200)]
tgsi: Parse extended source register modifiers.

16 years agotgsi: Parse _SAT and _SAT opcode suffix.
Michal Krol [Sun, 13 Jul 2008 12:50:12 +0000 (14:50 +0200)]
tgsi: Parse _SAT and _SAT opcode suffix.

16 years agotgsi: Parse IMM statements.
Michal Krol [Sun, 13 Jul 2008 12:03:21 +0000 (14:03 +0200)]
tgsi: Parse IMM statements.

16 years agotgsi: Parse texture instructions correctly.
Michal Krol [Sun, 13 Jul 2008 11:13:39 +0000 (13:13 +0200)]
tgsi: Parse texture instructions correctly.

16 years agotgsi: Fix instruction operand counts.
Michal Krol [Sun, 13 Jul 2008 10:16:16 +0000 (12:16 +0200)]
tgsi: Fix instruction operand counts.

16 years agotgsi: Fix instruction opcode parsing.
Michal Krol [Sun, 13 Jul 2008 09:43:30 +0000 (11:43 +0200)]
tgsi: Fix instruction opcode parsing.

16 years agotgsi: Add missing SWZ opcode.
Michal Krol [Sun, 13 Jul 2008 09:42:33 +0000 (11:42 +0200)]
tgsi: Add missing SWZ opcode.

16 years agotgsi: Parse DCL statements.
Michal Krol [Sun, 13 Jul 2008 09:37:36 +0000 (11:37 +0200)]
tgsi: Parse DCL statements.

16 years agotgsi: Remove depricated ATTRIB interpolate mode.
Michal Krol [Sun, 13 Jul 2008 09:30:02 +0000 (11:30 +0200)]
tgsi: Remove depricated ATTRIB interpolate mode.

16 years agollvm: build fixes.
Stephane Marchesin [Sun, 13 Jul 2008 09:33:41 +0000 (11:33 +0200)]
llvm: build fixes.

16 years agoscons: List `util/tgsi_text.c'.
Michal Krol [Sat, 12 Jul 2008 15:10:21 +0000 (17:10 +0200)]
scons: List `util/tgsi_text.c'.

16 years agotgsi: Add tgsi_text utility module.
Michal Krol [Sat, 12 Jul 2008 15:06:37 +0000 (17:06 +0200)]
tgsi: Add tgsi_text utility module.

Translates textual shader into a binary token stream.
The syntax matches the tgsi_dump module, so it's possible to
simply copy-paste the shader dump and transform it back
to a binary form.

16 years agotgsi: Fix dumping of indirect addressing.
Michal Krol [Sat, 12 Jul 2008 15:03:30 +0000 (17:03 +0200)]
tgsi: Fix dumping of indirect addressing.

16 years agonv30: no npot textures
Patrice Mandin [Sat, 12 Jul 2008 13:07:02 +0000 (15:07 +0200)]
nv30: no npot textures

16 years agonv30: update caps
Patrice Mandin [Sat, 12 Jul 2008 11:59:24 +0000 (13:59 +0200)]
nv30: update caps

16 years agonv30: do not shift texture format
Patrice Mandin [Sat, 12 Jul 2008 11:59:01 +0000 (13:59 +0200)]
nv30: do not shift texture format

16 years agonv30: Emit vertex buffer objects using state objects
Patrice Mandin [Sat, 12 Jul 2008 11:16:47 +0000 (13:16 +0200)]
nv30: Emit vertex buffer objects using state objects

16 years agonv30: Move edgeflag stuff
Patrice Mandin [Sat, 12 Jul 2008 10:24:37 +0000 (12:24 +0200)]
nv30: Move edgeflag stuff

16 years agonv30: Reorder, remove useless stuff
Patrice Mandin [Sat, 12 Jul 2008 09:53:10 +0000 (11:53 +0200)]
nv30: Reorder, remove useless stuff

16 years agonv30: Rename state emission func
Patrice Mandin [Sat, 12 Jul 2008 09:45:51 +0000 (11:45 +0200)]
nv30: Rename state emission func

16 years agotgsi: Add missing copyright headers.
Michal Krol [Sat, 12 Jul 2008 09:16:01 +0000 (11:16 +0200)]
tgsi: Add missing copyright headers.

16 years agonv30: was setting wrong register
Patrice Mandin [Sat, 12 Jul 2008 08:13:58 +0000 (10:13 +0200)]
nv30: was setting wrong register

16 years agonv30: does not have vp_attrib/result
Patrice Mandin [Sat, 12 Jul 2008 08:10:16 +0000 (10:10 +0200)]
nv30: does not have vp_attrib/result

16 years agonv30: Change comment about slowdown
Patrice Mandin [Fri, 11 Jul 2008 22:48:44 +0000 (00:48 +0200)]
nv30: Change comment about slowdown

16 years agonv30: Emit fragment program using state objects
Patrice Mandin [Fri, 11 Jul 2008 22:48:26 +0000 (00:48 +0200)]
nv30: Emit fragment program using state objects

16 years agonv30: Emit vertex program using state objects
Patrice Mandin [Fri, 11 Jul 2008 22:19:15 +0000 (00:19 +0200)]
nv30: Emit vertex program using state objects

16 years agoegl: a minor overhauld of egl_xdri.c
Brian Paul [Fri, 11 Jul 2008 21:44:46 +0000 (15:44 -0600)]
egl: a minor overhauld of egl_xdri.c

Rely more on the libGL code to avoid duplicated efforts.  Also fix confusion
arising from multiple __DRIscreen objects.

16 years agoglx: added __glXPreferEGL() to tell libGL to prefer "egl_" drivers over regular DRI...
Brian Paul [Fri, 11 Jul 2008 21:43:52 +0000 (15:43 -0600)]
glx: added __glXPreferEGL() to tell libGL to prefer "egl_" drivers over regular DRI drivers.

Also, clean-up, consolidate the dlopen() code a bit.

16 years agobuild egl subdirs
Brian Paul [Thu, 10 Jul 2008 21:11:01 +0000 (15:11 -0600)]
build egl subdirs

16 years agonv30: Move constant buffers out of vert/frag prog structures
Patrice Mandin [Fri, 11 Jul 2008 21:17:47 +0000 (23:17 +0200)]
nv30: Move constant buffers out of vert/frag prog structures

16 years agonv30: Emit fragtex state using state objects
Patrice Mandin [Fri, 11 Jul 2008 20:42:42 +0000 (22:42 +0200)]
nv30: Emit fragtex state using state objects

16 years agonv30: split fragprog_upload from fragprog_bind
Patrice Mandin [Fri, 11 Jul 2008 20:06:12 +0000 (22:06 +0200)]
nv30: split fragprog_upload from fragprog_bind

16 years agonv30: split fragprog_prepare from fragprog_translate
Patrice Mandin [Fri, 11 Jul 2008 19:31:24 +0000 (21:31 +0200)]
nv30: split fragprog_prepare from fragprog_translate

16 years agonv30: Update miptree to match latest changes
Patrice Mandin [Fri, 11 Jul 2008 19:14:32 +0000 (21:14 +0200)]
nv30: Update miptree to match latest changes

16 years agogallium: Make dri drivers create a egl_name_dri.so if supported
Jakob Bornecrantz [Fri, 11 Jul 2008 18:01:33 +0000 (20:01 +0200)]
gallium: Make dri drivers create a egl_name_dri.so if supported

16 years agonv50: obey do_flip in surface_copy()
Ben Skeggs [Fri, 11 Jul 2008 12:48:11 +0000 (22:48 +1000)]
nv50: obey do_flip in surface_copy()

16 years agonv50: quick hack to get textures untiled on map, and tiled on unmap
Ben Skeggs [Fri, 11 Jul 2008 12:45:11 +0000 (22:45 +1000)]
nv50: quick hack to get textures untiled on map, and tiled on unmap

progs/fp/tri-tex is all good now rather than all scrambled :)

16 years agonouveau: winsys surface funcs deprecated, remove them
Ben Skeggs [Fri, 11 Jul 2008 12:24:24 +0000 (22:24 +1000)]
nouveau: winsys surface funcs deprecated, remove them

16 years agonv50: demagic tex filter / wrap mode
Ben Skeggs [Fri, 11 Jul 2008 12:01:29 +0000 (22:01 +1000)]
nv50: demagic tex filter / wrap mode

16 years agonv50: add some texture formats
Ben Skeggs [Fri, 11 Jul 2008 11:19:41 +0000 (21:19 +1000)]
nv50: add some texture formats

16 years agonv50: split tic construction out into own file
Ben Skeggs [Fri, 11 Jul 2008 10:49:06 +0000 (20:49 +1000)]
nv50: split tic construction out into own file

16 years agonv50: add license headers to .c files
Ben Skeggs [Fri, 11 Jul 2008 10:44:39 +0000 (20:44 +1000)]
nv50: add license headers to .c files

16 years agogallium: Re-order the GALLIUM_AUXILIARY_DIRS to satisfy dependencies on util
Jakob Bornecrantz [Thu, 10 Jul 2008 20:39:56 +0000 (22:39 +0200)]
gallium: Re-order the GALLIUM_AUXILIARY_DIRS to satisfy dependencies on util

16 years agogallium: check for FEATURE_feedback and FEATURE_drawpix when creating/using the aux...
Brian Paul [Thu, 10 Jul 2008 20:23:27 +0000 (14:23 -0600)]
gallium: check for FEATURE_feedback and FEATURE_drawpix when creating/using the aux draw module

16 years agoegl: added EGL_OPENVG_API case (allow all APIs)
Brian Paul [Thu, 10 Jul 2008 19:30:37 +0000 (13:30 -0600)]
egl: added EGL_OPENVG_API case (allow all APIs)

16 years agoegl: add all EGL_*_BITs to ClientAPIsMask
Brian Paul [Thu, 10 Jul 2008 19:29:42 +0000 (13:29 -0600)]
egl: add all EGL_*_BITs to ClientAPIsMask

16 years agogallium: re-order the GALLIUM_AUXILIARY_DIRS to satisfy .a interdependencies
Brian Paul [Thu, 10 Jul 2008 19:27:30 +0000 (13:27 -0600)]
gallium: re-order the GALLIUM_AUXILIARY_DIRS to satisfy .a interdependencies

libutil.a and libtranslate.a depend on libcso_cache.a so put them in that order.

16 years agoegl: implement xdri_eglGetProcAddress() for gallium
Brian Paul [Thu, 10 Jul 2008 16:48:28 +0000 (10:48 -0600)]
egl: implement xdri_eglGetProcAddress() for gallium

Plus comments, clean-ups.

16 years agonv50: enable GART usage for vertex buffers
Ben Skeggs [Thu, 10 Jul 2008 16:01:23 +0000 (02:01 +1000)]
nv50: enable GART usage for vertex buffers

AKA "I can haz fast b0rk3d glxgears!!!"

16 years agonv50: get clear-scissor working
Ben Skeggs [Thu, 10 Jul 2008 15:53:28 +0000 (01:53 +1000)]
nv50: get clear-scissor working

16 years agonouveau: update to latest object header
Ben Skeggs [Thu, 10 Jul 2008 14:21:42 +0000 (00:21 +1000)]
nouveau: update to latest object header

16 years agonv50: more "abuse" by using libc malloc etc..
Ben Skeggs [Thu, 10 Jul 2008 14:15:01 +0000 (00:15 +1000)]
nv50: more "abuse" by using libc malloc etc..

16 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Thu, 10 Jul 2008 14:05:53 +0000 (00:05 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

16 years agomesa: check for null shader->Source
Brian Paul [Wed, 9 Jul 2008 21:54:21 +0000 (15:54 -0600)]
mesa: check for null shader->Source

16 years agomesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity check
Brian Paul [Wed, 9 Jul 2008 21:08:39 +0000 (15:08 -0600)]
mesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity check

16 years agomesa: call glutDestroyWindow() on exit
Brian Paul [Wed, 9 Jul 2008 21:52:04 +0000 (15:52 -0600)]
mesa: call glutDestroyWindow() on exit

16 years agomesa: disable fprintf() error
Brian Paul [Wed, 9 Jul 2008 21:51:18 +0000 (15:51 -0600)]
mesa: disable fprintf() error

16 years agoegl: link libEGL w/ additional libs
Brian Paul [Wed, 9 Jul 2008 21:49:59 +0000 (15:49 -0600)]
egl: link libEGL w/ additional libs

16 years agoegl: misc updates/fixes
Brian Paul [Wed, 9 Jul 2008 21:47:27 +0000 (15:47 -0600)]
egl: misc updates/fixes

Set surface size when created.
Implement dri_find_dri_screen().
Look for "egl_xxx_dri.so" library before regular DRI driver.

16 years agonv30: min/max lod are used for mipmap, there is just enable bit in tx_format
Patrice Mandin [Wed, 9 Jul 2008 21:23:39 +0000 (23:23 +0200)]
nv30: min/max lod are used for mipmap, there is just enable bit in tx_format

16 years agonv30: Update defines from nouveau_class.h
Patrice Mandin [Wed, 9 Jul 2008 20:13:01 +0000 (22:13 +0200)]
nv30: Update defines from nouveau_class.h

16 years agonv30: Update defines from nouveau_class.h
Patrice Mandin [Wed, 9 Jul 2008 20:03:59 +0000 (22:03 +0200)]
nv30: Update defines from nouveau_class.h

16 years agonv30: update nouveau_class.h
Patrice Mandin [Wed, 9 Jul 2008 19:51:22 +0000 (21:51 +0200)]
nv30: update nouveau_class.h

16 years agogallium: fix logic in pb_check_usage()
Brian Paul [Wed, 9 Jul 2008 17:46:16 +0000 (11:46 -0600)]
gallium: fix logic in pb_check_usage()

16 years agomesa: check for OpenBSD (bug 15604)
Brian Paul [Wed, 9 Jul 2008 14:48:41 +0000 (08:48 -0600)]
mesa: check for OpenBSD (bug 15604)

cherry-picked from master

16 years agomesa: fix state.clip[n].plane parsing bug (bug 16611)
Brian Paul [Wed, 9 Jul 2008 14:47:23 +0000 (08:47 -0600)]
mesa: fix state.clip[n].plane parsing bug (bug 16611)

cherry-picked from master

16 years agoegl: plug a small memleak
Zack Rusin [Wed, 9 Jul 2008 14:20:28 +0000 (10:20 -0400)]
egl: plug a small memleak

16 years agodraw: remove some debug output
Zack Rusin [Wed, 9 Jul 2008 13:29:49 +0000 (09:29 -0400)]
draw: remove some debug output

16 years agomesa: remove debug code
Brian Paul [Tue, 8 Jul 2008 22:58:50 +0000 (16:58 -0600)]
mesa: remove debug code

16 years agomesa: implement glGetUniformiv() with new ctx->Driver function
Brian Paul [Tue, 8 Jul 2008 22:12:01 +0000 (16:12 -0600)]
mesa: implement glGetUniformiv() with new ctx->Driver function

The old implementation could overwrite the caller's param buffer.

16 years agomesa: fix bug/failure in recursive function inlining
Brian Paul [Tue, 8 Jul 2008 21:04:47 +0000 (15:04 -0600)]
mesa: fix bug/failure in recursive function inlining

Fixes a failure for cases such as y = f(a, f(a, b))
All the usual tests still pass but regressions are possible...

16 years agogallium: tweak printing of generic declarations
Brian Paul [Tue, 8 Jul 2008 21:00:11 +0000 (15:00 -0600)]
gallium: tweak printing of generic declarations

16 years agomesa: more debug output
Brian Paul [Tue, 8 Jul 2008 20:59:31 +0000 (14:59 -0600)]
mesa: more debug output

16 years agomesa: compute global var size before doing codegen
Brian Paul [Tue, 8 Jul 2008 19:05:43 +0000 (13:05 -0600)]
mesa: compute global var size before doing codegen

16 years agomesa: add missing VARYING case to storage_string()
Brian Paul [Tue, 8 Jul 2008 19:02:33 +0000 (13:02 -0600)]
mesa: add missing VARYING case to storage_string()

16 years agonv10: use the gallium alloc/free wrappers.
Stephane Marchesin [Tue, 8 Jul 2008 18:26:04 +0000 (20:26 +0200)]
nv10: use the gallium alloc/free wrappers.

16 years agonv04: use FREE/MALLOC like a good gallium boy should.
Stephane Marchesin [Tue, 8 Jul 2008 18:06:57 +0000 (20:06 +0200)]
nv04: use FREE/MALLOC like a good gallium boy should.

16 years agoi915: Takedown EGL screen
Jakob Bornecrantz [Tue, 8 Jul 2008 14:54:22 +0000 (16:54 +0200)]
i915: Takedown EGL screen

16 years agoMerge branch 'gallium-0.1' of git+ssh://marcheu@git.freedesktop.org/git/nouveau/mesa...
Stephane Marchesin [Tue, 8 Jul 2008 14:38:55 +0000 (16:38 +0200)]
Merge branch 'gallium-0.1' of git+ssh://marcheu@git.freedesktop.org/git/nouveau/mesa into gallium-0.1

16 years agonv30: use native instructions.
Stephane Marchesin [Tue, 8 Jul 2008 14:38:27 +0000 (16:38 +0200)]
nv30: use native instructions.

16 years agoi915: Use deviceID in EGL device create
Jakob Bornecrantz [Tue, 8 Jul 2008 12:44:23 +0000 (14:44 +0200)]
i915: Use deviceID in EGL device create

16 years agoi915: Complete the screen -> device renaming
Jakob Bornecrantz [Tue, 8 Jul 2008 12:41:17 +0000 (14:41 +0200)]
i915: Complete the screen -> device renaming

16 years agoi915: Renamed intel_screen to intel_device
Jakob Bornecrantz [Tue, 8 Jul 2008 12:16:15 +0000 (14:16 +0200)]
i915: Renamed intel_screen to intel_device

The renameing makes more sense, why because:
In egl you have a display/driver/device as the
basis, and you have screens as outputs.

16 years agonv50: make use of nouveau drm 0.0.11 to get 3d going
Ben Skeggs [Tue, 8 Jul 2008 02:51:29 +0000 (12:51 +1000)]
nv50: make use of nouveau drm 0.0.11 to get 3d going

16 years agomesa: added GLAPIENTRY keywords
Jonathan White [Mon, 7 Jul 2008 23:56:29 +0000 (17:56 -0600)]
mesa: added GLAPIENTRY keywords

16 years agoegl: updated GL_APIENTRY for Windows
Jonathan White [Mon, 7 Jul 2008 23:56:09 +0000 (17:56 -0600)]
egl: updated GL_APIENTRY for Windows

16 years agonv10: there are no 3D textures.
Stephane Marchesin [Mon, 7 Jul 2008 23:34:36 +0000 (01:34 +0200)]
nv10: there are no 3D textures.

16 years agonv04: Hook the lib into the build.
Stephane Marchesin [Mon, 7 Jul 2008 23:32:32 +0000 (01:32 +0200)]
nv04: Hook the lib into the build.

16 years agonv04: use BEGIN_RING_NI
Stephane Marchesin [Mon, 7 Jul 2008 23:30:48 +0000 (01:30 +0200)]
nv04: use BEGIN_RING_NI

16 years agonv04.
Stephane Marchesin [Mon, 7 Jul 2008 23:06:18 +0000 (01:06 +0200)]
nv04.

16 years agoraw2png: More helpful messages. Handle PIPE_FORMAT_A8B8G8R8_SNORM.
José Fonseca [Mon, 7 Jul 2008 10:35:23 +0000 (19:35 +0900)]
raw2png: More helpful messages. Handle PIPE_FORMAT_A8B8G8R8_SNORM.