mesa.git
17 years agoNew bin/minstall script - a minimal replacement for 'install'.
Brian Paul [Thu, 19 Oct 2006 20:09:05 +0000 (20:09 +0000)]
New bin/minstall script - a minimal replacement for 'install'.
Correctly handles symlinks so we can get rid of the COPY_LIBS stuff.

17 years agofix problem when CHAN_BITS == 32 (bug 8704), remove unneeded assertion
Brian Paul [Thu, 19 Oct 2006 14:02:42 +0000 (14:02 +0000)]
fix problem when CHAN_BITS == 32 (bug 8704), remove unneeded assertion

17 years agoFix nonportable pointer+unsigned arithmetic. Use pointer+int.
Michal Krol [Thu, 19 Oct 2006 08:07:00 +0000 (08:07 +0000)]
Fix nonportable pointer+unsigned arithmetic. Use pointer+int.

17 years agoadded clamp_colors(), updated assertions
Brian Paul [Wed, 18 Oct 2006 23:14:02 +0000 (23:14 +0000)]
added clamp_colors(), updated assertions

17 years agominor re-org, doxygen comments
Brian Paul [Wed, 18 Oct 2006 22:38:13 +0000 (22:38 +0000)]
minor re-org, doxygen comments

17 years agoChanged install filenames to libGL* and libOSMesa* so things work on Darwin
Brian Paul [Wed, 18 Oct 2006 22:05:13 +0000 (22:05 +0000)]
Changed install filenames to libGL* and libOSMesa* so things work on Darwin
where GL_LIB_NAME = libGL.dylib but the other library name is libGL.1.dylib
Unlike other platforms, the version number is in the middle of the name,
not at the end.
See bug 8671

17 years agoEnable GLX_SGI_make_current_read for radeon.
Ian Romanick [Wed, 18 Oct 2006 20:27:11 +0000 (20:27 +0000)]
Enable GLX_SGI_make_current_read for radeon.

Added code to track the drawable bound to the context for reading.  In
addition, when a drawable is initially bound (for reading or drawing)
or when the size of the drawable changes, update the size of the
framebuffer object that back the drawable (for software fallbacks).

Deprecate the old GetBufferSize interface.

Bump the driver date.

These changes were tested with wincopy on both direct rendering and
accelerated indirect rendering (AIGLX).

17 years agoDon't use x/y/w/h params given to Clear().
Brian Paul [Wed, 18 Oct 2006 20:03:20 +0000 (20:03 +0000)]
Don't use x/y/w/h params given to Clear().

17 years agoWant to stop passing x/y/width/height to Clear() function.
Brian Paul [Wed, 18 Oct 2006 20:02:42 +0000 (20:02 +0000)]
Want to stop passing x/y/width/height to Clear() function.
The coordinates need to be computed after we've got the hw lock.
Code updated to:
1. Ignore all/x/y/width/height/ params passed to Clear func.
2. Pass 0,0,0,0,0 to _swrast_Clear() until they're totally removed.

17 years agoDon't pass x/y/width/height to ctx->Driver.Accum().
Brian Paul [Wed, 18 Oct 2006 18:35:09 +0000 (18:35 +0000)]
Don't pass x/y/width/height to ctx->Driver.Accum().
Compute the region after we've locked (and possibly updated the buffer's size).
Same thing is needed for ctx->Driver.Clear().

17 years agoglDrawPixels, line clipping bug fixes
Brian Paul [Wed, 18 Oct 2006 18:03:54 +0000 (18:03 +0000)]
glDrawPixels, line clipping bug fixes

17 years agoFix broken line clipping.
Brian Paul [Wed, 18 Oct 2006 18:02:05 +0000 (18:02 +0000)]
Fix broken line clipping.
When both ends of the line were clipped, we were using the new v0 instead
of the original v0 when computing the location of the second vertex. Thus,
the second vertex's position was incorrect.
Thanks to Heath Feather for finding a test case.

17 years agoFix a dangerous use of ASSERT in an else-clause not enclosed in braces.
Brian Paul [Wed, 18 Oct 2006 17:36:57 +0000 (17:36 +0000)]
Fix a dangerous use of ASSERT in an else-clause not enclosed in braces.
We've been lucky if this hasn't been causing line rendering bugs.

17 years agoAlways convert colors to float before running a fragment shader/program.
Brian Paul [Tue, 17 Oct 2006 22:23:32 +0000 (22:23 +0000)]
Always convert colors to float before running a fragment shader/program.

17 years agofix fog color bug
Brian Paul [Tue, 17 Oct 2006 22:22:42 +0000 (22:22 +0000)]
fix fog color bug

17 years agoMove struct atifs_machine into s_atifragshader.c
Brian Paul [Tue, 17 Oct 2006 21:12:32 +0000 (21:12 +0000)]
Move struct atifs_machine into s_atifragshader.c
Add support for runtime colorbuffer types.

17 years agoSeperate interpolate_colors() and interpolate_specular().
Brian Paul [Tue, 17 Oct 2006 20:40:22 +0000 (20:40 +0000)]
Seperate interpolate_colors() and interpolate_specular().
Fix bugs in apply_aa_coverage().

17 years agoapply_aa_coverage() for ubyte/ushort/float
Brian Paul [Tue, 17 Oct 2006 20:22:53 +0000 (20:22 +0000)]
apply_aa_coverage() for ubyte/ushort/float

17 years agonew assertions - one of which is currently failing with arbfslight.c
Brian Paul [Tue, 17 Oct 2006 19:57:25 +0000 (19:57 +0000)]
new assertions - one of which is currently failing with arbfslight.c

17 years agoremove obsolete intelBufferSize(), bump driver date
Brian Paul [Tue, 17 Oct 2006 18:54:19 +0000 (18:54 +0000)]
remove obsolete intelBufferSize(), bump driver date

17 years agoRemove get_buffer_size()
Brian Paul [Tue, 17 Oct 2006 17:51:39 +0000 (17:51 +0000)]
Remove get_buffer_size()
Always check window size in XMesaMakeCurrent() in case glViewport is not
called.

17 years agoLots of fixes/changes to select color depth at runtime.
Brian Paul [Tue, 17 Oct 2006 17:44:43 +0000 (17:44 +0000)]
Lots of fixes/changes to select color depth at runtime.

17 years agocheck if ctx->Driver.GetBufferSize==NULL and no-op
Brian Paul [Tue, 17 Oct 2006 17:43:47 +0000 (17:43 +0000)]
check if ctx->Driver.GetBufferSize==NULL and no-op

17 years agoinclude x86-64.h to silence warning
Brian Paul [Tue, 17 Oct 2006 17:03:21 +0000 (17:03 +0000)]
include x86-64.h to silence warning

17 years agoFix CHAN_BITS=32 issues.
Brian Paul [Tue, 17 Oct 2006 17:03:00 +0000 (17:03 +0000)]
Fix CHAN_BITS=32 issues.
Save/restore array->ChanType in case colors are converted.

17 years agoAdded -clip option to test glCopyPixels beyond window bounds.
Brian Paul [Mon, 16 Oct 2006 23:22:44 +0000 (23:22 +0000)]
Added -clip option to test glCopyPixels beyond window bounds.
Clear dest window to black before copying.
Use glWindowPos2iARB().

17 years agoInit _UseTexEnvProgram to fix failed assertion in i915_render_start() - this may...
Brian Paul [Mon, 16 Oct 2006 22:02:33 +0000 (22:02 +0000)]
Init _UseTexEnvProgram to fix failed assertion in i915_render_start() - this may be temporary

17 years agoUpdates to intelWindowMoved():
Brian Paul [Mon, 16 Oct 2006 21:39:34 +0000 (21:39 +0000)]
Updates to intelWindowMoved():
Only need to call _mesa_resize_framebuffer() when we've detected a window
size change.
Set the drawFb->Initalized flag to GL_TRUE to avoid obsolete
Driver.GetBufferSize/ResizeBuffer calls in the Mesa code.

17 years agoTrack the currently bound read drawable and make sure its info is up
Ian Romanick [Mon, 16 Oct 2006 20:59:53 +0000 (20:59 +0000)]
Track the currently bound read drawable and make sure its info is up
to date.

17 years agoFix build when DEBUG is defined but DEBUG_MATH is not.
Ian Romanick [Mon, 16 Oct 2006 20:57:09 +0000 (20:57 +0000)]
Fix build when DEBUG is defined but DEBUG_MATH is not.

A couple places attempted to call _math_test_all_*_functions when
DEBUG was defined.  These routines only exist when DEBUG_MATH is
defined.

17 years agos/X86_SOURCES/ASM_SOURCES/ in ALL_SOURCES to try to fix make depend warnings (bug...
Brian Paul [Mon, 16 Oct 2006 20:51:50 +0000 (20:51 +0000)]
s/X86_SOURCES/ASM_SOURCES/ in ALL_SOURCES to try to fix make depend warnings (bug 8669)

17 years agoFix bug #8563.
Ian Romanick [Mon, 16 Oct 2006 17:50:19 +0000 (17:50 +0000)]
Fix bug #8563.

Fixes a GLX protocol problem when binding an indirect rendering context
after a direct rendering context.  In this case, the oldContetTag sent to
the server should be None, but the currectContextTag stored in the direct
rendering context (i.e., -1) was sent instead.

17 years agoSet _NEW_BUFFERS in _mesa_resize_framebuffer(). This makes sure the swrast
Brian Paul [Mon, 16 Oct 2006 17:26:30 +0000 (17:26 +0000)]
Set _NEW_BUFFERS in _mesa_resize_framebuffer().  This makes sure the swrast
module updates its state (CLIP_BIT) upon resizes.  The driver could do this
instead, but doing it here is safer.

17 years agoremove some old code that could cause infinite recursion
Brian Paul [Mon, 16 Oct 2006 16:39:54 +0000 (16:39 +0000)]
remove some old code that could cause infinite recursion

17 years agoallow >10 mipmap levels (patch by Benno Schulenberg) (bug 3130)
Brian Paul [Sun, 15 Oct 2006 22:30:35 +0000 (22:30 +0000)]
allow >10 mipmap levels (patch by Benno Schulenberg) (bug 3130)

17 years agoregenerated to get DRI_CONF_EXCESS_MIPMAP()
Brian Paul [Sun, 15 Oct 2006 22:29:16 +0000 (22:29 +0000)]
regenerated to get DRI_CONF_EXCESS_MIPMAP()

17 years agofix handling of textures with a base internal format that does not have all four...
Roland Scheidegger [Sun, 15 Oct 2006 21:47:56 +0000 (21:47 +0000)]
fix handling of textures with a base internal format that does not have all four rgba values set for radeon and r200 (discovered with a modified glean pixelFormats test, noone ever noticed in over 2 years). For radeon, use hw format I8 as previously, and change tex env to make the correct default values appear for both GL_ALPHA and GL_LUMINANCE textures. For r200, which supports GL_LUMINANCE just fine,  use the AL88 hw format for GL_ALPHA textures, since it seems like it's probably not worth the effort to fix up the texture environment (certainly complicated in case of ATI_fragment_shader programs).

17 years agoAdded #if / #else / #endif around code related to framebuffer initialization
Brian Paul [Sun, 15 Oct 2006 19:26:43 +0000 (19:26 +0000)]
Added #if / #else / #endif around code related to framebuffer initialization
to describe what should be changed in the drivers.

17 years agoupdated comments, mark GetBufferSize() and ResizeBuffers() as obsolete
Brian Paul [Sun, 15 Oct 2006 19:20:29 +0000 (19:20 +0000)]
updated comments, mark GetBufferSize() and ResizeBuffers() as obsolete

17 years agominor clean-up: s/intel->driDrawable/dPriv/
Brian Paul [Sun, 15 Oct 2006 19:08:11 +0000 (19:08 +0000)]
minor clean-up: s/intel->driDrawable/dPriv/

17 years agoRemove calls to _mesa_ResizeBuffersMESA() - generally replace with code to
Brian Paul [Sun, 15 Oct 2006 18:51:22 +0000 (18:51 +0000)]
Remove calls to _mesa_ResizeBuffersMESA() - generally replace with code to
check the current window size, then call _mesa_resize_framebuffer().

17 years agoRemove a bunch of "ctx->Driver.function = _swrast_Function" lines since
Brian Paul [Sun, 15 Oct 2006 18:31:29 +0000 (18:31 +0000)]
Remove a bunch of "ctx->Driver.function = _swrast_Function" lines since
default/fallback functions are already plugged in by the call to
_mesa_init_driver_functions().

17 years agoUse endianness test function provided by mesa.
Jerome Glisse [Sun, 15 Oct 2006 18:22:28 +0000 (18:22 +0000)]
Use endianness test function provided by mesa.

Use the _mesa_little_endian helper function insted
of the MESA_BIG_ENDIAN flag. There is still place
using this flag but we need to find how to submit
16bits elements on big endian computer.

17 years agoRemove Driver.ResizeBuffers = _mesa_resize_framebuffer lines.
Brian Paul [Sun, 15 Oct 2006 18:18:39 +0000 (18:18 +0000)]
Remove Driver.ResizeBuffers = _mesa_resize_framebuffer lines.
This is already done by the preceeding call to _mesa_init_driver_functions()
which plugs in default functions like that.

17 years agoincreate MaxTextureLevels to 11 (bug 3130)
Brian Paul [Sun, 15 Oct 2006 17:57:53 +0000 (17:57 +0000)]
increate MaxTextureLevels to 11 (bug 3130)

17 years agocheck if files exist before installing (Thierry Reding)
Brian Paul [Sun, 15 Oct 2006 16:38:09 +0000 (16:38 +0000)]
check if files exist before installing (Thierry Reding)

17 years agoallow specifying image size on cmd line
Brian Paul [Sat, 14 Oct 2006 23:24:45 +0000 (23:24 +0000)]
allow specifying image size on cmd line

17 years agoSome code movement so that the gl_framebuffer is fully initialized before
Brian Paul [Sat, 14 Oct 2006 23:02:26 +0000 (23:02 +0000)]
Some code movement so that the gl_framebuffer is fully initialized before
calling _mesa_make_current() to avoid hitting the initialize_framebuffer_size()
stuff in context.c

17 years agoBig re-org of buffer size management.
Brian Paul [Sat, 14 Oct 2006 22:52:17 +0000 (22:52 +0000)]
Big re-org of buffer size management.
All buffer resizes now handled by xmesa_check_and_update_buffer_size() which
uses the _mesa_resize_framebuffer() function.
Moved all low-level XImage/Pixmap resizing into xm_buffers.c file.
Also, update lots of comments for Doxygen.

17 years agocut and paste error: s/Width/Height/
Brian Paul [Sat, 14 Oct 2006 21:33:06 +0000 (21:33 +0000)]
cut and paste error: s/Width/Height/

17 years agobuild fix: s/Table/TableUB/
Brian Paul [Sat, 14 Oct 2006 20:28:36 +0000 (20:28 +0000)]
build fix: s/Table/TableUB/

17 years agoassorted clean-ups
Brian Paul [Sat, 14 Oct 2006 15:22:18 +0000 (15:22 +0000)]
assorted clean-ups

17 years agoimplement ARB_point_parameters and ARB_point_sprite on r200. The code is nearly the...
Roland Scheidegger [Fri, 13 Oct 2006 22:10:05 +0000 (22:10 +0000)]
implement ARB_point_parameters and ARB_point_sprite on r200. The code is nearly the same as outlined in bug #4707, except it disables perspective correction for point sprites to make them actually work. And, separate the state atom into two as the tcl parameters would overwrite vertex program parameters when active. Also implement the GL_VERTEX_PROGRAM_POINT_SIZE_ARB option to make vertex programs outputting a point size work correctly (untested). Smooth points will still always be size 1. While here, enable gouraud shading for fog when using fog coord.

17 years agoremove needless condition
Brian Paul [Fri, 13 Oct 2006 17:45:08 +0000 (17:45 +0000)]
remove needless condition

17 years agoConsolidate, move, fix code related to color index and stencil image transfer
Brian Paul [Fri, 13 Oct 2006 17:41:23 +0000 (17:41 +0000)]
Consolidate, move, fix code related to color index and stencil image transfer
operations (shift, offset, table lookup, etc).

17 years agoFix dumb build errors.
Ian Romanick [Fri, 13 Oct 2006 17:34:01 +0000 (17:34 +0000)]
Fix dumb build errors.

I always build with -DGLX_USE_TLS, so I never hit these paths.  glapi.h is
required in some places because _glapi_Dispatch is declared there, but
_glapi_tls_Dispatch is declared in glthread.h.

17 years agoIn _mesa_pack_rgba_span_float() we don't need to make a temporary copy of
Brian Paul [Fri, 13 Oct 2006 16:34:25 +0000 (16:34 +0000)]
In _mesa_pack_rgba_span_float() we don't need to make a temporary copy of
incoming colors when applying pixel transfer ops.  In all cases, the
caller either indicates there's no pixel transfer ops, or the incoming
colors are coming from temporary storage already and can be safely
modified.

17 years agos/GLuint/GLbitfield/
Brian Paul [Fri, 13 Oct 2006 15:11:47 +0000 (15:11 +0000)]
s/GLuint/GLbitfield/

17 years agos/GL_FALSE/0x0/
Brian Paul [Fri, 13 Oct 2006 15:10:55 +0000 (15:10 +0000)]
s/GL_FALSE/0x0/

17 years agoremoved obsolete _mesa_pack_rgba_span_chan()
Brian Paul [Fri, 13 Oct 2006 15:00:35 +0000 (15:00 +0000)]
removed obsolete _mesa_pack_rgba_span_chan()

17 years agoinclude glapi.h to fix broken build
Brian Paul [Fri, 13 Oct 2006 13:28:48 +0000 (13:28 +0000)]
include glapi.h to fix broken build

17 years agoUpload of interleaved arrays currently assumes that position is the
Keith Whitwell [Fri, 13 Oct 2006 11:21:55 +0000 (11:21 +0000)]
Upload of interleaved arrays currently assumes that position is the
first element in the interleaved group.  Add a test to catch cases
where this isn't true and use per-array uploads instead.  Fixes compiz
glitches on x64.

17 years agoMake sure instructions are zero'd out before use.
Keith Whitwell [Fri, 13 Oct 2006 11:20:25 +0000 (11:20 +0000)]
Make sure instructions are zero'd out before use.

17 years agoUse unsigned long batchbuffer offset, fixes x64 warnings.
Keith Whitwell [Fri, 13 Oct 2006 11:19:38 +0000 (11:19 +0000)]
Use unsigned long batchbuffer offset, fixes x64 warnings.

17 years agoFix printf warning.
Keith Whitwell [Fri, 13 Oct 2006 11:17:37 +0000 (11:17 +0000)]
Fix printf warning.

17 years agoUse unsigned long cast for checking pointer alignment, fixes x64 warnings.
Keith Whitwell [Fri, 13 Oct 2006 11:16:45 +0000 (11:16 +0000)]
Use unsigned long cast for checking pointer alignment, fixes x64 warnings.

17 years agoUse mesa function to get opcode name rather than an internal table.
Keith Whitwell [Fri, 13 Oct 2006 11:14:43 +0000 (11:14 +0000)]
Use mesa function to get opcode name rather than an internal table.

17 years agoIndent and cosmetic changes.
Michal Krol [Fri, 13 Oct 2006 08:44:32 +0000 (08:44 +0000)]
Indent and cosmetic changes.

17 years agoRevamp color table code.
Brian Paul [Fri, 13 Oct 2006 00:44:31 +0000 (00:44 +0000)]
Revamp color table code.
Always store all color tables as both float and ubyte.

17 years agoadjust_colors() function replaces old _mesa_chan_to_float_span() function.
Brian Paul [Thu, 12 Oct 2006 23:48:57 +0000 (23:48 +0000)]
adjust_colors() function replaces old _mesa_chan_to_float_span() function.

17 years agouse _mesa_map_ci8_to_rgba8() instead of _mesa_map_ci8_to_rgba()
Brian Paul [Thu, 12 Oct 2006 23:47:51 +0000 (23:47 +0000)]
use _mesa_map_ci8_to_rgba8() instead of _mesa_map_ci8_to_rgba()

17 years agoremove _mesa_chan_to_float_span(), rename _mesa_map_ci8_to_rgba()
Brian Paul [Thu, 12 Oct 2006 23:47:19 +0000 (23:47 +0000)]
remove _mesa_chan_to_float_span(), rename _mesa_map_ci8_to_rgba()

17 years ago_mesa_map_ci_to_rgba_chan() no longer used
Brian Paul [Thu, 12 Oct 2006 23:18:05 +0000 (23:18 +0000)]
_mesa_map_ci_to_rgba_chan() no longer used

17 years agoLots of changes to support runtime renderbuffer depths.
Brian Paul [Thu, 12 Oct 2006 23:17:02 +0000 (23:17 +0000)]
Lots of changes to support runtime renderbuffer depths.
_swrast_read_rgba_span() now takes a datatype parameter.
New optimization for glReadPixels(format=GL_RGB).
New glCopyPixels optimization for the simple, common cases.

17 years agodon't use temp storage in _mesa_convert_colors() when possible
Brian Paul [Thu, 12 Oct 2006 23:14:19 +0000 (23:14 +0000)]
don't use temp storage in _mesa_convert_colors() when possible

17 years agoremove some debug code invalidated by prev check-in
Brian Paul [Thu, 12 Oct 2006 15:55:04 +0000 (15:55 +0000)]
remove some debug code invalidated by prev check-in

17 years agoFix bug #4681.
Ian Romanick [Wed, 11 Oct 2006 22:37:14 +0000 (22:37 +0000)]
Fix bug #4681.

glDeleteTextures and glDeleteTexturesEXT were erroneously listed as
aliases of each other.  For anything /except/ GLX protocol they are
aliases.  This set of changes allows functions that are functionally
identical but have different GLX protocol to be listed as aliases.

When building with GLX_INDIRECT_RENDERING set, different static
functions are used.  These functions determine whether the current
context is direct rendering or not.  If the context is direct
rendering, the aliased function (e.g., glDeleteTextures in the case of
glDeleteTexturesEXT) is called.  If the context is not direct
rendering, the correct GLX protocol is sent.

For a deeper explanation of what is changed, please see:
http://dri.freedesktop.org/wiki/PartiallyAliasedFunctions

17 years agouse GLvoid * for _swrast_write_zoomed_rgb/rgba_span() functions
Brian Paul [Wed, 11 Oct 2006 22:21:55 +0000 (22:21 +0000)]
use GLvoid * for _swrast_write_zoomed_rgb/rgba_span() functions

17 years agorewrite/simplify the fast_draw_pixels() function
Brian Paul [Wed, 11 Oct 2006 22:07:01 +0000 (22:07 +0000)]
rewrite/simplify the fast_draw_pixels() function

17 years agouse _mesa_convert_colors(), update some assertions
Brian Paul [Wed, 11 Oct 2006 22:03:34 +0000 (22:03 +0000)]
use _mesa_convert_colors(), update some assertions

17 years agoAdded _mesa_convert_colors().
Brian Paul [Wed, 11 Oct 2006 22:02:36 +0000 (22:02 +0000)]
Added _mesa_convert_colors().
_mesa_clip_drawpixels() now handles Pixel.ZoomY==-1.

17 years agosupport for runtime renderbuffer depths
Brian Paul [Wed, 11 Oct 2006 20:14:08 +0000 (20:14 +0000)]
support for runtime renderbuffer depths

17 years agoIn xmesa_DrawPixels_8R8G8B() check if drawing into a window system buffer,
Brian Paul [Wed, 11 Oct 2006 17:45:06 +0000 (17:45 +0000)]
In xmesa_DrawPixels_8R8G8B() check if drawing into a window system buffer,
not a user-created FBO.

17 years agoadded shaderobjects_3dlabs.c
Brian Paul [Wed, 11 Oct 2006 16:34:23 +0000 (16:34 +0000)]
added shaderobjects_3dlabs.c

17 years agoremove 3dlabs.c
Brian Paul [Wed, 11 Oct 2006 16:26:09 +0000 (16:26 +0000)]
remove 3dlabs.c

17 years agosources for X.org xserver build
Brian Paul [Wed, 11 Oct 2006 16:05:59 +0000 (16:05 +0000)]
sources for X.org xserver build

17 years agoList of source (.c) files in each directory.
Brian Paul [Wed, 11 Oct 2006 15:52:00 +0000 (15:52 +0000)]
List of source (.c) files in each directory.
To be included by X.org Makefile.am files so that lists of files don't need
to be hardcoded and frequently updated there.

17 years agoa step toward moving run-time vertex program state out of GLcontext
Brian Paul [Tue, 10 Oct 2006 22:45:50 +0000 (22:45 +0000)]
a step toward moving run-time vertex program state out of GLcontext

17 years agofixed NV_position_invariant
Brian Paul [Tue, 10 Oct 2006 21:44:55 +0000 (21:44 +0000)]
fixed NV_position_invariant

17 years agoMove the fp_machine struct into s_nvfragmprog.c since (except for program
Brian Paul [Tue, 10 Oct 2006 21:43:31 +0000 (21:43 +0000)]
Move the fp_machine struct into s_nvfragmprog.c since (except for program
debug) it's only used there.

17 years agos/GLuint/GLbitfield/
Brian Paul [Tue, 10 Oct 2006 21:25:27 +0000 (21:25 +0000)]
s/GLuint/GLbitfield/

17 years agoIf program is position invariant, set VERT_BIT_POS in InputsRead field.
Brian Paul [Tue, 10 Oct 2006 21:23:23 +0000 (21:23 +0000)]
If program is position invariant, set VERT_BIT_POS in InputsRead field.
Fixes broken "OPTION NV_position_invariant".

17 years agoUse the mesa-provided texenv program rather than rolling our own.
Keith Whitwell [Tue, 10 Oct 2006 08:58:43 +0000 (08:58 +0000)]
Use the mesa-provided texenv program rather than rolling our own.
Turn on texture crossbar support.

17 years agoAdded dispatch.html.
Ian Romanick [Mon, 9 Oct 2006 18:26:03 +0000 (18:26 +0000)]
Added dispatch.html.

This new file documents Mesa's implementation of GL function dispatch.  It's
not quite complete, but I think there's enough there to make it useful.

17 years agoreturn void instead of GLvoid for glClearDebugLogMESA(), glGetDebugLogMESA()
Brian Paul [Mon, 9 Oct 2006 16:09:30 +0000 (16:09 +0000)]
return void instead of GLvoid for glClearDebugLogMESA(), glGetDebugLogMESA()

17 years agoUpdates for XCB. Bug 8560.
Ian Romanick [Mon, 9 Oct 2006 15:25:03 +0000 (15:25 +0000)]
Updates for XCB.  Bug 8560.

17 years agoadded a SyncHandle() call, remove UnlockDisplay() call. (bug 8521)
Brian Paul [Mon, 9 Oct 2006 14:57:50 +0000 (14:57 +0000)]
added a SyncHandle() call, remove UnlockDisplay() call.  (bug 8521)

17 years agoUpdates for XCB. Bug 8560.
Brian Paul [Mon, 9 Oct 2006 14:55:46 +0000 (14:55 +0000)]
Updates for XCB.  Bug 8560.

17 years agoMajor clean up of MakeContextCurrent
Ian Romanick [Sat, 7 Oct 2006 02:52:18 +0000 (02:52 +0000)]
Major clean up of MakeContextCurrent

Rearrange most of the internals of MakeContextCurrent. Put all of the code to
bind the new context up front. If that is successful, unbind the old context.
This saves a lot of code and removes some locking crazyiness.

This patch has been tested for indirect rendering with glxinfo, glxgears,
manywin, and wincopy.

17 years agodo not import arrays for generic arb attribs if the array is not enabled (same as...
Roland Scheidegger [Sat, 7 Oct 2006 01:04:49 +0000 (01:04 +0000)]
do not import arrays for generic arb attribs if the array is not enabled (same as for generic attribs for nv vp is already done). Since the requested stride is 16, otherwise the code would end up doing lots of unnecessary import work (in doom3, trans_4_GLfloat_4f_raw caused by that was by far the single most time-consuming function in the r200 driver, not importing the disabled arrays caused the cpu time spent in the driver to drop from 45% to 30%, though real-world gain was pretty minimal as it's not really cpu bound here in the first place).