Brian Paul [Sat, 25 Mar 2006 16:16:37 +0000 (16:16 +0000)]
check for incomplete FBO in _mesa_Clear()
Brian Paul [Fri, 24 Mar 2006 23:53:50 +0000 (23:53 +0000)]
Clean up the recent code related to texture_override(). Pass params in a
more logical order.
Remove a mess of stray ^M chars.
Fix a bug when checking if the texture object's format is GL_COLOR_INDEX
or GL_DEPTH_COMPONENT. This fixes a segfault when GL_TEXTURE_BASE_LEVEL!=0.
Brian Paul [Fri, 24 Mar 2006 23:17:06 +0000 (23:17 +0000)]
lots of debug options, some code movement, etc
Brian Paul [Fri, 24 Mar 2006 22:53:00 +0000 (22:53 +0000)]
added some missing formats in _mesa_source/dest_buffer_exists()
Aapo Tahkola [Fri, 24 Mar 2006 16:35:08 +0000 (16:35 +0000)]
Make ARB_vp backends happy with nv arl
Aapo Tahkola [Fri, 24 Mar 2006 16:33:34 +0000 (16:33 +0000)]
secondary color fixes.
Brian Paul [Thu, 23 Mar 2006 17:17:23 +0000 (17:17 +0000)]
Added -l option for explicit locking around Xlib and GLX calls in
threaded code. Seems to improve reliability quite a bit.
Brian Paul [Thu, 23 Mar 2006 16:58:22 +0000 (16:58 +0000)]
Added -p option to create a display connection per thread.
This seems more stabile than using one display connection for all threads.
Still get an occasional Xlib: unexpected async reply error, unfortunately.
Dave Airlie [Thu, 23 Mar 2006 04:20:37 +0000 (04:20 +0000)]
make solo build complete
Dave Airlie [Thu, 23 Mar 2006 04:15:29 +0000 (04:15 +0000)]
fix coverity 1107: use after free
Dave Airlie [Thu, 23 Mar 2006 04:13:37 +0000 (04:13 +0000)]
fix coverity 926: use before NULL check
Brian Paul [Wed, 22 Mar 2006 22:02:07 +0000 (22:02 +0000)]
Need to check for new state and do readpixels/drawpixels clipping after
we call RENDER_START since that may involve validating the drawable and
updating its dimensions.
Aapo Tahkola [Wed, 22 Mar 2006 21:29:27 +0000 (21:29 +0000)]
implement arl and enable hw nv_vp.
Aapo Tahkola [Wed, 22 Mar 2006 21:29:15 +0000 (21:29 +0000)]
ARL dst idx was undefined.
Brian Paul [Tue, 21 Mar 2006 21:57:00 +0000 (21:57 +0000)]
GL_EXT_packed_depth_stencil should be off by default
Michal Krol [Tue, 21 Mar 2006 10:59:14 +0000 (10:59 +0000)]
Silencium gcc warnings.
Michal Krol [Tue, 21 Mar 2006 10:37:40 +0000 (10:37 +0000)]
GLSL fixes:
- generate error on NULL pointers in glShaderSourceARB;
- reinstall program object, if current, in glLinkProgramARB;
- vertex and fragment shaders are optional in program object;
- floor asm was wrongly computed for x86 back-end;
- allow for (void) idiom in function prototypes;
- all fixed-state uniforms are updated;
- local variable initializers are working;
- implement texture* and shadow* functions for vertex processor;
- generate error if too many arguments in general constructor;
- trim unused data in general constructor;
- struct r-value field select was badly relocated;
Changes:
- add derived state gl_fog_attrib::_Scale;
- add derived state gl_light::_CosCutoffNeg;
Brian Paul [Mon, 20 Mar 2006 18:51:57 +0000 (18:51 +0000)]
Lots of changes/fixes for rendering to framebuffer objects.
- When deleting texture objects, unbind from FBOs if necessary.
- Changed driver hooks for starting/ending render to texture.
- Now properly handle case where gl[Copy]TexImage() is called after
glFramebufferTexture[123]D(). That didn't work before.
Brian Paul [Mon, 20 Mar 2006 15:27:55 +0000 (15:27 +0000)]
additional assertions and debug code for testing FBO completeness
Brian Paul [Mon, 20 Mar 2006 15:27:33 +0000 (15:27 +0000)]
additional error checking to be sure source renderbuffer exists for glCopyTex[Sub]Image()
Brian Paul [Mon, 20 Mar 2006 15:26:20 +0000 (15:26 +0000)]
use new _mesa_sourc/dest_buffer_exists() functions
Brian Paul [Mon, 20 Mar 2006 15:25:18 +0000 (15:25 +0000)]
added _mesa_source/dest_buffer_exists() function to easily test if particular renderbuffers are present
Brian Paul [Mon, 20 Mar 2006 15:20:57 +0000 (15:20 +0000)]
fix some buffer binding tests in _mesa_make_current()
Brian Paul [Mon, 20 Mar 2006 15:20:30 +0000 (15:20 +0000)]
slightly improved error message
Aapo Tahkola [Mon, 20 Mar 2006 13:37:28 +0000 (13:37 +0000)]
Fix texrect upload conflicts.
Aapo Tahkola [Sun, 19 Mar 2006 21:17:14 +0000 (21:17 +0000)]
Disable tnl programs when doing software vertex programs. compiz with its texrect and lighting needs was broken because of this.
Brian Paul [Sun, 19 Mar 2006 19:07:12 +0000 (19:07 +0000)]
minor clean-ups
Aapo Tahkola [Sun, 19 Mar 2006 18:04:12 +0000 (18:04 +0000)]
-fix texrect fallback when using vtxfmt_a (glitz, xgl, etc.)
-struct vertex_buffer to struct radeon_vertex_buffer conversion
-vertex attrib arrays did not supersede conventinal arrays when enabled
Brian Paul [Sun, 19 Mar 2006 00:10:22 +0000 (00:10 +0000)]
Queries of GL_READ_BUFFER and GL_DRAW_BUFFER were still returning the
pre-GL_EXT_framebuffer_object state. Now return the read/draw state stored
in the framebuffer objects.
Brian Paul [Sat, 18 Mar 2006 21:46:17 +0000 (21:46 +0000)]
Don't call Driver->Bitmap() if no image to render
Jouk Jansen [Fri, 17 Mar 2006 14:38:41 +0000 (14:38 +0000)]
Committing in .
Mesa/src/mesa/main/imports.h : removed <CR>
Mesa/src/mesa/shader/slang/descrip.mms : added new sources
Modified Files:
Mesa/src/mesa/main/imports.h
Mesa/src/mesa/shader/slang/descrip.mms
----------------------------------------------------------------------
Brian Paul [Fri, 17 Mar 2006 04:13:29 +0000 (04:13 +0000)]
Init FogCoordFuncs[0..5] too, remove some unneeded #includes
Brian Paul [Fri, 17 Mar 2006 04:10:03 +0000 (04:10 +0000)]
remove another test for IN_DRI_DRIVER
Kristian Høgsberg [Fri, 17 Mar 2006 00:03:20 +0000 (00:03 +0000)]
Don't use glx_ansic.h functions (__glXMemset).
Brian Paul [Thu, 16 Mar 2006 18:06:34 +0000 (18:06 +0000)]
added #undef GET_DISPATCH
Brian Paul [Thu, 16 Mar 2006 18:05:25 +0000 (18:05 +0000)]
Moved _glapi_check_multithread() call into drivers, instead of in
_mesa_make_current().
This removes an ugly #if !defined(IN_DRI_DRIVER) from core Mesa.
Brian Paul [Thu, 16 Mar 2006 04:44:00 +0000 (04:44 +0000)]
finish up some loose ends in _mesa_texstore_z24_s8()
Brian Paul [Wed, 15 Mar 2006 20:56:22 +0000 (20:56 +0000)]
assorted code clean-ups, comments, etc.
Brian Paul [Wed, 15 Mar 2006 20:42:00 +0000 (20:42 +0000)]
remove invalid assertion in _glapi_get_dispatch(), fixes additional thread safety problem
Brian Paul [Wed, 15 Mar 2006 20:31:50 +0000 (20:31 +0000)]
Need to include glthread.h in glapi.h, not glapi.c so that GET_CURRENT_CONTEXT
is properly defined. Fixes long-standing, but unnoticed thread safety failure.
Also, updated comments.
Brian Paul [Wed, 15 Mar 2006 20:30:17 +0000 (20:30 +0000)]
updated some printfs, added comment about sched_yield
Brian Paul [Wed, 15 Mar 2006 17:48:00 +0000 (17:48 +0000)]
sync with texmem branch
Brian Paul [Wed, 15 Mar 2006 14:09:08 +0000 (14:09 +0000)]
rename enums, fixes compilation breakage (Michal Krol)
Brian Paul [Wed, 15 Mar 2006 01:44:03 +0000 (01:44 +0000)]
use 'p' key to toggle use of GL_EXT_packed_depth_stencil
Brian Paul [Wed, 15 Mar 2006 01:36:52 +0000 (01:36 +0000)]
s/GLuint/GLushort/ in read_depth_stencil_image()
Brian Paul [Tue, 14 Mar 2006 22:39:43 +0000 (22:39 +0000)]
init Red/Green/EtcBits = 0 in soft_renderbuffer_storage()
Brian Paul [Tue, 14 Mar 2006 15:41:53 +0000 (15:41 +0000)]
Set always_array=true for glGenProgramsNV (Dave Reveman)
Brian Paul [Tue, 14 Mar 2006 15:08:52 +0000 (15:08 +0000)]
replace dprintf() with _glu_dprintf() (bug 6244)
Michal Krol [Tue, 14 Mar 2006 11:39:58 +0000 (11:39 +0000)]
Add slang_analyse.c and slang_library_texsample.c.
Michal Krol [Tue, 14 Mar 2006 11:23:16 +0000 (11:23 +0000)]
More GLSL code:
- add texture sampling support;
- fix assembly codegen bugs;
Aapo Tahkola [Mon, 13 Mar 2006 20:40:46 +0000 (20:40 +0000)]
Clean build.
Aapo Tahkola [Mon, 13 Mar 2006 18:23:19 +0000 (18:23 +0000)]
Fix broken max mipmap leveling that was horribly wrong.
Aapo Tahkola [Fri, 10 Mar 2006 05:30:33 +0000 (05:30 +0000)]
Option to init vp temps(for testing)
Brian Paul [Thu, 9 Mar 2006 16:27:35 +0000 (16:27 +0000)]
Add prototypes for GLX_MESA_swap_frame_usage, GLX_MESA_swap_control, and
GLX_EXT_texture_from_pixmap to silence warnings while compiling glxcmds.c
XXX: Need to add the new tokens for GLX_EXT_texture_from_pixmap!!!
Brian Paul [Thu, 9 Mar 2006 16:25:46 +0000 (16:25 +0000)]
s/GLint/int/, to fit GLX conventions
Brian Paul [Thu, 9 Mar 2006 16:24:46 +0000 (16:24 +0000)]
Instead of adding extra flags to DEFINES with +=, define EXTRA_DEFINES instead.
This eliminates a bunch of duplication in the compilation commmands.
Aapo Tahkola [Thu, 9 Mar 2006 06:21:17 +0000 (06:21 +0000)]
Kick VBOs out of GART if nothing else helps.
Aapo Tahkola [Thu, 9 Mar 2006 04:42:45 +0000 (04:42 +0000)]
Use the force Luke, use the force.
Dave Airlie [Wed, 8 Mar 2006 05:44:07 +0000 (05:44 +0000)]
coverity check bug fix going over end of array
Dave Airlie [Wed, 8 Mar 2006 05:37:58 +0000 (05:37 +0000)]
coverity checker bug: Pointer dereferenced after NULL check
Aapo Tahkola [Tue, 7 Mar 2006 22:46:52 +0000 (22:46 +0000)]
Fix broken DrawElements & DrawRangeElements.
Jouk Jansen [Tue, 7 Mar 2006 07:47:37 +0000 (07:47 +0000)]
Committing in .
Update OpenVMS makefiles
Modified Files:
Mesa/src/mesa/shader/slang/descrip.mms
Mesa/src/mesa/swrast/descrip.mms
----------------------------------------------------------------------
Aapo Tahkola [Tue, 7 Mar 2006 05:31:36 +0000 (05:31 +0000)]
Enable HW VBOs and other things needed by it.
Aapo Tahkola [Tue, 7 Mar 2006 05:15:24 +0000 (05:15 +0000)]
Convert to work with current DRM. + tag
Aapo Tahkola [Tue, 7 Mar 2006 05:09:48 +0000 (05:09 +0000)]
Various fallbacks, checks and tags.
Brian Paul [Tue, 7 Mar 2006 03:01:26 +0000 (03:01 +0000)]
just a comment for check_compatible()
Brian Paul [Tue, 7 Mar 2006 02:57:04 +0000 (02:57 +0000)]
disable double-buffer test in check_compatible(), fixes pbuffer/visual problem
Brian Paul [Tue, 7 Mar 2006 01:46:26 +0000 (01:46 +0000)]
print newline in _mesa_warning()
Brian Paul [Tue, 7 Mar 2006 01:43:52 +0000 (01:43 +0000)]
call _mesa_update_framebuffer_visual() in _mesa_FramebufferRenderbufferEXT() to fix some minor glitches
Brian Paul [Tue, 7 Mar 2006 01:11:05 +0000 (01:11 +0000)]
FreeBSD updates (Pedro Giffuni)
Aapo Tahkola [Mon, 6 Mar 2006 19:28:10 +0000 (19:28 +0000)]
Port r200 tex tiling code to run on r300 but keep it disabled.
Ian Romanick [Mon, 6 Mar 2006 18:31:50 +0000 (18:31 +0000)]
Later versions of Python handle formats like '% 5u' differently. For
whatever reason, a space is always inserted. That is not the desired
behavior.
Ian Romanick [Mon, 6 Mar 2006 18:30:17 +0000 (18:30 +0000)]
Generate server-side GLX protocol decode functions using the 'make server'
target. The environment variable XORG_BASE must be set to point to the base
of the X.org server sources where the files are to be placed.
The 7.0.0 server release already contains files generated by these scripts.
The scripts should have been committed months ago. Sorry for the lag. :(
Ian Romanick [Mon, 6 Mar 2006 16:42:12 +0000 (16:42 +0000)]
Display the correct bug number in the information text.
Ian Romanick [Mon, 6 Mar 2006 16:31:50 +0000 (16:31 +0000)]
Don't try to bind to proxy texture target. This is defined by the spec to be
an error. Since we're working with a proxy target, don't bother using real
texture data.
Add a missing new-line in an error printf.
Ian Romanick [Sat, 4 Mar 2006 04:46:10 +0000 (04:46 +0000)]
Build test for bugzilla #3050
Ian Romanick [Sat, 4 Mar 2006 04:44:47 +0000 (04:44 +0000)]
Test case for bugzilla #3050.
Roland Scheidegger [Fri, 3 Mar 2006 15:03:04 +0000 (15:03 +0000)]
Use standard ARB names instead of vendor-specific NV names for the ARB/NV_vertex_program enums in common state handling code, and update comments accordingly. Change some slightly confusing code which gave the impression GL_VERTEX_PROGRAM_ARB and GL_VERTEX_PROGRAM_NV enums were different.
Roland Scheidegger [Fri, 3 Mar 2006 14:11:19 +0000 (14:11 +0000)]
fix up the emit_func list in the experimental arbprogram sse code.
Roland Scheidegger [Fri, 3 Mar 2006 02:46:03 +0000 (02:46 +0000)]
Fix bogus span mask in s_atifragshader.c leading to trouble when the pixel was later discarded by z test (this fixes doom3 r200 renderpath with swrast). Fix calling _swrast_alpha_test potentially leading to bogus results when Alpha Test might not be enabled. While here, don't disable deferred_texture (early z) when ATI_fragment_shader is active, as it is not necessary (for the record, this boosts doom3 swrast performance by roughly a factor of 2 (4 seconds per frame now...) with the r200 render path, might be a worthwile optimization for fragment programs which don't write z).
Keith Whitwell [Thu, 2 Mar 2006 20:16:34 +0000 (20:16 +0000)]
Add position_invarient support
Roland Scheidegger [Thu, 2 Mar 2006 12:06:57 +0000 (12:06 +0000)]
Fix more enums defined not only by one extension when queried by glGet (GL_COLOR_SUM_EXT, GL_POINT_SPRITE_NV, GL_POINT_SPRITE_COORD_ORIGIN, GL_TRANSPOSE_CURRENT_MATRIX_ARB). Fix similar bugs (also those previously overseen dependant on NV/ARB_vertex_program) in glIsEnabled. Add missing GL_COLOR_SUM_EXT enum to glIsEnabled.
Brian Paul [Thu, 2 Mar 2006 04:12:34 +0000 (04:12 +0000)]
added GL_EXT_framebuffer_blit, etc
Brian Paul [Thu, 2 Mar 2006 03:54:14 +0000 (03:54 +0000)]
test glBlitFramebufferEXT w/ -blit flag
Brian Paul [Thu, 2 Mar 2006 03:51:04 +0000 (03:51 +0000)]
improved error msg
Brian Paul [Thu, 2 Mar 2006 03:46:33 +0000 (03:46 +0000)]
check FEATURE_EXT_framebuffer_blit
Brian Paul [Thu, 2 Mar 2006 03:45:28 +0000 (03:45 +0000)]
plug in BlitFramebuffer function
Brian Paul [Thu, 2 Mar 2006 03:37:18 +0000 (03:37 +0000)]
implementation of _swrast_BlitFramebuffer()
Roland Scheidegger [Wed, 1 Mar 2006 23:11:14 +0000 (23:11 +0000)]
Fix glGet with enums which are used not only in NV_vertex_program, but other extensions too (ARB_vertex_program, ARB_fragment_program, NV_fragment_program), if no support for NV_vertex_program is present. While here, fix return value if enum is used which is not supported by the exposed extensions (GL_INVALID_ENUM instead of GL_INVALID_VALUE). Fix some compile-time #ifs depending on NV_vertex/fragment_program which should also be dependant on ARB_vertex/fragment_program. See bug #6070
Brian Paul [Wed, 1 Mar 2006 15:44:20 +0000 (15:44 +0000)]
No need for _mesa_save_error() to be public.
glVertexAttrib() w/ bad index should generate GL_INVALID_VALUE, not
GL_INVALID_ENUM.
Misc clean-ups.
Brian Paul [Wed, 1 Mar 2006 15:36:34 +0000 (15:36 +0000)]
added BlitFramebuffer() support
Brian Paul [Wed, 1 Mar 2006 15:33:56 +0000 (15:33 +0000)]
New comments. Use tuples () instead of lists [] in a few places.
Brian Paul [Wed, 1 Mar 2006 15:32:38 +0000 (15:32 +0000)]
added Flush in glXCopyContext()
Brian Paul [Wed, 1 Mar 2006 02:09:40 +0000 (02:09 +0000)]
updated comment
Brian Paul [Wed, 1 Mar 2006 02:07:50 +0000 (02:07 +0000)]
Added glBlitFramebufferEXT function.
Brian Paul [Wed, 1 Mar 2006 02:02:43 +0000 (02:02 +0000)]
remove temporary tokens, more error checks for blit function
Brian Paul [Wed, 1 Mar 2006 02:00:58 +0000 (02:00 +0000)]
added s_blit.c
Brian Paul [Wed, 1 Mar 2006 01:57:30 +0000 (01:57 +0000)]
_swrast_blit_framebuffer() function
Brian Paul [Wed, 1 Mar 2006 01:54:59 +0000 (01:54 +0000)]
GL_EXT_framebuffer_blit tokens/functions
Aapo Tahkola [Tue, 28 Feb 2006 23:39:32 +0000 (23:39 +0000)]
Free temps when possible