platform/upstream/mesa.git
18 years agoadd error checks for framebuffer completeness
Brian Paul [Wed, 28 Sep 2005 16:20:34 +0000 (16:20 +0000)]
add error checks for framebuffer completeness

18 years agocheck for framebuffer completeness, code clean-up
Brian Paul [Wed, 28 Sep 2005 15:46:46 +0000 (15:46 +0000)]
check for framebuffer completeness, code clean-up

18 years agoupdated assertions (see bug 4590)
Brian Paul [Wed, 28 Sep 2005 14:20:06 +0000 (14:20 +0000)]
updated assertions (see bug 4590)

18 years agoInitial work for GL_EXT_packed_depth_stencil extension.
Brian Paul [Wed, 28 Sep 2005 02:29:50 +0000 (02:29 +0000)]
Initial work for GL_EXT_packed_depth_stencil extension.
glReadPixels done, glDrawPixels mostly done.

18 years agochange initialization of rb->DepthBits
Brian Paul [Wed, 28 Sep 2005 02:28:42 +0000 (02:28 +0000)]
change initialization of rb->DepthBits

18 years agoadded GL_EXT_packed_depth_stencil
Brian Paul [Wed, 28 Sep 2005 02:28:00 +0000 (02:28 +0000)]
added GL_EXT_packed_depth_stencil

18 years agoadded _mesa_scale_and_bias_depth()
Brian Paul [Wed, 28 Sep 2005 02:27:22 +0000 (02:27 +0000)]
added _mesa_scale_and_bias_depth()

18 years agotweak glAccum error checking
Brian Paul [Tue, 27 Sep 2005 16:10:49 +0000 (16:10 +0000)]
tweak glAccum error checking

18 years agogenerate GL_INVALID_OPERATION in glAccum if read/draw buffers aren't the same
Brian Paul [Tue, 27 Sep 2005 15:52:27 +0000 (15:52 +0000)]
generate GL_INVALID_OPERATION in glAccum if read/draw buffers aren't the same

18 years agoLift all the format/type error checking out of the _swrast_Draw/Read/CopyPixels
Brian Paul [Tue, 27 Sep 2005 01:25:24 +0000 (01:25 +0000)]
Lift all the format/type error checking out of the _swrast_Draw/Read/CopyPixels
functions into the _mesa_Draw/Read/CopyPixels functions.

18 years agoglDraw/CopyPixels of stencil data didn't obey the stencil write mask. Fixed.
Brian Paul [Mon, 26 Sep 2005 23:06:01 +0000 (23:06 +0000)]
glDraw/CopyPixels of stencil data didn't obey the stencil write mask. Fixed.

18 years agoremove identity check for texgen planes (which was just plain wrong).
Roland Scheidegger [Mon, 26 Sep 2005 20:31:40 +0000 (20:31 +0000)]
remove identity check for texgen planes (which was just plain wrong).

18 years agofix projective texturing for (swtcl) texture rectangles. Fix wrong argument order...
Roland Scheidegger [Mon, 26 Sep 2005 17:11:16 +0000 (17:11 +0000)]
fix projective texturing for (swtcl) texture rectangles. Fix wrong argument order for texgen/texmat matrix multiplication.

18 years agoAdded XMesaDrawable to xmesa_renderbuffer. Use it in a few places instead
Brian Paul [Mon, 26 Sep 2005 00:38:00 +0000 (00:38 +0000)]
Added XMesaDrawable to xmesa_renderbuffer.  Use it in a few places instead
of the XMesaPixmap field to avoid some X server-side issues with casting.

18 years agoAdd support for texture compression to R300 driver
Dave Airlie [Sun, 25 Sep 2005 10:20:38 +0000 (10:20 +0000)]
Add support for texture compression to R300 driver

This isn't perfect, texcmp still has some issues with the small textures..
but its a good start

18 years agoadd link for radeon_egl.c
Dave Airlie [Sun, 25 Sep 2005 09:45:42 +0000 (09:45 +0000)]
add link for radeon_egl.c

18 years ago Committing in .
Jouk Jansen [Fri, 23 Sep 2005 07:03:53 +0000 (07:03 +0000)]
 Committing in .

 1) change compilation on VMS to use IEEE floating points

 2) one more problem with _mesa_sprintf solved

 Modified Files:
  Mesa/docs/README.VMS Mesa/progs/demos/descrip.mms
  Mesa/progs/tests/descrip.mms Mesa/progs/util/descrip.mms
  Mesa/progs/xdemos/descrip.mms Mesa/src/glu/mesa/descrip.mms
  Mesa/src/glu/sgi/descrip.mms Mesa/src/glut/glx/descrip.mms
  Mesa/src/mesa/array_cache/descrip.mms
  Mesa/src/mesa/drivers/common/descrip.mms
  Mesa/src/mesa/drivers/osmesa/descrip.mms
  Mesa/src/mesa/drivers/x11/descrip.mms
  Mesa/src/mesa/glapi/descrip.mms Mesa/src/mesa/main/descrip.mms
  Mesa/src/mesa/main/texobj.c Mesa/src/mesa/math/descrip.mms
  Mesa/src/mesa/shader/descrip.mms
  Mesa/src/mesa/shader/grammar/descrip.mms
  Mesa/src/mesa/shader/slang/descrip.mms
  Mesa/src/mesa/swrast/descrip.mms
  Mesa/src/mesa/swrast_setup/descrip.mms
  Mesa/src/mesa/tnl/descrip.mms
 ----------------------------------------------------------------------

18 years agoremove printf
Brian Paul [Fri, 23 Sep 2005 03:24:27 +0000 (03:24 +0000)]
remove printf

18 years agoReplace gl_framebuffer's _ColorReadBufferMask with _ColorReadBufferIndex,
Brian Paul [Fri, 23 Sep 2005 03:22:20 +0000 (03:22 +0000)]
Replace gl_framebuffer's _ColorReadBufferMask with _ColorReadBufferIndex,
Streamline the _mesa_update_framebuffer() function a bit.

18 years agofix clipped glReadPixels bug
Brian Paul [Fri, 23 Sep 2005 02:16:49 +0000 (02:16 +0000)]
fix clipped glReadPixels bug

18 years agoadded XOR line optimization
Brian Paul [Fri, 23 Sep 2005 01:42:23 +0000 (01:42 +0000)]
added XOR line optimization

18 years agoAdded a fast xor_line() function. Uses XDrawLine with GXxor mode.
Brian Paul [Fri, 23 Sep 2005 01:40:59 +0000 (01:40 +0000)]
Added a fast xor_line() function.  Uses XDrawLine with GXxor mode.
Only used for front-buffer window/pixmap rendering, GL_FLAT shade model,
no Z test or other fragment operations.

18 years agoAdd Wrapper field to gl_renderbuffer. Used for wrapping one renderbuffer
Brian Paul [Fri, 23 Sep 2005 01:20:09 +0000 (01:20 +0000)]
Add Wrapper field to gl_renderbuffer.  Used for wrapping one renderbuffer
with another, such as wrapping a hardware/win-sys RGB renderbuffer with a
software-based alpha buffer.
Previous alpha buffer wrapping was conflicting with the X driver's
xmesa_renderbuffer structure containment/inheritance.  That lead to
memory corruption.

18 years agoimprove the test for using software alpha buffer
Brian Paul [Fri, 23 Sep 2005 01:17:07 +0000 (01:17 +0000)]
improve the test for using software alpha buffer

18 years agoEnable GL_ARB_texture_mirrored_repeat on Savage4. Refactor the code that
Ian Romanick [Thu, 22 Sep 2005 21:25:31 +0000 (21:25 +0000)]
Enable GL_ARB_texture_mirrored_repeat on Savage4.  Refactor the code that
sets the texture wrap mode and texture filter mode for Savage4 to the new
functions savage4_set_wrap_mode and savage4_set_filter_mode.

This was tested with texwrap and tunnel.

18 years agoReplace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits,
Brian Paul [Thu, 22 Sep 2005 05:19:57 +0000 (05:19 +0000)]
Replace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits,
BlueBits, etc fields.

18 years agoWhen testing visual attributes, use the Draw/Read buffer, not the context.
Brian Paul [Thu, 22 Sep 2005 05:00:12 +0000 (05:00 +0000)]
When testing visual attributes, use the Draw/Read buffer, not the context.

18 years agofix a debug message
Brian Paul [Thu, 22 Sep 2005 04:58:42 +0000 (04:58 +0000)]
fix a debug message

18 years agochanged a renderbuffer check
Brian Paul [Thu, 22 Sep 2005 04:52:45 +0000 (04:52 +0000)]
changed a renderbuffer check

18 years agos/GL_DEPTH_BITS/GL_TEXTURE_DEPTH_SIZE_ARB/ in _mesa_GetTexLevelParameteriv()
Brian Paul [Wed, 21 Sep 2005 21:19:22 +0000 (21:19 +0000)]
s/GL_DEPTH_BITS/GL_TEXTURE_DEPTH_SIZE_ARB/ in _mesa_GetTexLevelParameteriv()

18 years agoadd missing scale factor in _swrast_read_depth_span_float()
Brian Paul [Wed, 21 Sep 2005 18:16:33 +0000 (18:16 +0000)]
add missing scale factor in _swrast_read_depth_span_float()

18 years agoRemove ACCUM_BITS.
Brian Paul [Wed, 21 Sep 2005 03:35:08 +0000 (03:35 +0000)]
Remove ACCUM_BITS.

18 years agoreplace GLdepth with GLuint and remove GLdepth
Brian Paul [Wed, 21 Sep 2005 02:47:32 +0000 (02:47 +0000)]
replace GLdepth with GLuint and remove GLdepth

18 years agoreplace GLdepth with GLuint
Brian Paul [Wed, 21 Sep 2005 02:46:17 +0000 (02:46 +0000)]
replace GLdepth with GLuint

18 years agos/programss/programs/
Brian Paul [Tue, 20 Sep 2005 21:04:02 +0000 (21:04 +0000)]
s/programss/programs/

18 years agoinitial check-in
Brian Paul [Tue, 20 Sep 2005 15:51:44 +0000 (15:51 +0000)]
initial check-in

18 years agoremove 31-bit Z buffer work-around
Brian Paul [Tue, 20 Sep 2005 04:47:34 +0000 (04:47 +0000)]
remove 31-bit Z buffer work-around

18 years agochange mask[] test in put_mono_row_uint()
Brian Paul [Tue, 20 Sep 2005 04:47:04 +0000 (04:47 +0000)]
change mask[] test in put_mono_row_uint()

18 years agocompute z[i] as GLuint
Brian Paul [Tue, 20 Sep 2005 04:45:26 +0000 (04:45 +0000)]
compute z[i] as GLuint

18 years agosome improvements to _swrast_clear_depth_buffer()
Brian Paul [Tue, 20 Sep 2005 04:36:50 +0000 (04:36 +0000)]
some improvements to _swrast_clear_depth_buffer()

18 years agoremove unneeded sizeof(GLdepth) test
Brian Paul [Tue, 20 Sep 2005 04:35:40 +0000 (04:35 +0000)]
remove unneeded sizeof(GLdepth) test

18 years agoChange zLeft and zval to GLuint. Seems to fix 32-bit Z computation
Brian Paul [Tue, 20 Sep 2005 04:34:29 +0000 (04:34 +0000)]
Change zLeft and zval to GLuint.  Seems to fix 32-bit Z computation

18 years agoreplace STENCIL_BITS with stencilMax value
Brian Paul [Tue, 20 Sep 2005 04:31:24 +0000 (04:31 +0000)]
replace STENCIL_BITS with stencilMax value

18 years agoremove STENCIL_MAX
Brian Paul [Tue, 20 Sep 2005 04:25:03 +0000 (04:25 +0000)]
remove STENCIL_MAX

18 years agochange location of ffs() code for windows
Brian Paul [Tue, 20 Sep 2005 02:44:40 +0000 (02:44 +0000)]
change location of ffs() code for windows

18 years agoinit a=0
Brian Paul [Mon, 19 Sep 2005 21:16:29 +0000 (21:16 +0000)]
init a=0

18 years agos/GLchan/GLubyte/, fix error string, add comment
Brian Paul [Mon, 19 Sep 2005 20:32:21 +0000 (20:32 +0000)]
s/GLchan/GLubyte/, fix error string, add comment

18 years agoupdated comment
Brian Paul [Mon, 19 Sep 2005 20:29:34 +0000 (20:29 +0000)]
updated comment

18 years agoadditional wrapper updates, bug 4468
Brian Paul [Mon, 19 Sep 2005 20:12:32 +0000 (20:12 +0000)]
additional wrapper updates, bug 4468

18 years agos/unsigned long/drm_handle_t/ to get compilation of fb driver to work
Brian Paul [Mon, 19 Sep 2005 17:17:58 +0000 (17:17 +0000)]
s/unsigned long/drm_handle_t/ to get compilation of fb driver to work

18 years agocompilation fixes, don't know if runtime works
Brian Paul [Mon, 19 Sep 2005 17:17:18 +0000 (17:17 +0000)]
compilation fixes, don't know if runtime works

18 years agoFix potential segfault when trying to read pixels outside renderbuffer bounds.
Brian Paul [Fri, 16 Sep 2005 21:15:27 +0000 (21:15 +0000)]
Fix potential segfault when trying to read pixels outside renderbuffer bounds.
Use _swrast_get_values() which does clipping.

18 years agoremove unused _swrast_read_depth_span()
Brian Paul [Fri, 16 Sep 2005 21:10:27 +0000 (21:10 +0000)]
remove unused _swrast_read_depth_span()

18 years agolots of little clean-ups, improvements
Brian Paul [Fri, 16 Sep 2005 21:07:48 +0000 (21:07 +0000)]
lots of little clean-ups, improvements

18 years agochange some comments
Brian Paul [Fri, 16 Sep 2005 21:06:57 +0000 (21:06 +0000)]
change some comments

18 years agopass mask=NULL to write all pixels in clear_ci_buffer_with_masking()
Brian Paul [Fri, 16 Sep 2005 21:06:33 +0000 (21:06 +0000)]
pass mask=NULL to write all pixels in clear_ci_buffer_with_masking()

18 years agoremove unused ctx var
Brian Paul [Fri, 16 Sep 2005 18:18:47 +0000 (18:18 +0000)]
remove unused ctx var

18 years agouse mesa import wrappers, bug 4468
Brian Paul [Fri, 16 Sep 2005 18:14:24 +0000 (18:14 +0000)]
use mesa import wrappers, bug 4468

18 years agoalphabetize
Brian Paul [Fri, 16 Sep 2005 04:18:09 +0000 (04:18 +0000)]
alphabetize

18 years agoRework the texture filtering functions a bit.
Brian Paul [Fri, 16 Sep 2005 04:16:48 +0000 (04:16 +0000)]
Rework the texture filtering functions a bit.
No need to pass the texture unit number as an argument.

18 years agoreplace a couple macros with inlined functions
Brian Paul [Fri, 16 Sep 2005 01:42:07 +0000 (01:42 +0000)]
replace a couple macros with inlined functions

18 years agomore GLuint->GLbitfield changes
Brian Paul [Fri, 16 Sep 2005 01:41:03 +0000 (01:41 +0000)]
more GLuint->GLbitfield changes

18 years agoReplace GLuint with GLbitfield where appropriate. Also replace GLuint
Brian Paul [Thu, 15 Sep 2005 05:00:45 +0000 (05:00 +0000)]
Replace GLuint with GLbitfield where appropriate.  Also replace GLuint
with GLboolean in a few places.

18 years agoCode clean-ups, reorg.
Brian Paul [Thu, 15 Sep 2005 03:58:52 +0000 (03:58 +0000)]
Code clean-ups, reorg.

18 years agosilence warning
Brian Paul [Thu, 15 Sep 2005 01:58:39 +0000 (01:58 +0000)]
silence warning

18 years agoRemove a bunch texel fetch functions that can be handled by the new
Brian Paul [Thu, 15 Sep 2005 01:55:40 +0000 (01:55 +0000)]
Remove a bunch texel fetch functions that can be handled by the new
adaptor functions.

18 years agoupdated comments
Brian Paul [Thu, 15 Sep 2005 01:08:24 +0000 (01:08 +0000)]
updated comments

18 years agoNew set_fetch_functions() to set a gl_texture_image's FetchTexel functions
Brian Paul [Thu, 15 Sep 2005 01:06:19 +0000 (01:06 +0000)]
New set_fetch_functions() to set a gl_texture_image's FetchTexel functions
from the gl_texture_format's functions.
Added "adaptor" functions to allow sampling a float-valued texture with
GLchans and vice versa.  This will allow trimming down the number of
texture fetch routines.

18 years agoreplace s_texture.[ch] with s_texcombine.[ch] and s_texfilter.[ch]
Brian Paul [Thu, 15 Sep 2005 01:00:20 +0000 (01:00 +0000)]
replace s_texture.[ch] with s_texcombine.[ch] and s_texfilter.[ch]

18 years agoUpdate includes post-splitting of s_texture.c
Brian Paul [Thu, 15 Sep 2005 00:58:03 +0000 (00:58 +0000)]
Update includes post-splitting of s_texture.c

18 years agoSplit the s_texture.c file into two new files:
Brian Paul [Thu, 15 Sep 2005 00:57:00 +0000 (00:57 +0000)]
Split the s_texture.c file into two new files:
  s_texcombine.c - for texture combining/application
  s_texfilter.c - for texture sampling/filtering

18 years agoremove unused vars
Brian Paul [Wed, 14 Sep 2005 18:21:05 +0000 (18:21 +0000)]
remove unused vars

18 years agoremove _tnl_MakeCurrent call
Brian Paul [Wed, 14 Sep 2005 18:09:15 +0000 (18:09 +0000)]
remove _tnl_MakeCurrent call

18 years agoinitial 6.5 release notes
Brian Paul [Wed, 14 Sep 2005 14:34:54 +0000 (14:34 +0000)]
initial 6.5 release notes

18 years agoRemove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.
Brian Paul [Wed, 14 Sep 2005 14:32:20 +0000 (14:32 +0000)]
Remove _tnl_MakeCurrent() and the unused ctx->Driver.MakeCurrent() callback.

18 years agofix breakage from Brians changes earlier
Dave Airlie [Wed, 14 Sep 2005 12:08:32 +0000 (12:08 +0000)]
fix breakage from Brians changes earlier

18 years agoclean-up some _mesa_make_current() code
Brian Paul [Wed, 14 Sep 2005 03:11:36 +0000 (03:11 +0000)]
clean-up some _mesa_make_current() code

18 years agoremove rm -f line
Brian Paul [Wed, 14 Sep 2005 02:18:43 +0000 (02:18 +0000)]
remove rm -f line

18 years agoremove .a file before creating new one
Brian Paul [Wed, 14 Sep 2005 02:18:09 +0000 (02:18 +0000)]
remove .a file before creating new one

18 years agopageflip change from radeon driver
Brian Paul [Wed, 14 Sep 2005 00:49:09 +0000 (00:49 +0000)]
pageflip change from radeon driver

18 years agoInstead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
Brian Paul [Wed, 14 Sep 2005 00:42:33 +0000 (00:42 +0000)]
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when window size/position changes.

18 years agomake some funcs static
Brian Paul [Wed, 14 Sep 2005 00:37:10 +0000 (00:37 +0000)]
make some funcs static

18 years agoInstead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
Brian Paul [Wed, 14 Sep 2005 00:36:27 +0000 (00:36 +0000)]
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when window size/position changes.

18 years agouse mklib script to make drivers instead of gcc -shared
Brian Paul [Wed, 14 Sep 2005 00:33:03 +0000 (00:33 +0000)]
use mklib script to make drivers instead of gcc -shared

18 years agoupdated comment
Brian Paul [Wed, 14 Sep 2005 00:11:30 +0000 (00:11 +0000)]
updated comment

18 years agomake some functions static
Brian Paul [Wed, 14 Sep 2005 00:10:56 +0000 (00:10 +0000)]
make some functions static

18 years agoInstead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
Brian Paul [Wed, 14 Sep 2005 00:10:27 +0000 (00:10 +0000)]
Instead of calling _mesa_ResizeBuffersMESA() in the Viewport function,
call driUpdateFramebufferSize() when we detect changes in window size/
position in radeonGetLock().

18 years agoadded driUpdateFramebufferSize()
Brian Paul [Wed, 14 Sep 2005 00:09:09 +0000 (00:09 +0000)]
added driUpdateFramebufferSize()

18 years agoMove _mesa_add_soft_renderbuffers() from framebuffer.c to renderbuffer.c
Brian Paul [Tue, 13 Sep 2005 23:37:50 +0000 (23:37 +0000)]
Move _mesa_add_soft_renderbuffers() from framebuffer.c to renderbuffer.c
Update some comments, code, etc.

18 years agoupdate like for MD2 viewer
Brian Paul [Tue, 13 Sep 2005 18:18:47 +0000 (18:18 +0000)]
update like for MD2 viewer

18 years agoreplace semicolon with &&
Brian Paul [Tue, 13 Sep 2005 15:04:30 +0000 (15:04 +0000)]
replace semicolon with &&

18 years agoprint version with debug info
Brian Paul [Tue, 13 Sep 2005 14:48:28 +0000 (14:48 +0000)]
print version with debug info

18 years agofix FreeBSD problem (bug 4435)
Brian Paul [Tue, 13 Sep 2005 13:36:47 +0000 (13:36 +0000)]
fix FreeBSD problem (bug 4435)

18 years agoFix libGL build on FreeBSD by respecting ASM_FLAGS.
Eric Anholt [Tue, 13 Sep 2005 05:19:02 +0000 (05:19 +0000)]
Fix libGL build on FreeBSD by respecting ASM_FLAGS.

Submitted by: Diego Pettenò <flameeyes@gentoo.org>

18 years agoReplace ctx->Driver.StencilOp/Func/Mask() functions with
Brian Paul [Tue, 13 Sep 2005 04:42:09 +0000 (04:42 +0000)]
Replace ctx->Driver.StencilOp/Func/Mask() functions with
ctx->Driver.Stencil*Separate() functions.

18 years agoOpenGL 2.0's two-sided stencil feature wasn't implemented correctly.
Brian Paul [Tue, 13 Sep 2005 02:59:53 +0000 (02:59 +0000)]
OpenGL 2.0's two-sided stencil feature wasn't implemented correctly.
See comment near top of stencil.c for info about OpenGL 2.0 vs.
GL_EXT_stencil_two_side.

18 years agojust some reformatting
Brian Paul [Tue, 13 Sep 2005 02:57:07 +0000 (02:57 +0000)]
just some reformatting

18 years agoClear either 8 or 16-bit stencil buffers.
Brian Paul [Tue, 13 Sep 2005 02:03:06 +0000 (02:03 +0000)]
Clear either 8 or 16-bit stencil buffers.

18 years agoUse GLuint/GLint intead of GLstencil for stencil state.
Brian Paul [Tue, 13 Sep 2005 02:02:03 +0000 (02:02 +0000)]
Use GLuint/GLint intead of GLstencil for stencil state.

18 years agoMove the ctx->FirstTimeCurrent initialization
Brian Paul [Tue, 13 Sep 2005 01:19:29 +0000 (01:19 +0000)]
Move the ctx->FirstTimeCurrent initialization