Brian Paul
0f291f2efe
gallium/util: silence uninitialized var warning
2009-10-01 14:52:10 -06:00
Brian Paul
63064cf7c3
mesa: add missing return when out of memory
2009-10-01 14:51:43 -06:00
Brian Paul
7b568614a2
mesa: fix potential uninitialized memory reads
2009-10-01 14:51:26 -06:00
Brian Paul
9b27a0d063
glsl: fix mem leak
2009-10-01 14:50:45 -06:00
Brian Paul
b3e41e0d5e
st/mesa: check for null before asserts, fix possible mem leak
2009-10-01 14:49:39 -06:00
Brian Paul
b154497bef
st/mesa: silence hidden parameter warning
2009-10-01 14:49:04 -06:00
Brian Paul
5d2413fca4
Merge branch 'mesa_7_6_branch'
2009-10-01 13:35:42 -06:00
Brian Paul
495628bc5c
st/mesa: fix non-mipmap lastLevel calculation.
...
reviewed by Brian Paul.
(cherry picked from master, commit ae2daacbac
)
2009-10-01 13:34:49 -06:00
Vinson Lee
18883cdf23
mesa: Return -FLT_MAX instead of 0 for LG2(0).
...
lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0
for LG2(0).
2009-10-01 13:33:20 -06:00
Brian Paul
15c57648cd
objviewer: remove disabled code
2009-10-01 13:14:50 -06:00
Brian Paul
9745e26adb
objviewer: mouse/keyboard info in README file
2009-10-01 13:14:50 -06:00
Brian Paul
d622c4ddba
docs: added objviewer to release notes
2009-10-01 13:14:50 -06:00
Brian Paul
24f31ab861
mesa: add objviewer to PROGRAM_DIRS
2009-10-01 13:14:50 -06:00
Brian Paul
0b1de63ad8
mesa: add progs/objviewer to tarball list
2009-10-01 13:14:50 -06:00
Brian Paul
8d93a4c639
objview: clean up drawing VBO code
2009-10-01 13:14:50 -06:00
Brian Paul
c7c62521fb
objview: set skybox texture filter
2009-10-01 13:14:50 -06:00
Brian Paul
336994e54c
objview: check GL version/extension
2009-10-01 13:14:49 -06:00
Brian Paul
ca1bda552d
progs/objviewer: Wavefront .obj file loader/viewer demo
...
Adapted from code written by Nate Robins. See README.txt.
2009-10-01 13:14:48 -06:00
Michel Dänzer
e32a341be6
st/xorg: Check that ms->api->destroy is not NULL before calling it.
...
Fixes potential crash on X server shutdown.
2009-10-01 16:45:11 +02:00
Robert Noland
0b466c8705
util: Enable sockets on BSD
...
I think this should be safe for all of the BSDs.
Signed-off-by: Robert Noland <rnoland@2hip.net>
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-01 08:42:48 -06:00
Robert Noland
908ecb3faa
util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD.
...
Since the various BSDs use some different features here,
define PIPE_OS_OPENBSD and PIPE_OS_NETBSD as well
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-01 08:40:30 -06:00
Brian Paul
f8d8f45278
mesa: better debug message
2009-10-01 08:38:38 -06:00
Keith Whitwell
4456006ba6
gallium: remove depth.occlusion_count flag
...
This was redundant as drivers can just keep track of whether they are
inside a begin/end query pair. We want to add more query types later
and also support nested queries, none of which map well onto a flag like
this. No driver appeared to be using the flag.
2009-10-01 14:34:23 +01:00
Cooper Yuan
ae2daacbac
st/mesa: fix non-mipmap lastLevel calculation.
...
reviewed by Brian Paul.
2009-10-01 17:54:27 +08:00
Brian Paul
521e4b9b7e
glx: fix glXQueryContext(GLX_RENDER_TYPE)
...
The renderType parameter to CreateContext() was never used. Also, it
was often passed as zero. Now when it's zero we check if the context
is RGBA or CI mode and set it accordingly.
Fixes bug 24211.
2009-09-30 15:15:10 -06:00
Eric Anholt
49fbdd18ed
i965: Fix massive memory allocation for streaming texture usage.
...
Once we've freed a miptree, we won't see any more state cache requests
that would hit the things that pointed at it until we've let the miptree
get released back into the BO cache to be reused. By leaving those
surface state and binding table pointers that pointed at it around, we
would end up with up to (500 * texture size) in memory uselessly consumed
by the state cache.
Bug #20057
Bug #23530
2009-09-30 11:27:27 -07:00
Michel Dänzer
81a62edc08
st/xorg: Fix debug option function call typo.
2009-09-30 18:01:46 +02:00
Chia-I Wu
cef97267d6
mesa/main: New feature FEATURE_beginend.
...
This feature corresponds to the Begin/End paradigm. Disabling this
feature also eliminates the use of GLvertexformat completely.
2009-09-30 08:31:56 -06:00
Chia-I Wu
a73ba2d31b
mesa/main: Make FEATURE_dlist follow feature conventions.
...
As shown in mfeatures.h, this allows users of dlist.h to work without
knowing if the feature is available.
2009-09-30 08:31:56 -06:00
Chia-I Wu
aefa1f6ab1
mesa/main: Make FEATURE_evaluators follow feature conventions.
...
As shown in mfeatures.h, this allows users of eval.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
42fac11d43
mesa/main: New feature FEATURE_queryobj.
...
It merges FEATURE_ARB_occlusion_query and FEATURE_EXT_timer_query, and
follows the feature conventions.
2009-09-30 08:31:55 -06:00
Chia-I Wu
80630d1fed
mesa/main: New feature FEATURE_arrayelt.
...
This allows the removal of AEcontext.
2009-09-30 08:31:55 -06:00
Chia-I Wu
cc95de82e5
mesa/main: Make FEATURE_texgen follow feature conventions.
...
As shown in mfeatures.h, this allows users of texgen.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
301a510092
mesa/main: Make FEATURE_feedback follow feature conventions.
...
As shown in mfeatures.h, this allows users of feedback.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
67a2a4e901
mesa/main: Make FEATURE_drawpix follow feature conventions.
...
As shown in mfeatures.h, this allows users of drawpix.h to work
without knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
d25080074f
mesa/main: New feature FEATURE_rastpos.
...
It is separated from FEATURE_drawpix and made to follow the feature
conventions.
2009-09-30 08:31:55 -06:00
Chia-I Wu
cab7ea0368
mesa/main: Make FEATURE_histogram follow feature conventions.
...
As shown in mfeatures.h, this allows users of histogram.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
2b36db496d
mesa/main: Make FEATURE_attrib_stack follow feature conventions.
...
As shown in mfeatures.h, this allows users of attrib.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
a833ff0f53
mesa/main: Make FEATURE_accum follow feature conventions.
...
As shown in mfeatures.h, this allows users of accum.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
e82b02c7e8
progs/egl: Make demo3 work again.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-30 08:15:30 -06:00
Chia-I Wu
28c2190336
progs/egl: Check EGL_MESA_screen_surface is supported in demo2.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-30 08:15:30 -06:00
Chia-I Wu
e0b2848f4f
progs/egl: Fix a crash in demo1.
...
The variable "configs" in main() is used without initialization.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-30 08:15:30 -06:00
Chia-I Wu
4b95481e95
st/egl: Fix a double free in drm_destroy_context.
...
st_destroy_context has destroyed the pipe context for us.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-30 08:15:30 -06:00
Chia-I Wu
dd81cc885c
st/egl: Fix a crash when unbinding current context.
...
This fixes a NULL-pointer dereference when
eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)
is called.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-30 08:15:30 -06:00
Chia-I Wu
fa8df0c40d
progs/egl: Replace EGL_i915 by EGL_DEFAULT_DISPLAY.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-30 08:15:30 -06:00
Brian Paul
b77469871a
docs: document GLSL sqrt(0) fix
2009-09-29 19:05:04 -06:00
Brian Paul
322bc403bc
glsl: regenerated file
2009-09-29 18:59:37 -06:00
Brian Paul
65765c9f2c
glsl: rewrite sqrt(x) intrinsic to handle x=0
...
Since sqrt() is basically implemented in terms of RSQ/RCP we'll do a
divide by zero if x=0 and wind up with unpredictable results.
Now use CMP instruction to test for x<=0 and return zero in that case.
2009-09-29 18:57:13 -06:00
Brian Paul
3c794e45b0
glsl: add support for CMP instruction
2009-09-29 18:51:49 -06:00
Brian Paul
5f1faf4a21
docs: fixed glXQueryContext(GLX_RENDER_TYPE)
2009-09-29 12:18:41 -06:00