mesa.git
16 years agoMerge branch 'gallium-tex-surfaces' into gallium-0.1
Jakob Bornecrantz [Fri, 30 May 2008 11:46:18 +0000 (13:46 +0200)]
Merge branch 'gallium-tex-surfaces' into gallium-0.1

Conflicts:

src/gallium/drivers/i915simple/i915_context.h

16 years agoi915: Remade texture allocation code again
Jakob Bornecrantz [Fri, 30 May 2008 11:31:42 +0000 (13:31 +0200)]
i915: Remade texture allocation code again

16 years agoi915: Fix extentions not being set
Jakob Bornecrantz [Fri, 30 May 2008 11:30:51 +0000 (13:30 +0200)]
i915: Fix extentions not being set

16 years agosis: Removed useless comment
Jakob Bornecrantz [Fri, 30 May 2008 11:36:52 +0000 (13:36 +0200)]
sis: Removed useless comment

16 years agoegl: new EGL/gallium/softpipe/xlib winsys
Brian Paul [Thu, 29 May 2008 23:02:55 +0000 (17:02 -0600)]
egl: new EGL/gallium/softpipe/xlib winsys

Checkpoint commit.  Most required code is in place, and compiles, but
totally untested.

16 years agoegl: added Name field to _EGLDriver so a driver name string can propogate up through...
Brian Paul [Thu, 29 May 2008 23:02:31 +0000 (17:02 -0600)]
egl: added Name field to _EGLDriver so a driver name string can propogate up through EGL_VERSION string

16 years agoegl: use softpipe_egl driver by default
Brian Paul [Thu, 29 May 2008 23:01:19 +0000 (17:01 -0600)]
egl: use softpipe_egl driver by default

16 years agocomments in _eglMain()
Brian Paul [Wed, 28 May 2008 16:40:25 +0000 (10:40 -0600)]
comments in _eglMain()

16 years agogallium: Provide the INT64_C/UINT64_C macros.
José Fonseca [Thu, 29 May 2008 12:09:06 +0000 (21:09 +0900)]
gallium: Provide the INT64_C/UINT64_C macros.

"long long" types and 1234LL constants are not supported by eVC.

16 years agogallium: Replace getenv by placeholder code on WinCE.
José Fonseca [Thu, 29 May 2008 10:24:53 +0000 (19:24 +0900)]
gallium: Replace getenv by placeholder code on WinCE.

WinCE processes supposedly have environment, but it is not clear which API to use.

16 years agodraw: quieten some debug
Keith Whitwell [Thu, 29 May 2008 17:18:56 +0000 (18:18 +0100)]
draw: quieten some debug

16 years agoi915: Fix GPU lockup on resize
Jakob Bornecrantz [Thu, 29 May 2008 17:07:40 +0000 (19:07 +0200)]
i915: Fix GPU lockup on resize

16 years agoi915: Cleaned up intel_winsys_pipe.c
Jakob Bornecrantz [Thu, 29 May 2008 14:03:21 +0000 (16:03 +0200)]
i915: Cleaned up intel_winsys_pipe.c

16 years agoi915: Deprecated pipe_winsys buffer functions
Jakob Bornecrantz [Thu, 29 May 2008 13:49:23 +0000 (15:49 +0200)]
i915: Deprecated pipe_winsys buffer functions

16 years agodraw: add more switches to turn FSE on/off
Keith Whitwell [Thu, 29 May 2008 13:35:30 +0000 (14:35 +0100)]
draw: add more switches to turn FSE on/off

16 years agogallium: MSVC warning fixes.
José Fonseca [Thu, 29 May 2008 13:26:56 +0000 (22:26 +0900)]
gallium: MSVC warning fixes.

Conflicts:

src/gallium/auxiliary/draw/draw_pt_varray.c
src/gallium/auxiliary/draw/draw_pt_varray_tmp.h
src/gallium/auxiliary/draw/draw_pt_vcache.c

16 years agopsb: Make msvc happy.
José Fonseca [Thu, 29 May 2008 13:20:51 +0000 (22:20 +0900)]
psb: Make msvc happy.

Conflicts:

src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c

16 years agodraw: michal's patch for calling powf... teapot still not quite right
Keith Whitwell [Thu, 29 May 2008 12:26:01 +0000 (13:26 +0100)]
draw: michal's patch for calling powf...  teapot still not quite right

16 years agodraw: better calculation of fetch_count
Keith Whitwell [Thu, 29 May 2008 12:08:15 +0000 (13:08 +0100)]
draw: better calculation of fetch_count

16 years agodraw: remove printf
Keith Whitwell [Thu, 29 May 2008 11:42:39 +0000 (12:42 +0100)]
draw: remove printf

16 years agodraw: make sure constant buffer data is aligned before passing to aos.c
Keith Whitwell [Thu, 29 May 2008 11:38:49 +0000 (12:38 +0100)]
draw: make sure constant buffer data is aligned before passing to aos.c

16 years agoi915: Remove last usage of surface_alloc_storage
Jakob Bornecrantz [Thu, 29 May 2008 10:44:53 +0000 (12:44 +0200)]
i915: Remove last usage of surface_alloc_storage

16 years agoi915: Ops how did that get there
Jakob Bornecrantz [Thu, 29 May 2008 10:43:09 +0000 (12:43 +0200)]
i915: Ops how did that get there

16 years agoi915: Get up to date with the latest EGL changes
Jakob Bornecrantz [Thu, 29 May 2008 10:54:01 +0000 (12:54 +0200)]
i915: Get up to date with the latest EGL changes

16 years agodraw: draw_range_elements trial
Keith Whitwell [Thu, 29 May 2008 10:46:43 +0000 (11:46 +0100)]
draw: draw_range_elements trial

16 years agoscons: Remove duplicate entry.
Michal Krol [Thu, 29 May 2008 10:11:37 +0000 (12:11 +0200)]
scons: Remove duplicate entry.

16 years agodraw: Put PIPE_CDECL in the right places.
José Fonseca [Thu, 29 May 2008 09:28:02 +0000 (18:28 +0900)]
draw: Put PIPE_CDECL in the right places.

MSVC seems picky about this.

16 years agodraw: share machine
Keith Whitwell [Wed, 28 May 2008 23:17:53 +0000 (00:17 +0100)]
draw: share machine

16 years agodraw: enable FSE by default
Keith Whitwell [Wed, 28 May 2008 22:54:18 +0000 (23:54 +0100)]
draw: enable FSE by default

16 years agoegl: re-enable LOCAL_CFLAGS
Brian Paul [Wed, 28 May 2008 22:48:35 +0000 (16:48 -0600)]
egl: re-enable LOCAL_CFLAGS

16 years agoegl: remove unused Display field
Brian Paul [Wed, 28 May 2008 22:08:50 +0000 (16:08 -0600)]
egl: remove unused Display field

16 years agoegl: move a few small functions into new eglmisc.[ch] files
Brian Paul [Wed, 28 May 2008 21:50:58 +0000 (15:50 -0600)]
egl: move a few small functions into new eglmisc.[ch] files

16 years agoegl: make sure EGL_VERSION_STRING query returns same version as eglInitialize()
Brian Paul [Wed, 28 May 2008 21:43:41 +0000 (15:43 -0600)]
egl: make sure EGL_VERSION_STRING query returns same version as eglInitialize()

16 years agoegl: query/print EGL_CLIENT_APIS
Brian Paul [Wed, 28 May 2008 21:25:01 +0000 (15:25 -0600)]
egl: query/print EGL_CLIENT_APIS

16 years agoegl: include egldefines.h
Brian Paul [Wed, 28 May 2008 21:22:17 +0000 (15:22 -0600)]
egl: include egldefines.h

16 years agoegl: added egldefines.h
Brian Paul [Wed, 28 May 2008 21:21:52 +0000 (15:21 -0600)]
egl: added egldefines.h

16 years agoegl: bring card->driver lookup code into egldriver.c
Brian Paul [Wed, 28 May 2008 20:51:40 +0000 (14:51 -0600)]
egl: bring card->driver lookup code into egldriver.c

16 years agoegl: pass args to _eglOpenDriver()
Brian Paul [Wed, 28 May 2008 19:03:59 +0000 (13:03 -0600)]
egl: pass args to _eglOpenDriver()

16 years agoegl: added args string to _eglMain()
Brian Paul [Wed, 28 May 2008 18:56:36 +0000 (12:56 -0600)]
egl: added args string to _eglMain()

16 years agoegl: added eglstring.[ch]
Brian Paul [Wed, 28 May 2008 18:54:33 +0000 (12:54 -0600)]
egl: added eglstring.[ch]

16 years agoprototype new code to map card number to driver name
Brian Paul [Wed, 28 May 2008 17:45:50 +0000 (11:45 -0600)]
prototype new code to map card number to driver name

16 years agolink libEGLdri.so with libdrm
Brian Paul [Wed, 28 May 2008 17:44:47 +0000 (11:44 -0600)]
link libEGLdri.so with libdrm

16 years agortasm: special case for [ebp]
Keith Whitwell [Wed, 28 May 2008 15:36:45 +0000 (16:36 +0100)]
rtasm: special case for [ebp]

16 years agox-related EGL code (stub)
Brian Paul [Wed, 28 May 2008 14:42:13 +0000 (08:42 -0600)]
x-related EGL code (stub)

16 years agodraw: Use PIPE_CDECL.
José Fonseca [Wed, 28 May 2008 13:19:58 +0000 (22:19 +0900)]
draw: Use PIPE_CDECL.

16 years agoscons: Add new files.
José Fonseca [Wed, 28 May 2008 13:19:26 +0000 (22:19 +0900)]
scons: Add new files.

16 years agoscons: List missing files for draw module.
Michal Krol [Wed, 28 May 2008 13:10:39 +0000 (15:10 +0200)]
scons: List missing files for draw module.

16 years agodraw: Decorate callbacks with PIPE_CDECL.
Michal Krol [Wed, 28 May 2008 13:10:19 +0000 (15:10 +0200)]
draw: Decorate callbacks with PIPE_CDECL.

16 years agoi915: Add draw_flush to state changes
Jakob Bornecrantz [Wed, 28 May 2008 12:52:10 +0000 (14:52 +0200)]
i915: Add draw_flush to state changes

16 years agotgsi: Observe constness.
José Fonseca [Wed, 28 May 2008 12:48:30 +0000 (21:48 +0900)]
tgsi: Observe constness.

16 years agotranslate: Mark functions as PIPE_CDECL.
José Fonseca [Wed, 28 May 2008 12:47:25 +0000 (21:47 +0900)]
translate: Mark functions as PIPE_CDECL.

16 years agoMerge branch 'gallium-vertex-linear' into gallium-tex-surfaces
Keith Whitwell [Wed, 28 May 2008 12:33:09 +0000 (13:33 +0100)]
Merge branch 'gallium-vertex-linear' into gallium-tex-surfaces

16 years agoi915: DriConfigOptions started complaining on this line
Jakob Bornecrantz [Wed, 28 May 2008 12:22:50 +0000 (14:22 +0200)]
i915: DriConfigOptions started complaining on this line

16 years agoi915: Remove workaround for buggy draw module
Jakob Bornecrantz [Wed, 28 May 2008 12:22:07 +0000 (14:22 +0200)]
i915: Remove workaround for buggy draw module

16 years agoi915: Prepare for tiled private front and back buffers
Jakob Bornecrantz [Tue, 27 May 2008 19:15:36 +0000 (21:15 +0200)]
i915: Prepare for tiled private front and back buffers

16 years agoi915: Made vertex submission eaven faster
Jakob Bornecrantz [Tue, 27 May 2008 17:00:16 +0000 (19:00 +0200)]
i915: Made vertex submission eaven faster

16 years agoi915: Made vbuf work
Jakob Bornecrantz [Tue, 27 May 2008 11:18:25 +0000 (13:18 +0200)]
i915: Made vbuf work

16 years agoMerge branch 'gallium-vertex-linear' into gallium-0.1
Jakob Bornecrantz [Wed, 28 May 2008 10:42:42 +0000 (12:42 +0200)]
Merge branch 'gallium-vertex-linear' into gallium-0.1

Conflicts:

src/gallium/auxiliary/draw/draw_pt_varray.c

16 years agoi915: Don't segfault on buffer allocation error
Jakob Bornecrantz [Wed, 28 May 2008 10:27:52 +0000 (12:27 +0200)]
i915: Don't segfault on buffer allocation error

16 years agoi915: Make EGL_i915 compile
Jakob Bornecrantz [Wed, 28 May 2008 10:27:27 +0000 (12:27 +0200)]
i915: Make EGL_i915 compile

16 years agoi915: Make EGL_i915 segfault if modesetting is not working
Jakob Bornecrantz [Tue, 27 May 2008 23:18:45 +0000 (01:18 +0200)]
i915: Make EGL_i915 segfault if modesetting is not working

16 years agoegl: Temporarily disable eglx.[c|h] building
Jakob Bornecrantz [Wed, 28 May 2008 09:40:41 +0000 (11:40 +0200)]
egl: Temporarily disable eglx.[c|h] building

16 years agoegl: Make dri driver compile
Jakob Bornecrantz [Wed, 28 May 2008 09:33:52 +0000 (11:33 +0200)]
egl: Make dri driver compile

16 years agoegl: Make demo driver compile
Jakob Bornecrantz [Wed, 28 May 2008 09:32:18 +0000 (11:32 +0200)]
egl: Make demo driver compile

16 years agoegl: Fix warning in eglgears
Jakob Bornecrantz [Tue, 27 May 2008 23:17:28 +0000 (01:17 +0200)]
egl: Fix warning in eglgears

16 years agoegl: Make demo3 compile
Jakob Bornecrantz [Tue, 27 May 2008 23:16:06 +0000 (01:16 +0200)]
egl: Make demo3 compile

16 years agogallium: Windows CE portability fixes.
José Fonseca [Wed, 28 May 2008 07:12:14 +0000 (16:12 +0900)]
gallium: Windows CE portability fixes.

16 years agoinclude eglconfigutil.h
Brian Paul [Tue, 27 May 2008 22:58:23 +0000 (16:58 -0600)]
include eglconfigutil.h

16 years agoMove some config-related utility functions into new eglconfigutil.c file.
Brian Paul [Tue, 27 May 2008 22:57:49 +0000 (16:57 -0600)]
Move some config-related utility functions into new eglconfigutil.c file.

16 years agomisc updates, clean-ups, remove dependency on mtypes.h
Brian Paul [Tue, 27 May 2008 22:49:11 +0000 (16:49 -0600)]
misc updates, clean-ups, remove dependency on mtypes.h

16 years agominor overhaul/re-org of driver selection/loading code
Brian Paul [Tue, 27 May 2008 22:48:23 +0000 (16:48 -0600)]
minor overhaul/re-org of driver selection/loading code

16 years agosoftpipe: enable vbuf by default
Keith Whitwell [Tue, 27 May 2008 22:23:37 +0000 (23:23 +0100)]
softpipe: enable vbuf by default

The non-vbuf option is going away...

16 years agodraw: reset stipple counter whenever non-line prim encountered
Keith Whitwell [Tue, 27 May 2008 22:21:50 +0000 (23:21 +0100)]
draw: reset stipple counter whenever non-line prim encountered

16 years agoadded _eglGet*Handle() functions
Brian Paul [Tue, 27 May 2008 20:33:54 +0000 (14:33 -0600)]
added _eglGet*Handle() functions

These are the inverse of the _eglLookup*() functions.
Returns the public handle for a private surface/config/display/etc.
Removes glapi.c's direct access of private fields.

16 years agoadded EGL_OPENGL_API case
Brian Paul [Tue, 27 May 2008 20:23:56 +0000 (14:23 -0600)]
added EGL_OPENGL_API case

16 years agoeliminate the context hash table
Brian Paul [Tue, 27 May 2008 20:21:25 +0000 (14:21 -0600)]
eliminate the context hash table

In EGL 1.4 the opaque EGLContext type is a pointer so we can just cast
between public EGLContext handles and private _EGLContext pointers.

16 years agofix typo: s/Contexts/Surfaces/
Brian Paul [Tue, 27 May 2008 20:17:40 +0000 (14:17 -0600)]
fix typo: s/Contexts/Surfaces/

16 years agos/GLuint/unsigned/
Brian Paul [Tue, 27 May 2008 19:47:44 +0000 (13:47 -0600)]
s/GLuint/unsigned/

16 years agoinclude eglext.h, define EGL_EGLEXT_PROTOTYPES
Brian Paul [Tue, 27 May 2008 19:47:23 +0000 (13:47 -0600)]
include eglext.h, define EGL_EGLEXT_PROTOTYPES

16 years agoupdates for EGL 1.4
Brian Paul [Tue, 27 May 2008 19:47:07 +0000 (13:47 -0600)]
updates for EGL 1.4

16 years agoassorted changes to compile with new EGL 1.4 headers (untested)
Brian Paul [Tue, 27 May 2008 19:45:41 +0000 (13:45 -0600)]
assorted changes to compile with new EGL 1.4 headers (untested)

16 years agopipe stderr to /dev/null
Brian Paul [Tue, 27 May 2008 19:45:16 +0000 (13:45 -0600)]
pipe stderr to /dev/null

16 years agoobsolete with EGL 1.4
Brian Paul [Tue, 27 May 2008 19:45:01 +0000 (13:45 -0600)]
obsolete with EGL 1.4

16 years agoadded EGL_MESA_screen_surface, EGL_MESA_copy_context extensions
Brian Paul [Tue, 27 May 2008 19:43:56 +0000 (13:43 -0600)]
added EGL_MESA_screen_surface, EGL_MESA_copy_context extensions

16 years agoadded typedefs for X/Mesa
Brian Paul [Tue, 27 May 2008 19:43:34 +0000 (13:43 -0600)]
added typedefs for X/Mesa

16 years agoremove stray ! character
Brian Paul [Tue, 27 May 2008 19:43:17 +0000 (13:43 -0600)]
remove stray ! character

16 years agonew eglplatform.h from Khronos.org (replaces GLES/egltypes.h)
Brian Paul [Tue, 27 May 2008 19:43:01 +0000 (13:43 -0600)]
new eglplatform.h from Khronos.org (replaces GLES/egltypes.h)

16 years agonew eglext.h from Khronos
Brian Paul [Tue, 27 May 2008 19:42:38 +0000 (13:42 -0600)]
new eglext.h from Khronos

16 years agoEGL 1.4 header from Khronos
Brian Paul [Tue, 27 May 2008 19:42:12 +0000 (13:42 -0600)]
EGL 1.4 header from Khronos

16 years agodraw: support psize in vs_varient paths
Keith Whitwell [Tue, 27 May 2008 18:01:57 +0000 (19:01 +0100)]
draw: support psize in vs_varient paths

Preserve the vinfo "EMIT_*" format descriptors in the varient key,
and deal with PSIZE directly in each implementation.

16 years agodraw: add disabled debug code
Keith Whitwell [Tue, 27 May 2008 16:51:48 +0000 (17:51 +0100)]
draw: add disabled debug code

16 years agodraw: ensure vs outputs mapped correctly to vinfo attribs
Keith Whitwell [Tue, 27 May 2008 16:49:13 +0000 (17:49 +0100)]
draw: ensure vs outputs mapped correctly to vinfo attribs

16 years agodraw: fix ABS aliasing bug
Keith Whitwell [Tue, 27 May 2008 16:45:54 +0000 (17:45 +0100)]
draw: fix ABS aliasing bug

16 years agogallium: Autodetect WINCE.
José Fonseca [Tue, 27 May 2008 16:24:26 +0000 (01:24 +0900)]
gallium: Autodetect WINCE.

16 years agoscons: Play nice with MS Embedded Visual C++.
José Fonseca [Tue, 27 May 2008 16:24:06 +0000 (01:24 +0900)]
scons: Play nice with MS Embedded Visual C++.

16 years agogallium: Always unreference bitmap cache texture before resetting the cache.
Michel Dänzer [Tue, 27 May 2008 16:00:59 +0000 (17:00 +0100)]
gallium: Always unreference bitmap cache texture before resetting the cache.

Fixes assertion failure with tunnel2 demo.

16 years agodraw: explicitly list nr_inputs, outputs in varient key
Keith Whitwell [Tue, 27 May 2008 13:42:15 +0000 (14:42 +0100)]
draw: explicitly list nr_inputs, outputs in varient key

16 years agodraw: remove dead file
Keith Whitwell [Tue, 27 May 2008 13:17:57 +0000 (14:17 +0100)]
draw: remove dead file

16 years agodraw: Fixed typo in draw_pt_varray and added comments
Jakob Bornecrantz [Tue, 27 May 2008 11:15:52 +0000 (13:15 +0200)]
draw: Fixed typo in draw_pt_varray and added comments

16 years agodraw: Fix for EMIT_4UB case
Jakob Bornecrantz [Tue, 27 May 2008 10:59:46 +0000 (12:59 +0200)]
draw: Fix for EMIT_4UB case