Brian Paul
c4f2710f9d
Added -l option for explicit locking around Xlib and GLX calls in
...
threaded code. Seems to improve reliability quite a bit.
2006-03-23 17:17:23 +00:00
Brian Paul
436d72e994
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.
2006-03-23 16:58:22 +00:00
Dave Airlie
d76ef5867d
make solo build complete
2006-03-23 04:20:37 +00:00
Dave Airlie
0a6040dc2d
fix coverity 1107: use after free
2006-03-23 04:15:29 +00:00
Dave Airlie
eab896cc21
fix coverity 926: use before NULL check
2006-03-23 04:13:37 +00:00
Brian Paul
f756924fa5
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.
2006-03-22 22:02:07 +00:00
Aapo Tahkola
4fafe6390b
implement arl and enable hw nv_vp.
2006-03-22 21:29:27 +00:00
Aapo Tahkola
6fc864b9e6
ARL dst idx was undefined.
2006-03-22 21:29:15 +00:00
Brian Paul
daffbe99dc
GL_EXT_packed_depth_stencil should be off by default
2006-03-21 21:57:00 +00:00
Michal Krol
8995544bc9
Silencium gcc warnings.
2006-03-21 10:59:14 +00:00
Michal Krol
071357096e
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;
2006-03-21 10:37:40 +00:00
Brian Paul
519b23b21f
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.
2006-03-20 18:51:57 +00:00
Brian Paul
4991888fa0
additional assertions and debug code for testing FBO completeness
2006-03-20 15:27:55 +00:00
Brian Paul
34bd1233a9
additional error checking to be sure source renderbuffer exists for glCopyTex[Sub]Image()
2006-03-20 15:27:33 +00:00
Brian Paul
457fb0e128
use new _mesa_sourc/dest_buffer_exists() functions
2006-03-20 15:26:20 +00:00
Brian Paul
7275d4d097
added _mesa_source/dest_buffer_exists() function to easily test if particular renderbuffers are present
2006-03-20 15:25:18 +00:00
Brian Paul
f1038f81e4
fix some buffer binding tests in _mesa_make_current()
2006-03-20 15:20:57 +00:00
Brian Paul
c27c382acc
slightly improved error message
2006-03-20 15:20:30 +00:00
Aapo Tahkola
5319ed0e53
Fix texrect upload conflicts.
2006-03-20 13:37:28 +00:00
Aapo Tahkola
070f280895
Disable tnl programs when doing software vertex programs. compiz with its texrect and lighting needs was broken because of this.
2006-03-19 21:17:14 +00:00
Brian Paul
096dd541bd
minor clean-ups
2006-03-19 19:07:12 +00:00
Aapo Tahkola
77174f0072
-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
2006-03-19 18:04:12 +00:00
Brian Paul
21a4fb4137
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.
2006-03-19 00:10:22 +00:00
Brian Paul
19b05d5009
Don't call Driver->Bitmap() if no image to render
2006-03-18 21:46:17 +00:00
Jouk Jansen
2d2af2dcf7
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
----------------------------------------------------------------------
2006-03-17 14:38:41 +00:00
Brian Paul
eec33cc310
Init FogCoordFuncs[0..5] too, remove some unneeded #includes
2006-03-17 04:13:29 +00:00
Brian Paul
0f1d98c422
remove another test for IN_DRI_DRIVER
2006-03-17 04:10:03 +00:00
Kristian Høgsberg
724df02073
Don't use glx_ansic.h functions (__glXMemset).
2006-03-17 00:03:20 +00:00
Brian Paul
2b17741e1b
added #undef GET_DISPATCH
2006-03-16 18:06:34 +00:00
Brian Paul
c6c0f94714
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.
2006-03-16 18:05:25 +00:00
Brian Paul
ef8653a838
finish up some loose ends in _mesa_texstore_z24_s8()
2006-03-16 04:44:00 +00:00
Brian Paul
514a15cea1
assorted code clean-ups, comments, etc.
2006-03-15 20:56:22 +00:00
Brian Paul
ac8b07b3ae
remove invalid assertion in _glapi_get_dispatch(), fixes additional thread safety problem
2006-03-15 20:42:00 +00:00
Brian Paul
e660690985
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.
2006-03-15 20:31:50 +00:00
Brian Paul
30655c211c
updated some printfs, added comment about sched_yield
2006-03-15 20:30:17 +00:00
Brian Paul
59e0faaa5c
sync with texmem branch
2006-03-15 17:48:00 +00:00
Brian Paul
eccb6a0698
rename enums, fixes compilation breakage (Michal Krol)
2006-03-15 14:09:08 +00:00
Brian Paul
10f08cc202
use 'p' key to toggle use of GL_EXT_packed_depth_stencil
2006-03-15 01:44:03 +00:00
Brian Paul
b7e3e0d64e
s/GLuint/GLushort/ in read_depth_stencil_image()
2006-03-15 01:36:52 +00:00
Brian Paul
19b8322169
init Red/Green/EtcBits = 0 in soft_renderbuffer_storage()
2006-03-14 22:39:43 +00:00
Brian Paul
2a0d441ebb
Set always_array=true for glGenProgramsNV (Dave Reveman)
2006-03-14 15:41:53 +00:00
Brian Paul
15e74a6441
replace dprintf() with _glu_dprintf() (bug 6244)
2006-03-14 15:08:52 +00:00
Michal Krol
0f618b7eb7
Add slang_analyse.c and slang_library_texsample.c.
2006-03-14 11:39:58 +00:00
Michal Krol
8af48fc4d6
More GLSL code:
...
- add texture sampling support;
- fix assembly codegen bugs;
2006-03-14 11:23:16 +00:00
Aapo Tahkola
e9484e4085
Clean build.
2006-03-13 20:40:46 +00:00
Aapo Tahkola
a0cf4ceb36
Fix broken max mipmap leveling that was horribly wrong.
2006-03-13 18:23:19 +00:00
Stephane Marchesin
1c0230b396
Cleaned up some code, made more files compile. Renamed nv20_swtcl.* to
...
nv10_swtcl.*, hopefully this is the last rename (this should be, as
NV05 really behaves differently).
2006-03-13 11:30:41 +00:00
Aapo Tahkola
5042778449
Option to init vp temps(for testing)
2006-03-10 05:30:33 +00:00
Stephane Marchesin
9ebde216cc
A little work here and there
2006-03-10 01:43:39 +00:00
Brian Paul
9c32af5bb2
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!!!
2006-03-09 16:27:35 +00:00