mesa.git
18 years agoadd some r300 information
Dave Airlie [Wed, 28 Dec 2005 23:42:41 +0000 (23:42 +0000)]
add some r300 information

18 years agoupdate to new API
Dave Airlie [Fri, 23 Dec 2005 08:42:29 +0000 (08:42 +0000)]
update to new API

18 years agothis needs to be calloced
Dave Airlie [Fri, 23 Dec 2005 08:17:44 +0000 (08:17 +0000)]
this needs to be calloced

18 years agofixup driver for some api changes
Dave Airlie [Fri, 23 Dec 2005 07:58:24 +0000 (07:58 +0000)]
fixup driver for some api changes

18 years agoHandle fatal case.
Aapo Tahkola [Sun, 18 Dec 2005 21:40:13 +0000 (21:40 +0000)]
Handle fatal case.

18 years agoDrop output checking.
Aapo Tahkola [Sat, 17 Dec 2005 18:59:18 +0000 (18:59 +0000)]
Drop output checking.

18 years agoNo you arent.
Aapo Tahkola [Sat, 17 Dec 2005 12:28:58 +0000 (12:28 +0000)]
No you arent.

18 years agoWarn only when being enabled.
Aapo Tahkola [Sat, 17 Dec 2005 12:20:51 +0000 (12:20 +0000)]
Warn only when being enabled.

18 years agoI think this has been tested well enough already.
Aapo Tahkola [Sat, 17 Dec 2005 12:08:41 +0000 (12:08 +0000)]
I think this has been tested well enough already.

18 years agoEnable CB_DPATH by default.
Aapo Tahkola [Sat, 17 Dec 2005 11:59:13 +0000 (11:59 +0000)]
Enable CB_DPATH by default.

18 years agoFix (likely) typo.
Aapo Tahkola [Sat, 17 Dec 2005 11:43:59 +0000 (11:43 +0000)]
Fix (likely) typo.

18 years agoAdd some missing hooks. This should fix various little problems with window movement...
Aapo Tahkola [Sat, 17 Dec 2005 11:39:40 +0000 (11:39 +0000)]
Add some missing hooks. This should fix various little problems with window movement and 2d windows flashing on top of 3d windows. This problem was previously shadowed by r300ResetHwState as it gets called frequently.

18 years agominor code movement
Brian Paul [Sat, 17 Dec 2005 05:37:15 +0000 (05:37 +0000)]
minor code movement

18 years agofix thinko in last revision.
Karl Schultz [Fri, 16 Dec 2005 16:38:44 +0000 (16:38 +0000)]
fix thinko in last revision.

18 years agomove va_end() call (Evgeny Kotsuba)
Brian Paul [Thu, 15 Dec 2005 15:23:54 +0000 (15:23 +0000)]
move va_end() call (Evgeny Kotsuba)

18 years agoWork In Progress. Move some of the frame buffer, render buffer, etc init code from...
Karl Schultz [Thu, 15 Dec 2005 01:02:37 +0000 (01:02 +0000)]
Work In Progress.  Move some of the frame buffer, render buffer, etc init code from the create context path to the make current path, where it is lazily initialized.  This didn't buy me very much except to make it look closer to the X11 driver.  Fix up some of this same code to correct some errors.
The next step is to reorganize the wmesa context data structure to inherit the gl_context by containment so I can have access to the wmesa context in the update state path.  The driver is still currently not responding to changes in the Draw and Read Buffer state.

18 years agoregenerate to pick up glGetQueryObject[u]i64vEXT funcs
Brian Paul [Wed, 14 Dec 2005 14:23:37 +0000 (14:23 +0000)]
regenerate to pick up glGetQueryObject[u]i64vEXT funcs

18 years agoFix typo.
Keith Whitwell [Wed, 14 Dec 2005 09:31:25 +0000 (09:31 +0000)]
Fix typo.

18 years agouse GLbitfield instead of GLuint
Brian Paul [Wed, 14 Dec 2005 03:06:16 +0000 (03:06 +0000)]
use GLbitfield instead of GLuint

18 years agoRemoved the GL_SGIX/SGIS_pixel_texture extensions. Same thing can be
Brian Paul [Wed, 14 Dec 2005 03:04:58 +0000 (03:04 +0000)]
Removed the GL_SGIX/SGIS_pixel_texture extensions.  Same thing can be
done with fragment programs nowadays.

18 years agofix from Roland for mipmapped compressed textures
Dave Airlie [Tue, 13 Dec 2005 19:53:28 +0000 (19:53 +0000)]
fix from Roland for mipmapped compressed textures
remove some debug

18 years agosilence warning, bug 5318
Brian Paul [Mon, 12 Dec 2005 15:27:55 +0000 (15:27 +0000)]
silence warning, bug 5318

18 years agoSplit _MaintainTexEnvProgram into two flags _Maintain and _Use. This
Keith Whitwell [Mon, 12 Dec 2005 12:57:08 +0000 (12:57 +0000)]
Split _MaintainTexEnvProgram into two flags _Maintain and _Use.  This
restores the ability to run the software driver with program TNL but
tradtional swrast.

18 years agoRegenerate for recent glapi changes (GetQueryObjecti64vEXT).
Eric Anholt [Sun, 11 Dec 2005 07:42:37 +0000 (07:42 +0000)]
Regenerate for recent glapi changes (GetQueryObjecti64vEXT).

18 years agos/eglShowSurfaceMESA/eglShowScreenSurfaceMESA/
Brian Paul [Sat, 10 Dec 2005 17:59:36 +0000 (17:59 +0000)]
s/eglShowSurfaceMESA/eglShowScreenSurfaceMESA/

18 years agoRename eglDRIShowSurfaceMESA.
Brian Paul [Sat, 10 Dec 2005 17:56:00 +0000 (17:56 +0000)]
Rename eglDRIShowSurfaceMESA.
s/_eglAddMode/_eglAddNewMode/

18 years agoupdates to match other changes elsewhere
Brian Paul [Sat, 10 Dec 2005 17:55:15 +0000 (17:55 +0000)]
updates to match other changes elsewhere

18 years agorename eglShowSurfaceMESA, add EGL_SCREEN_POSITION_GRANULARITY_MESA
Brian Paul [Sat, 10 Dec 2005 17:54:36 +0000 (17:54 +0000)]
rename eglShowSurfaceMESA, add EGL_SCREEN_POSITION_GRANULARITY_MESA

18 years agoSome initial per-thread support.
Brian Paul [Sat, 10 Dec 2005 17:54:00 +0000 (17:54 +0000)]
Some initial per-thread support.
Rename eglShowSurfaceMESA to eglShowScreenSurfaceMESA.

18 years agoAdded EGL_SCREEN_POSITION_GRANULARITY_MESA query.
Brian Paul [Sat, 10 Dec 2005 17:53:07 +0000 (17:53 +0000)]
Added EGL_SCREEN_POSITION_GRANULARITY_MESA query.
Rename eglShowSurfaceMESA to eglShowScreenSurfaceMESA.

18 years agolots of updates, mode sorting, etc
Brian Paul [Sat, 10 Dec 2005 17:52:11 +0000 (17:52 +0000)]
lots of updates, mode sorting, etc

18 years agoimplement config sorting for eglChooseConfig()
Brian Paul [Sat, 10 Dec 2005 17:51:13 +0000 (17:51 +0000)]
implement config sorting for eglChooseConfig()

18 years ago'a' key to toggle animation
Brian Paul [Thu, 8 Dec 2005 17:49:50 +0000 (17:49 +0000)]
'a' key to toggle animation

18 years agobump version number
Brian Paul [Thu, 8 Dec 2005 14:51:36 +0000 (14:51 +0000)]
bump version number

18 years agodon't need LONGLONG typedefs
Brian Paul [Thu, 8 Dec 2005 14:50:28 +0000 (14:50 +0000)]
don't need LONGLONG typedefs

18 years agodo away with 'long long' usage
Brian Paul [Thu, 8 Dec 2005 14:50:03 +0000 (14:50 +0000)]
do away with 'long long' usage

18 years agoremove stray _ from GL[u]int64_EXT
Brian Paul [Thu, 8 Dec 2005 14:10:59 +0000 (14:10 +0000)]
remove stray _ from GL[u]int64_EXT

18 years agoupdate for symbol export changes
Karl Schultz [Thu, 8 Dec 2005 04:36:42 +0000 (04:36 +0000)]
update for symbol export changes

18 years agoadd {} to RENDER_SPAN macro to fix compilation problem
Karl Schultz [Thu, 8 Dec 2005 04:35:07 +0000 (04:35 +0000)]
add {} to RENDER_SPAN macro to fix compilation problem

18 years agouse 64-bit typedefs for portability
Karl Schultz [Thu, 8 Dec 2005 04:34:17 +0000 (04:34 +0000)]
use 64-bit typedefs for portability

18 years agoadd 64-bit typedefs for portability
Karl Schultz [Thu, 8 Dec 2005 04:33:17 +0000 (04:33 +0000)]
add 64-bit typedefs for portability

18 years agohandle 64-bit types for Windows.
Karl Schultz [Thu, 8 Dec 2005 04:32:02 +0000 (04:32 +0000)]
handle 64-bit types for Windows.

18 years agoreapply recent changes with Visual Studio instead of direct text editing.
Karl Schultz [Thu, 8 Dec 2005 04:30:44 +0000 (04:30 +0000)]
reapply recent changes with Visual Studio instead of direct text editing.

18 years agoUpdates for GL_EXT_timer_query:
Brian Paul [Wed, 7 Dec 2005 14:48:19 +0000 (14:48 +0000)]
Updates for GL_EXT_timer_query:
New GLint64EXT and GLuint64EXT types (use C99's long long types).
New glGetQueryObject[u]i64vEXT() functions.

18 years agoFix bugzilla 5253. Add {} around code in RENDER_SPAN macros when code includes a...
Karl Schultz [Wed, 7 Dec 2005 05:09:14 +0000 (05:09 +0000)]
Fix bugzilla 5253.  Add {} around code in RENDER_SPAN macros when code includes a variable declaration.

18 years agoMake missing interpolator inputs fatal
Aapo Tahkola [Tue, 6 Dec 2005 22:26:21 +0000 (22:26 +0000)]
Make missing interpolator inputs fatal

18 years agoFix secondary color for VP's
Aapo Tahkola [Tue, 6 Dec 2005 19:49:18 +0000 (19:49 +0000)]
Fix secondary color for VP's

18 years agoC++ fixes, mostly casts (Stephane Conversy)
Brian Paul [Tue, 6 Dec 2005 15:41:43 +0000 (15:41 +0000)]
C++ fixes, mostly casts (Stephane Conversy)

18 years agoAdd support for GL_EXT_secondary_color. It looks like using
Eric Anholt [Tue, 6 Dec 2005 10:38:37 +0000 (10:38 +0000)]
Add support for GL_EXT_secondary_color.  It looks like using
NEED_SECONDARY_COLOR to turn it off/on was what we wanted -- now results look
correct using seccolor on Savage IX and Savage4.

18 years agoAdd guard before calling ctx->Driver.BindProgram
Keith Whitwell [Mon, 5 Dec 2005 11:44:09 +0000 (11:44 +0000)]
Add guard before calling ctx->Driver.BindProgram

18 years agoFix AL8
Aapo Tahkola [Mon, 5 Dec 2005 09:30:58 +0000 (09:30 +0000)]
Fix AL8

18 years agoupdate r300 drm minimum to 20
Dave Airlie [Mon, 5 Dec 2005 01:14:13 +0000 (01:14 +0000)]
update r300 drm minimum to 20

18 years agoFix r300 rectangular texture upload and swtcl coordinate fixing same as radeon
Dave Airlie [Sun, 4 Dec 2005 00:37:35 +0000 (00:37 +0000)]
Fix r300 rectangular texture upload and swtcl coordinate fixing same as radeon
sw tcl

18 years agoAdded PCI_CHIP_RV410_5E4B (Adam Kirchhoff)
Brian Paul [Fri, 2 Dec 2005 23:57:37 +0000 (23:57 +0000)]
Added PCI_CHIP_RV410_5E4B (Adam Kirchhoff)

18 years agoFix two failures encountered when running out of memory during XImage
Brian Paul [Fri, 2 Dec 2005 19:41:43 +0000 (19:41 +0000)]
Fix two failures encountered when running out of memory during XImage
allocation.
Append \n to _mesa_warning() strings.

18 years agoTest sizeof(drm_handle_t) instead of LONG64 when returning handles
Brian Paul [Fri, 2 Dec 2005 18:17:11 +0000 (18:17 +0000)]
Test sizeof(drm_handle_t) instead of LONG64 when returning handles

18 years agofix _mesa_ffs() return, test for more platforms (Evgeny Kotsuba)
Brian Paul [Fri, 2 Dec 2005 18:06:01 +0000 (18:06 +0000)]
fix _mesa_ffs() return, test for more platforms (Evgeny Kotsuba)

18 years agoFix build issues on x86-64 due to missing include path in
Ian Romanick [Fri, 2 Dec 2005 00:25:06 +0000 (00:25 +0000)]
Fix build issues on x86-64 due to missing include path in
glapi_x86-64.S.

Bug: #5602

18 years agoCall ProgramStringNotify after creating tnl programs.
Keith Whitwell [Thu, 1 Dec 2005 14:24:37 +0000 (14:24 +0000)]
Call ProgramStringNotify after creating tnl programs.

18 years agoRemove VB->LastClipped
Keith Whitwell [Thu, 1 Dec 2005 12:54:21 +0000 (12:54 +0000)]
Remove VB->LastClipped

18 years agoClean up clipping somewhat
Keith Whitwell [Thu, 1 Dec 2005 12:53:15 +0000 (12:53 +0000)]
Clean up clipping somewhat
- no need to update ClipMask on generated vertices
- remove the VB->LastClipped value

Line clipping algorithm changed and simplified somewhat.  The old one
was based on the triangle routine and probably wouldn't have recognized
lines that were clipped down to nothing (ie culled, but not by a single
plane).

18 years agoremove uintptr_t cast
Brian Paul [Thu, 1 Dec 2005 01:00:13 +0000 (01:00 +0000)]
remove uintptr_t cast

18 years agotry removing need for the uintptr_t casts
Brian Paul [Thu, 1 Dec 2005 00:59:51 +0000 (00:59 +0000)]
try removing need for the uintptr_t casts

18 years agoAdded FinishRenderTexture() device driver function to indicate when
Brian Paul [Thu, 1 Dec 2005 00:25:00 +0000 (00:25 +0000)]
Added FinishRenderTexture() device driver function to indicate when
rendering to a texture has likely completed.
Fixed refcount issue in texture renderbuffer wrapper.

18 years agoadded comment about glTexImage and renderbuffers
Brian Paul [Thu, 1 Dec 2005 00:18:49 +0000 (00:18 +0000)]
added comment about glTexImage and renderbuffers

18 years agoget depthBits from the current drawbuffer
Brian Paul [Thu, 1 Dec 2005 00:15:41 +0000 (00:15 +0000)]
get depthBits from the current drawbuffer

18 years agofxt1_decode_1() should not be static
Brian Paul [Wed, 30 Nov 2005 14:47:34 +0000 (14:47 +0000)]
fxt1_decode_1() should not be static

18 years agoThis is a major re-work of the __indirect_glInterleavedArrays routine. The
Ian Romanick [Wed, 30 Nov 2005 00:06:48 +0000 (00:06 +0000)]
This is a major re-work of the __indirect_glInterleavedArrays routine. The
big, ugly, error prone switch-statement is replaced with a compact table.
I also added numerous comments, including a comment explaining how the
format parameter is validated.

Explicitly pass GL_FLOAT as the type in the cases where that is the only
possible value (e.g., everywhere except the call to glColorPointer).

Validate that stride is >= 0.

Tested with all modes (including the two error modes) of
progs/tests/interleave.c.

Bug: #5001, #5058
Reviewed by: Brian Paul

18 years agoassorted fixes for server-side direct rendering (bug 5199)
Brian Paul [Tue, 29 Nov 2005 23:01:43 +0000 (23:01 +0000)]
assorted fixes for server-side direct rendering (bug 5199)

18 years agoremove dri_client/ dir from tarball
Brian Paul [Tue, 29 Nov 2005 22:41:23 +0000 (22:41 +0000)]
remove dri_client/ dir from tarball

18 years agouse the files from the drm tree/package
Brian Paul [Tue, 29 Nov 2005 22:37:19 +0000 (22:37 +0000)]
use the files from the drm tree/package

18 years agoIf the DDX driver didn't reserve any video RAM for textures, fall back to
Michel Dänzer [Tue, 29 Nov 2005 13:13:34 +0000 (13:13 +0000)]
If the DDX driver didn't reserve any video RAM for textures, fall back to
using only GART memory for textures instead of segfaulting in the texture
management code. (Bug 5115)

18 years agoadded _EGLExtensions typedef
Brian Paul [Tue, 29 Nov 2005 04:44:33 +0000 (04:44 +0000)]
added _EGLExtensions typedef

18 years agoPut extension flags, string into separate struct.
Brian Paul [Tue, 29 Nov 2005 04:43:37 +0000 (04:43 +0000)]
Put extension flags, string into separate struct.

18 years agoclean up the drmGetMap/drmMap code
Brian Paul [Tue, 29 Nov 2005 04:18:38 +0000 (04:18 +0000)]
clean up the drmGetMap/drmMap code

18 years agoapparently need to load colormap after setting the mode to make it work reliably
Brian Paul [Tue, 29 Nov 2005 03:00:02 +0000 (03:00 +0000)]
apparently need to load colormap after setting the mode to make it work reliably

18 years agoRemove the many aliases for 'struct mem_block' in mm.h
Keith Whitwell [Mon, 28 Nov 2005 13:17:15 +0000 (13:17 +0000)]
Remove the many aliases for 'struct mem_block' in mm.h

18 years agoCorrect author attribution of mm.h
Keith Whitwell [Mon, 28 Nov 2005 12:05:29 +0000 (12:05 +0000)]
Correct author attribution of mm.h

18 years agocheck for driver_modes == NULL. Don't need driver_modes for EGL driver
Brian Paul [Mon, 28 Nov 2005 00:04:35 +0000 (00:04 +0000)]
check for driver_modes == NULL.  Don't need driver_modes for EGL driver

18 years agorearrange some code to put in more logical order, misc clean-ups
Brian Paul [Mon, 28 Nov 2005 00:02:06 +0000 (00:02 +0000)]
rearrange some code to put in more logical order, misc clean-ups

18 years agoLots of fixes, clean-ups, new comments, etc.
Brian Paul [Mon, 28 Nov 2005 00:00:08 +0000 (00:00 +0000)]
Lots of fixes, clean-ups, new comments, etc.
To set the FBdev video mode, need to add a \n char to the string.

18 years agoRedo _eglInitSurface() so it can be used with all surface types.
Brian Paul [Sun, 27 Nov 2005 23:57:19 +0000 (23:57 +0000)]
Redo _eglInitSurface() so it can be used with all surface types.
Redo _eglInitContext() to do error checking, attribute list parsing, etc.

18 years agoinclude stdint.h for BSD
Brian Paul [Sun, 27 Nov 2005 23:46:55 +0000 (23:46 +0000)]
include stdint.h for BSD

18 years agouse ADD_POINTERS macro instead of (uintptr_t) cast
Brian Paul [Fri, 25 Nov 2005 17:07:10 +0000 (17:07 +0000)]
use ADD_POINTERS macro instead of (uintptr_t) cast

18 years agoUse _mesa_exec_free for fp->func.
Keith Whitwell [Thu, 24 Nov 2005 10:59:10 +0000 (10:59 +0000)]
Use _mesa_exec_free for fp->func.

18 years agouse new _egl_api struct
Brian Paul [Thu, 24 Nov 2005 04:06:51 +0000 (04:06 +0000)]
use new _egl_api struct

18 years agouse _egl_api struct, make some functions static
Brian Paul [Thu, 24 Nov 2005 04:05:27 +0000 (04:05 +0000)]
use _egl_api struct, make some functions static

18 years agoMove all the EGL API function pointers into a new _egl_api struct.
Brian Paul [Thu, 24 Nov 2005 04:02:16 +0000 (04:02 +0000)]
Move all the EGL API function pointers into a new _egl_api struct.

18 years agoreport error token in message printed in _eglError()
Brian Paul [Thu, 24 Nov 2005 03:53:46 +0000 (03:53 +0000)]
report error token in message printed in _eglError()

18 years agochange error test in _eglParseConfigAttribs()
Brian Paul [Thu, 24 Nov 2005 03:48:19 +0000 (03:48 +0000)]
change error test in _eglParseConfigAttribs()

18 years agoinit attribs to EGL_DONT_CARE in _eglParseConfigAttribs()
Brian Paul [Thu, 24 Nov 2005 03:41:56 +0000 (03:41 +0000)]
init attribs to EGL_DONT_CARE in _eglParseConfigAttribs()

18 years agoCouple changes that were missed.
Aapo Tahkola [Wed, 23 Nov 2005 13:02:25 +0000 (13:02 +0000)]
Couple changes that were missed.

18 years agocheck/print EGL_SCREEN_BIT_MESA, fix eglGetDisplay() call
Brian Paul [Wed, 23 Nov 2005 01:45:25 +0000 (01:45 +0000)]
check/print EGL_SCREEN_BIT_MESA, fix eglGetDisplay() call

18 years agoChoose the display mode / surface size in an intelligent way.
Brian Paul [Wed, 23 Nov 2005 01:44:38 +0000 (01:44 +0000)]
Choose the display mode / surface size in an intelligent way.
Fix // comments.
More error checking, etc.

18 years agoupdate some comments
Brian Paul [Wed, 23 Nov 2005 01:42:40 +0000 (01:42 +0000)]
update some comments

18 years agofixed wrong return value in radeonShowSurfaceMESA()
Brian Paul [Wed, 23 Nov 2005 01:39:56 +0000 (01:39 +0000)]
fixed wrong return value in radeonShowSurfaceMESA()

18 years agochange error message
Brian Paul [Wed, 23 Nov 2005 01:38:30 +0000 (01:38 +0000)]
change error message

18 years agouse _eglLog()
Brian Paul [Wed, 23 Nov 2005 01:38:12 +0000 (01:38 +0000)]
use _eglLog()

18 years agoNew _eglLog() function to replace fprintf/printf calls for debug/info.
Brian Paul [Wed, 23 Nov 2005 01:37:30 +0000 (01:37 +0000)]
New _eglLog() function to replace fprintf/printf calls for debug/info.

18 years agoreference bug 5131 in comment in _tnl_free_vertices()
Brian Paul [Tue, 22 Nov 2005 23:29:27 +0000 (23:29 +0000)]
reference bug 5131 in comment in _tnl_free_vertices()