mesa.git
23 years agoplug in fallback teximage DD functions
Brian Paul [Mon, 19 Feb 2001 20:14:57 +0000 (20:14 +0000)]
plug in fallback teximage DD functions

23 years agoUpdated Driver.CopyTexImage[12]D and Driver.CopyTexSubImage[123]D functions
Brian Paul [Mon, 19 Feb 2001 20:01:41 +0000 (20:01 +0000)]
Updated Driver.CopyTexImage[12]D and Driver.CopyTexSubImage[123]D functions
so they work like the other teximage functions.  Added fallback routines to
texstore.c for drivers to use.

23 years agoadded a bunch of extensions (Ray Tice)
Brian Paul [Mon, 19 Feb 2001 18:28:59 +0000 (18:28 +0000)]
added a bunch of extensions (Ray Tice)

23 years agoChanged FetchTexel() function pointer arguments.
Brian Paul [Sat, 17 Feb 2001 18:41:01 +0000 (18:41 +0000)]
Changed FetchTexel() function pointer arguments.
Implemented glGetTexImage(format=GL_COLOR_INDEX).
Changed _mesa_unpack_depth_span() args.
Minor changes/clean-ups in mtypes.h.
Histogram counter component sizes were wrong.

23 years agoadded MESA_GLX_FORCE_CI env var (useful for conformance testing)
Brian Paul [Sat, 17 Feb 2001 00:17:31 +0000 (00:17 +0000)]
added MESA_GLX_FORCE_CI env var (useful for conformance testing)

23 years agoWork in glGetTexImage() to return GL_COLOR_INDEX images.
Brian Paul [Sat, 17 Feb 2001 00:15:39 +0000 (00:15 +0000)]
Work in glGetTexImage() to return GL_COLOR_INDEX images.
Prototype code for GL_SGIX_depth_texture / more flexible teximage code.

23 years agomoved depth/index/stencil span packing into image.c
Brian Paul [Fri, 16 Feb 2001 23:29:14 +0000 (23:29 +0000)]
moved depth/index/stencil span packing into image.c

23 years agoadded n-key to toggle nice fog, other minor clean-ups
Brian Paul [Fri, 16 Feb 2001 21:48:16 +0000 (21:48 +0000)]
added n-key to toggle nice fog, other minor clean-ups

23 years agoFix state bitmasks for invalidating line,tri,point functions. (won't fix
Keith Whitwell [Fri, 16 Feb 2001 18:56:46 +0000 (18:56 +0000)]
Fix state bitmasks for invalidating line,tri,point functions.  (won't fix
the fog problem, I don't think)

23 years agoAllow swrast to cope (fairly) cleanly with GL_SEPERATE_SPECULAR when
Keith Whitwell [Fri, 16 Feb 2001 18:14:41 +0000 (18:14 +0000)]
Allow swrast to cope (fairly) cleanly with GL_SEPERATE_SPECULAR when
texturing is not enabled, and without requiring the two colors be
added externally.

As a part of this, collapsed the decomposition of quads into triangles
inside swrast to be hardwired into _swrast_Quad; removed s_quads.[ch].

Removed checks on texture state from t_vb_light.c, which was previously
required by swrast.

Moved the t_dd_ templates to a new directory.

23 years agoFixed conform problems with recent material tracking change.
Keith Whitwell [Fri, 16 Feb 2001 00:35:34 +0000 (00:35 +0000)]
Fixed conform problems with recent material tracking change.
Remove redundant 'update_materials' stage.
Fix conform segfault with seperate specular colors in mustpass.c.  These
tests still fail, however.

23 years agominor scissor optimizations (Klaus Niederkrueger)
Brian Paul [Thu, 15 Feb 2001 22:59:01 +0000 (22:59 +0000)]
minor scissor optimizations (Klaus Niederkrueger)

23 years agoFix propogation of material values in VB's that don't reach the lighting
Keith Whitwell [Thu, 15 Feb 2001 01:33:52 +0000 (01:33 +0000)]
Fix propogation of material values in VB's that don't reach the lighting
stage.  (Materials now treated more like colors, etc.).

Continue whipping the dd templates into shape.

Remove old NormalLength code; may come back as a driver helper, but not
useful for, eg. hardware t&l drivers.

23 years agofixed a CI-mode spot light conformance failure, but still not clear why
Brian Paul [Wed, 14 Feb 2001 23:00:42 +0000 (23:00 +0000)]
fixed a CI-mode spot light conformance failure, but still not clear why

23 years agoupdated with 3.4 and 3.4.1 entries
Brian Paul [Wed, 14 Feb 2001 22:59:50 +0000 (22:59 +0000)]
updated with 3.4 and 3.4.1 entries

23 years agoremoved a misplaced _mesa_logicop_ci_span() call
Brian Paul [Wed, 14 Feb 2001 22:40:21 +0000 (22:40 +0000)]
removed a misplaced _mesa_logicop_ci_span() call

23 years agofixed a CI mode segfault, minor clean-ups
Brian Paul [Tue, 13 Feb 2001 23:59:34 +0000 (23:59 +0000)]
fixed a CI mode segfault, minor clean-ups

23 years agofixed an assertion
Brian Paul [Tue, 13 Feb 2001 23:58:38 +0000 (23:58 +0000)]
fixed an assertion

23 years agofixed a few CI mode span bugs and a dither bug
Brian Paul [Tue, 13 Feb 2001 23:57:48 +0000 (23:57 +0000)]
fixed a few CI mode span bugs and a dither bug

23 years agofixed bug in gl_validate_all_lighting_tables() found with CI mode conformance tests
Brian Paul [Tue, 13 Feb 2001 23:55:30 +0000 (23:55 +0000)]
fixed bug in gl_validate_all_lighting_tables() found with CI mode conformance tests

23 years agoremoved bogus assertions
Brian Paul [Tue, 13 Feb 2001 23:54:12 +0000 (23:54 +0000)]
removed bogus assertions

23 years agogl_error clean-ups
Brian Paul [Tue, 13 Feb 2001 23:51:34 +0000 (23:51 +0000)]
gl_error clean-ups

23 years agofixed GL_SET bug
Brian Paul [Tue, 13 Feb 2001 23:50:25 +0000 (23:50 +0000)]
fixed GL_SET bug

23 years agoadded debug assertions to be sure drivers initialize all required function pointers
Brian Paul [Mon, 12 Feb 2001 19:04:30 +0000 (19:04 +0000)]
added debug assertions to be sure drivers initialize all required function pointers

23 years agoadded ctx->Driver.ResetLineStipple, misc clean-up
Brian Paul [Mon, 12 Feb 2001 18:32:26 +0000 (18:32 +0000)]
added ctx->Driver.ResetLineStipple, misc clean-up

23 years agofixed RGB over/underflow bug for tiny triangles (bug 128969)
Brian Paul [Mon, 12 Feb 2001 17:02:00 +0000 (17:02 +0000)]
fixed RGB over/underflow bug for tiny triangles (bug 128969)

23 years agominor updates to sync w/ XFree86 changes
Brian Paul [Fri, 9 Feb 2001 23:39:02 +0000 (23:39 +0000)]
minor updates to sync w/ XFree86 changes

23 years agominor changes from XFree86 (dawes)
Brian Paul [Fri, 9 Feb 2001 23:23:43 +0000 (23:23 +0000)]
minor changes from XFree86 (dawes)

23 years ago Committing in .
Jouk Jansen [Fri, 9 Feb 2001 12:19:17 +0000 (12:19 +0000)]
 Committing in .

 Modified Files:
  Mesa/src-glut/glut_event.c Mesa/src-glut/glut_get.c
  Mesa/src-glut/glut_init.c Mesa/src-glut/glutint.h

 Patch for compilation on very old VMS (version 6.2 and earlier)

----------------------------------------------------------------------

23 years agofixed bytesPerValue bug in OSMesaGetDepthBuffer()
Brian Paul [Thu, 8 Feb 2001 23:52:29 +0000 (23:52 +0000)]
fixed bytesPerValue bug in OSMesaGetDepthBuffer()

23 years agofixed bugs in _mesa_clear_depth_buffer(), bug #131366
Brian Paul [Thu, 8 Feb 2001 15:57:01 +0000 (15:57 +0000)]
fixed bugs in _mesa_clear_depth_buffer(), bug #131366

23 years agoGLchan fixes
Brian Paul [Wed, 7 Feb 2001 19:02:23 +0000 (19:02 +0000)]
GLchan fixes

23 years agofixed texel indexing bug in _mesa_GetTexImage()
Brian Paul [Wed, 7 Feb 2001 18:59:45 +0000 (18:59 +0000)]
fixed texel indexing bug in _mesa_GetTexImage()

23 years agoadded divide by zero checks
Brian Paul [Wed, 7 Feb 2001 18:44:55 +0000 (18:44 +0000)]
added divide by zero checks

23 years agofixed divide by zero problem
Brian Paul [Wed, 7 Feb 2001 18:36:52 +0000 (18:36 +0000)]
fixed divide by zero problem

23 years agoadded some code for proxy texture tests
Brian Paul [Wed, 7 Feb 2001 16:27:41 +0000 (16:27 +0000)]
added some code for proxy texture tests

23 years agoCorrectly calculate size for disabled texcoord arrays.
Keith Whitwell [Wed, 7 Feb 2001 16:00:58 +0000 (16:00 +0000)]
Correctly calculate size for disabled texcoord arrays.

23 years ago VMS compile update
Jouk Jansen [Wed, 7 Feb 2001 09:15:41 +0000 (09:15 +0000)]
  VMS compile update

23 years agocheck texture texel type before using optimized sampling functions
Brian Paul [Wed, 7 Feb 2001 03:55:31 +0000 (03:55 +0000)]
check texture texel type before using optimized sampling functions

23 years agoremove unused functions
Brian Paul [Wed, 7 Feb 2001 03:53:07 +0000 (03:53 +0000)]
remove unused functions

23 years agonew texture image routines work now
Brian Paul [Wed, 7 Feb 2001 03:30:07 +0000 (03:30 +0000)]
new texture image routines work now

23 years agomade some changes to the initialization of gl_texture_image fields
Brian Paul [Wed, 7 Feb 2001 03:27:41 +0000 (03:27 +0000)]
made some changes to the initialization of gl_texture_image fields

23 years agoForce texture download every time to handle lazy texture downloads.
Gareth Hughes [Wed, 7 Feb 2001 03:04:58 +0000 (03:04 +0000)]
Force texture download every time to handle lazy texture downloads.

23 years agoupdated texture image handling - STILL UNTESTED
Brian Paul [Tue, 6 Feb 2001 23:35:49 +0000 (23:35 +0000)]
updated texture image handling - STILL UNTESTED

23 years agoadded a number of debugging tests to be sure drivers handle texture images correctly
Brian Paul [Tue, 6 Feb 2001 23:35:26 +0000 (23:35 +0000)]
added a number of debugging tests to be sure drivers handle texture images correctly

23 years agoOverhaul of texture image handling.
Brian Paul [Tue, 6 Feb 2001 21:42:48 +0000 (21:42 +0000)]
Overhaul of texture image handling.
1. gl_texture_image struct's Data pointer points to images in driver's format.
2. Added FetchTexel() function pointer to struct gl_texture_image.
3. Changed Driver Tex[Sub]Image functions, return void now.
4. Texture storage/fetch code in new texstore.c file.
5. Removed texture.[ch] - functions moved to state.c

Note: FX driver updates not finished yet.

23 years agoadded _mesa_adjust_image_for_convolution()
Brian Paul [Tue, 6 Feb 2001 17:22:16 +0000 (17:22 +0000)]
added _mesa_adjust_image_for_convolution()

23 years agoUse a lookup table to compute exponents in tnl fogging code. Slightly
Keith Whitwell [Tue, 6 Feb 2001 04:06:34 +0000 (04:06 +0000)]
Use a lookup table to compute exponents in tnl fogging code.  Slightly
clean up the shine table lookup macro.

23 years agomisc updates to match latest device driver changes
Brian Paul [Tue, 6 Feb 2001 00:03:47 +0000 (00:03 +0000)]
misc updates to match latest device driver changes

23 years agoadded mesa_profile extern decl
Brian Paul [Mon, 5 Feb 2001 19:17:31 +0000 (19:17 +0000)]
added mesa_profile extern decl

23 years agoreplaced frustrum with frustum
Brian Paul [Mon, 5 Feb 2001 18:48:52 +0000 (18:48 +0000)]
replaced frustrum with frustum

23 years ago Committing in .
Jouk Jansen [Mon, 5 Feb 2001 08:56:12 +0000 (08:56 +0000)]
 Committing in .

 Modified Files:
  Mesa/src/descrip.mms

 Updated VMS make-files

----------------------------------------------------------------------

23 years agorework to correctly respect _ac_import_range()
Keith Whitwell [Sun, 4 Feb 2001 00:47:28 +0000 (00:47 +0000)]
rework to correctly respect _ac_import_range()

23 years agoFast no-copy drawarrays for large tristrips
Keith Whitwell [Sun, 4 Feb 2001 00:44:36 +0000 (00:44 +0000)]
Fast no-copy drawarrays for large tristrips

23 years agoSome more work on interal debugging, timing routines for things that
Gareth Hughes [Sat, 3 Feb 2001 08:41:03 +0000 (08:41 +0000)]
Some more work on interal debugging, timing routines for things that
will have implementations in assembly code.  To come: texture image
conversions, more of internal T&L pipeline and so on.

23 years ago Committing in .
Jouk Jansen [Wed, 31 Jan 2001 14:10:16 +0000 (14:10 +0000)]
 Committing in .

 Modified Files:
  Mesa/src/descrip.mms

 Updates VMS compile-support
----------------------------------------------------------------------

23 years agomake gluPerspective() call glMultMatrix() instead of glFrustum() to get correct error...
Brian Paul [Tue, 30 Jan 2001 18:08:51 +0000 (18:08 +0000)]
make gluPerspective() call glMultMatrix() instead of glFrustum() to get correct error semantics

23 years agoadded packed types to glGetMinMax and glGetHistogram error checks
Brian Paul [Tue, 30 Jan 2001 17:46:34 +0000 (17:46 +0000)]
added packed types to glGetMinMax and glGetHistogram error checks

23 years agofixed half pixel offset bug in aa point code
Brian Paul [Tue, 30 Jan 2001 16:38:20 +0000 (16:38 +0000)]
fixed half pixel offset bug in aa point code

23 years agoUpgrade to (patched) version 7 of glext.h
Gareth Hughes [Tue, 30 Jan 2001 15:02:34 +0000 (15:02 +0000)]
Upgrade to (patched) version 7 of glext.h

23 years agolast segment of AA stippled lines wasn't drawn
Brian Paul [Mon, 29 Jan 2001 23:38:41 +0000 (23:38 +0000)]
last segment of AA stippled lines wasn't drawn

23 years agofixed inverted Y coord for dithering in write_span_DITHER_5R6G5B_ximage()
Brian Paul [Mon, 29 Jan 2001 22:40:23 +0000 (22:40 +0000)]
fixed inverted Y coord for dithering in  write_span_DITHER_5R6G5B_ximage()

23 years agoGL_SHADE_MODEL wasn't popped correctly
Brian Paul [Mon, 29 Jan 2001 22:15:44 +0000 (22:15 +0000)]
GL_SHADE_MODEL wasn't popped correctly

23 years agoremoved unused vars
Brian Paul [Mon, 29 Jan 2001 22:10:37 +0000 (22:10 +0000)]
removed unused vars

23 years agoonly compute separate specular if texturing really enabled
Brian Paul [Mon, 29 Jan 2001 22:10:24 +0000 (22:10 +0000)]
only compute separate specular if texturing really enabled

23 years agofixed computation of _MultiTextureEnabled (again)
Brian Paul [Mon, 29 Jan 2001 21:47:13 +0000 (21:47 +0000)]
fixed computation of _MultiTextureEnabled (again)

23 years agoUpdate implementations of Driver.Clear().
Keith Whitwell [Mon, 29 Jan 2001 20:56:32 +0000 (20:56 +0000)]
Update implementations of Driver.Clear().

23 years agoRemoved knowledge of swrast Clear/Bitmap/Accum/Draw/Read/CopyPixels
Keith Whitwell [Mon, 29 Jan 2001 20:47:39 +0000 (20:47 +0000)]
Removed knowledge of swrast Clear/Bitmap/Accum/Draw/Read/CopyPixels
functions from core mesa -- if drivers need these fallbacks they
must now call them themselves.

Introduced hooks for clip-vertex-interpolation and the rendering
of clipped lines and polygons.  Allows drivers to interpolate
their hardware-format vertices directly.  Used in dri drivers to
replace fastpath code.

Slight optimizations to pipeline build/run routines.

23 years agooptimized lambda computation (Klaus Niederkrueger)
Brian Paul [Mon, 29 Jan 2001 18:51:25 +0000 (18:51 +0000)]
optimized lambda computation (Klaus Niederkrueger)

23 years agoupdates to the trace extension
Brian Paul [Mon, 29 Jan 2001 16:18:37 +0000 (16:18 +0000)]
updates to the trace extension

23 years agoupdated spec
Brian Paul [Mon, 29 Jan 2001 16:10:18 +0000 (16:10 +0000)]
updated spec

23 years agoredo _mesa_PopAttrib() to call Mesa state functions so derived state is updated
Brian Paul [Wed, 24 Jan 2001 15:27:10 +0000 (15:27 +0000)]
redo _mesa_PopAttrib() to call Mesa state functions so derived state is updated

23 years agoremoved the unused/broken GL_PGI_misc_hints extension
Brian Paul [Wed, 24 Jan 2001 04:56:19 +0000 (04:56 +0000)]
removed the unused/broken GL_PGI_misc_hints extension

23 years agominor tweaks
Brian Paul [Wed, 24 Jan 2001 00:07:01 +0000 (00:07 +0000)]
minor tweaks

23 years agoLots of GLchan datatype changes.
Brian Paul [Wed, 24 Jan 2001 00:04:58 +0000 (00:04 +0000)]
Lots of GLchan datatype changes.
Added GLvector4us datatype in math/m_vector.[ch]
Added _math_trans_4us() in math/m_translate.[ch]
Choose GLvector4ub, GLvector4us, GLvector4f at compile time based on CHAN_BITS.
Made Driver.ClearColor() and Driver.ClearIndex() optional driver functions.
Changed args to Driver.ClearColor(), updated drivers.
Reordered files in Makefile.X11

23 years agoadded DestroyHeads() to test clean-up code
Brian Paul [Tue, 23 Jan 2001 23:45:05 +0000 (23:45 +0000)]
added DestroyHeads() to test clean-up code

23 years agominor tweaks
Brian Paul [Tue, 23 Jan 2001 23:44:39 +0000 (23:44 +0000)]
minor tweaks

23 years agoadded support for 4 texture units
Brian Paul [Tue, 23 Jan 2001 23:44:15 +0000 (23:44 +0000)]
added support for 4 texture units

23 years agospace-bar = pause animation
Brian Paul [Tue, 23 Jan 2001 23:43:53 +0000 (23:43 +0000)]
space-bar = pause animation

23 years agoReplaced struct gl_visual with struct __GLcontextModesRec from glcore.h.
Brian Paul [Tue, 23 Jan 2001 23:39:36 +0000 (23:39 +0000)]
Replaced struct gl_visual with struct __GLcontextModesRec from glcore.h.
Replace "RGBAMode" with "rgbMode", etc.
Other minor clean-ups.

23 years agoadded dispatch override mechanism, used by trace extension
Brian Paul [Tue, 23 Jan 2001 23:35:47 +0000 (23:35 +0000)]
added dispatch override mechanism, used by trace extension

23 years agofixed glTexSubImage error check bug #128775
Brian Paul [Tue, 23 Jan 2001 23:35:23 +0000 (23:35 +0000)]
fixed glTexSubImage error check bug #128775

23 years agotest check-in
Brian Paul [Tue, 23 Jan 2001 23:29:15 +0000 (23:29 +0000)]
test check-in

23 years agoFixes for performance bug on compiled array element paths.
Keith Whitwell [Wed, 17 Jan 2001 02:49:38 +0000 (02:49 +0000)]
Fixes for performance bug on compiled array element paths.

23 years agoupdated ctx->Driver functions for s/w setup
Brian Paul [Tue, 16 Jan 2001 21:16:56 +0000 (21:16 +0000)]
updated ctx->Driver functions for s/w setup

23 years agofixed a small error in import_color(), include m_translate.h
Brian Paul [Tue, 16 Jan 2001 15:25:11 +0000 (15:25 +0000)]
fixed a small error in import_color(), include m_translate.h

23 years agoFix several conformance problems. Hack solution to line stipple problem.
Keith Whitwell [Tue, 16 Jan 2001 05:29:42 +0000 (05:29 +0000)]
Fix several conformance problems.  Hack solution to line stipple problem.

23 years agoremoved unneeded TXTR_COORD macros (Stephen Tse)
Brian Paul [Mon, 15 Jan 2001 20:04:28 +0000 (20:04 +0000)]
removed unneeded TXTR_COORD macros (Stephen Tse)

23 years agoFixed conform feedback and drawelements tests.
Keith Whitwell [Sun, 14 Jan 2001 06:14:21 +0000 (06:14 +0000)]
Fixed conform feedback and drawelements tests.
Use correct pv when rasterizing unfilled polys.

23 years agofix conform dlist test
Keith Whitwell [Sat, 13 Jan 2001 18:28:19 +0000 (18:28 +0000)]
fix conform dlist test

23 years agoUse correct pv in swrast lines routines
Keith Whitwell [Sat, 13 Jan 2001 07:13:28 +0000 (07:13 +0000)]
Use correct pv in swrast lines routines

23 years agoFix crash in book/stencil.
Keith Whitwell [Sat, 13 Jan 2001 05:48:25 +0000 (05:48 +0000)]
Fix crash in book/stencil.

Allow drivers to perform the perspective divide themselves.  Assembly
to do cliptesting without perspective divide for size-4 vectors.

23 years agoResync with new XFree version of this file
Keith Whitwell [Sat, 13 Jan 2001 05:47:06 +0000 (05:47 +0000)]
Resync with new XFree version of this file

23 years agoinitialize Driver.RenderPrimitive to _swsetup_RenderPrimNoop
Brian Paul [Fri, 12 Jan 2001 22:34:27 +0000 (22:34 +0000)]
initialize Driver.RenderPrimitive to _swsetup_RenderPrimNoop

23 years agoAdded PointSize and PointParametersfv to dd interface, for completeness.
Brian Paul [Tue, 9 Jan 2001 00:02:55 +0000 (00:02 +0000)]
Added PointSize and PointParametersfv to dd interface, for completeness.
Clean-up and updated comments in dd.h file.

23 years agoFixed 'IRound' to 'IROUND' in mmath.h
Keith Whitwell [Mon, 8 Jan 2001 21:55:59 +0000 (21:55 +0000)]
Fixed 'IRound' to 'IROUND' in mmath.h

Fixed fallback path for drawarrays/_tnl_hard_begin.

Removed disabled debug code.

23 years agoStill need 'DD_TRI_CULL_FRONT_BACK'
Keith Whitwell [Mon, 8 Jan 2001 17:42:13 +0000 (17:42 +0000)]
Still need 'DD_TRI_CULL_FRONT_BACK'

23 years agoAdd call to Driver.RenderPrimitive()
Keith Whitwell [Mon, 8 Jan 2001 17:41:15 +0000 (17:41 +0000)]
Add call to Driver.RenderPrimitive()

23 years agorevert XMesaCreateContext changes
Keith Whitwell [Mon, 8 Jan 2001 04:55:22 +0000 (04:55 +0000)]
revert XMesaCreateContext changes

23 years agoAdd a 'RenderPrimitive' callback to t_vb_render.c. Helps out drivers
Keith Whitwell [Mon, 8 Jan 2001 04:09:41 +0000 (04:09 +0000)]
Add a 'RenderPrimitive' callback to t_vb_render.c.  Helps out drivers
that used to require a 'ReducedPrimitiveChange' callback.

Various compilation fixes for XFree86.

Reverted to the older version of glcore.h used internally in XFree86, and
moved it to 'Mesa/include/GL/internal/glcore.h', for compatibility with
XFree86.