mesa.git
19 years agoadded GL_INVALID_FRAMEBUFFER_OPERATION_EXT to gluErrorString()
Brian Paul [Wed, 5 Oct 2005 02:08:53 +0000 (02:08 +0000)]
added GL_INVALID_FRAMEBUFFER_OPERATION_EXT to gluErrorString()

19 years agoIn gl_texture_image replace IntFormat with InternalFormat and Format with
Brian Paul [Wed, 5 Oct 2005 01:48:07 +0000 (01:48 +0000)]
In gl_texture_image replace IntFormat with InternalFormat and Format with
_BaseFormat to be consistant with gl_renderbuffer.

19 years agocheck if deleting currently bound frame/renderbuffer object
Brian Paul [Tue, 4 Oct 2005 16:01:02 +0000 (16:01 +0000)]
check if deleting currently bound frame/renderbuffer object

19 years agoglBindTexture changes, new assertions
Brian Paul [Tue, 4 Oct 2005 15:16:27 +0000 (15:16 +0000)]
glBindTexture changes, new assertions

19 years agofix glIsRender/FramebufferEXT() assertions
Brian Paul [Tue, 4 Oct 2005 15:01:51 +0000 (15:01 +0000)]
fix glIsRender/FramebufferEXT() assertions

19 years agofix behaviour of glIsFrame/Renderbuffer()
Brian Paul [Tue, 4 Oct 2005 15:01:27 +0000 (15:01 +0000)]
fix behaviour of glIsFrame/Renderbuffer()

19 years agoUse Visual.depthBits rather than Renderbuffer::DepthBits for depth buffer
Brian Paul [Tue, 4 Oct 2005 14:49:30 +0000 (14:49 +0000)]
Use Visual.depthBits rather than Renderbuffer::DepthBits for depth buffer
operations.

19 years agochange initialization of renderbuffer DepthBits
Brian Paul [Tue, 4 Oct 2005 14:48:24 +0000 (14:48 +0000)]
change initialization of renderbuffer DepthBits

19 years agoBug #1155: Define IEEE_ONE on Super-H as well.
Adam Jackson [Mon, 3 Oct 2005 20:02:07 +0000 (20:02 +0000)]
Bug #1155: Define IEEE_ONE on Super-H as well.

19 years agodisable a warning
Brian Paul [Mon, 3 Oct 2005 16:11:47 +0000 (16:11 +0000)]
disable a warning

19 years agoadded a few calls to _mesa_update_framebuffer_visual()
Brian Paul [Mon, 3 Oct 2005 16:11:35 +0000 (16:11 +0000)]
added a few calls to _mesa_update_framebuffer_visual()

19 years agofinish up some missing code
Brian Paul [Mon, 3 Oct 2005 16:11:21 +0000 (16:11 +0000)]
finish up some missing code

19 years agoChange the 'count' for COMPRESSED_TEXTURE_FORMATS from "?" to "-1". This
Ian Romanick [Mon, 3 Oct 2005 15:05:40 +0000 (15:05 +0000)]
Change the 'count' for COMPRESSED_TEXTURE_FORMATS from "?" to "-1".  This
signals to the script (glX_proto_size.py) that generates the server-side
size functions that a handcoded query is needed to determine the data size.

Also do s/FOG_COORD_SOURCE/FOG_COORD_SRC/.

When initializing the count in glx_enum::__init__, cast the local property
to int.  Thanks to Python's dynamic typing, if this isn't done the type of
stored count will be a string instead of an int.

19 years agoRemove the non-existant --get-alias-set option from the help text.
Ian Romanick [Mon, 3 Oct 2005 14:59:26 +0000 (14:59 +0000)]
Remove the non-existant --get-alias-set option from the help text.

Update printPixelFunction (which is only used to generate code for the
server-side) to use the correct method for obtaining the dimensions of the
image parameter to a function.

Only use byteswap.h when building generated code on Linux.  Elsewhere use
the (horrible!) macros from X11/misc.h.

Make sure that enums associated with the generic "Get" function get applied
to GetIntegerv, GetBooleanv, GetFloatv, and GetDoublev.

19 years agocheck for GL_DEPTH_STENCIL_EXT
Brian Paul [Sat, 1 Oct 2005 16:09:45 +0000 (16:09 +0000)]
check for GL_DEPTH_STENCIL_EXT

19 years agoplug in _mesa_texstore_z24_s8()
Brian Paul [Sat, 1 Oct 2005 16:09:26 +0000 (16:09 +0000)]
plug in _mesa_texstore_z24_s8()

19 years agoadded _mesa_texstore_z24_s8()
Brian Paul [Sat, 1 Oct 2005 16:08:27 +0000 (16:08 +0000)]
added _mesa_texstore_z24_s8()

19 years agoGL_EXT_packed_depth_stencil changes
Brian Paul [Sat, 1 Oct 2005 16:06:25 +0000 (16:06 +0000)]
GL_EXT_packed_depth_stencil changes

19 years agoadditional error checking for GL_EXT_packed_depth_stencil
Brian Paul [Sat, 1 Oct 2005 16:05:30 +0000 (16:05 +0000)]
additional error checking for GL_EXT_packed_depth_stencil

19 years agofix an assertion
Brian Paul [Sat, 1 Oct 2005 16:04:38 +0000 (16:04 +0000)]
fix an assertion

19 years agosimplify the read_depth_stencil_pixels() function
Brian Paul [Sat, 1 Oct 2005 16:04:09 +0000 (16:04 +0000)]
simplify the read_depth_stencil_pixels() function

19 years agofix broken z24_s8 fetcher
Brian Paul [Sat, 1 Oct 2005 16:03:30 +0000 (16:03 +0000)]
fix broken z24_s8 fetcher

19 years agoupdated comment
Brian Paul [Sat, 1 Oct 2005 16:03:00 +0000 (16:03 +0000)]
updated comment

19 years agoadded _mesa_pack_depth_stencil_span()
Brian Paul [Sat, 1 Oct 2005 16:02:38 +0000 (16:02 +0000)]
added _mesa_pack_depth_stencil_span()

19 years agomove around some error checking
Brian Paul [Sat, 1 Oct 2005 16:02:11 +0000 (16:02 +0000)]
move around some error checking

19 years agouse fmod() to prevent overflow of angle variable
Brian Paul [Fri, 30 Sep 2005 15:03:33 +0000 (15:03 +0000)]
use fmod() to prevent overflow of angle variable

19 years agoimplemented fallbacks for GL_EXT_packed_depth_stencil
Brian Paul [Fri, 30 Sep 2005 03:01:30 +0000 (03:01 +0000)]
implemented fallbacks for GL_EXT_packed_depth_stencil

19 years agominor improvements
Brian Paul [Fri, 30 Sep 2005 03:01:11 +0000 (03:01 +0000)]
minor improvements

19 years agoadded _swrast_get_row()
Brian Paul [Fri, 30 Sep 2005 03:00:03 +0000 (03:00 +0000)]
added _swrast_get_row()

19 years agocall glFinish if drawing to front buffer
Brian Paul [Thu, 29 Sep 2005 18:46:27 +0000 (18:46 +0000)]
call glFinish if drawing to front buffer

19 years agoimplement CopyPixels for GL_DEPTH_STENCIL_EXT
Brian Paul [Thu, 29 Sep 2005 04:28:21 +0000 (04:28 +0000)]
implement CopyPixels for GL_DEPTH_STENCIL_EXT

19 years agoadded _swrast_put_row()
Brian Paul [Thu, 29 Sep 2005 04:27:47 +0000 (04:27 +0000)]
added _swrast_put_row()

19 years agoRewrite much of the pixel zoom code.
Brian Paul [Thu, 29 Sep 2005 03:20:15 +0000 (03:20 +0000)]
Rewrite much of the pixel zoom code.
Zoomed DrawPixels of packed depth/stencil works now.

19 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

19 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

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

19 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.

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

19 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

19 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()

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

19 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

19 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.

19 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.

19 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).

19 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.

19 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.

19 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

19 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

19 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
 ----------------------------------------------------------------------

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

19 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.

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

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

19 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.

19 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.

19 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

19 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.

19 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.

19 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.

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

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

19 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()

19 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()

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

19 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

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

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

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

19 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

19 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()

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

19 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()

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

19 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

19 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

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

19 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

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

19 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

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

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

19 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

19 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

19 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.

19 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()

19 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

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

19 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()

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

19 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

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

19 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.

19 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

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

19 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.

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

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

19 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.

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