summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* i915: Increase maximum program size to the hardware limits.Eric Anholt2009-10-012-7/+16
| | | | | | This fixes potential heap trashing if the program of choice exceeds limits, and fixes the native instructions limit being lower than what can be used by valid programs.
* i915: Update and translate the fragment program along with state updates.Eric Anholt2009-10-014-14/+26
| | | | | | | Previously, we were doing it in the midst of the pipeline run, which gave an opportunity to enable/disable fallbacks, which is certainly the wrong time to be doing so. This manifested itself in a NULL dereference for PutRow after transitioning out of a fallback during a run_pipeline in glean glsl1.
* Revert "i915: don't validate PS program when falling back to software"Eric Anholt2009-10-011-2/+1
| | | | | | | This reverts commit e7044d552c6d16389447880b8744a51de1cf0199. It prevented the driver from ever recovering from a software fallback due to a program error. The original bug it claimed to fix doesn't appear to exist post-revert.
* i915: Bail when the fragment program has too many total instructions.Eric Anholt2009-10-011-0/+10
| | | | Previously, we'd go trashing the heap.
* i915: Let i915_program_error take a format string, and don't use _mesa_problem.Eric Anholt2009-10-013-12/+24
| | | | | | It's misleading to report things like the program having too many native instructions as a Mesa implementation error, when the program may just be too big for the hardware.
* Merge branch 'mesa_7_6_branch'Brian Paul2009-10-0114-102/+197
|\
| * mesa: Return -FLT_MAX instead of 0 for LG2(0).Vinson Lee2009-10-011-1/+1
| | | | | | | | | | lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0 for LG2(0).
| * glx: fix glXQueryContext(GLX_RENDER_TYPE)Brian Paul2009-09-301-0/+6
| | | | | | | | | | | | | | | | 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.
| * i965: Fix massive memory allocation for streaming texture usage.Eric Anholt2009-09-303-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * docs: document GLSL sqrt(0) fixBrian Paul2009-09-291-0/+1
| |
| * glsl: regenerated fileBrian Paul2009-09-291-49/+57
| |
| * glsl: rewrite sqrt(x) intrinsic to handle x=0Brian Paul2009-09-291-34/+42
| | | | | | | | | | | | 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.
| * glsl: add support for CMP instructionBrian Paul2009-09-294-0/+4
| |
| * docs: fixed glXQueryContext(GLX_RENDER_TYPE)Brian Paul2009-09-291-0/+1
| |
| * gallium/xlib: fix GLX_RENDER_TYPE queryBrian Paul2009-09-291-4/+4
| | | | | | | | Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
| * mesa/xlib: fix GLX_RENDER_TYPE queryBrian Paul2009-09-291-2/+2
| | | | | | | | Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
| * glx: indentation fixesBrian Paul2009-09-291-12/+13
| |
* | objviewer: remove disabled codeBrian Paul2009-10-011-3/+0
| |
* | objviewer: mouse/keyboard info in README fileBrian Paul2009-10-011-0/+8
| |
* | docs: added objviewer to release notesBrian Paul2009-10-011-0/+1
| |
* | mesa: add objviewer to PROGRAM_DIRSBrian Paul2009-10-011-1/+1
| |
* | mesa: add progs/objviewer to tarball listBrian Paul2009-10-011-0/+6
| |
* | objview: clean up drawing VBO codeBrian Paul2009-10-011-26/+1
| |
* | objview: set skybox texture filterBrian Paul2009-10-011-0/+4
| |
* | objview: check GL version/extensionBrian Paul2009-10-011-1/+29
| |
* | progs/objviewer: Wavefront .obj file loader/viewer demoBrian Paul2009-10-0120-0/+764987
| | | | | | | | Adapted from code written by Nate Robins. See README.txt.
* | st/xorg: Check that ms->api->destroy is not NULL before calling it.Michel Dänzer2009-10-011-1/+3
| | | | | | | | Fixes potential crash on X server shutdown.
* | util: Enable sockets on BSDRobert Noland2009-10-013-5/+5
| | | | | | | | | | | | | | I think this should be safe for all of the BSDs. Signed-off-by: Robert Noland <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* | util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD.Robert Noland2009-10-011-0/+13
| | | | | | | | | | | | | | Since the various BSDs use some different features here, define PIPE_OS_OPENBSD and PIPE_OS_NETBSD as well Signed-off-by: Robert Noland <[email protected]>
* | mesa: better debug messageBrian Paul2009-10-011-1/+1
| |
* | gallium: remove depth.occlusion_count flagKeith Whitwell2009-10-016-11/+0
| | | | | | | | | | | | | | 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.
* | st/mesa: fix non-mipmap lastLevel calculation.Cooper Yuan2009-10-011-1/+5
| | | | | | | | reviewed by Brian Paul.
* | st/xorg: Fix debug option function call typo.Michel Dänzer2009-09-301-1/+1
| |
* | mesa/main: New feature FEATURE_beginend.Chia-I Wu2009-09-3010-10/+184
| | | | | | | | | | This feature corresponds to the Begin/End paradigm. Disabling this feature also eliminates the use of GLvertexformat completely.
* | mesa/main: Make FEATURE_dlist follow feature conventions.Chia-I Wu2009-09-309-86/+110
| | | | | | | | | | As shown in mfeatures.h, this allows users of dlist.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_evaluators follow feature conventions.Chia-I Wu2009-09-309-131/+114
| | | | | | | | | | As shown in mfeatures.h, this allows users of eval.h to work without knowing if the feature is available.
* | mesa/main: New feature FEATURE_queryobj.Chia-I Wu2009-09-309-75/+79
| | | | | | | | | | It merges FEATURE_ARB_occlusion_query and FEATURE_EXT_timer_query, and follows the feature conventions.
* | mesa/main: New feature FEATURE_arrayelt.Chia-I Wu2009-09-308-11/+73
| | | | | | | | This allows the removal of AEcontext.
* | mesa/main: Make FEATURE_texgen follow feature conventions.Chia-I Wu2009-09-303-37/+54
| | | | | | | | | | As shown in mfeatures.h, this allows users of texgen.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_feedback follow feature conventions.Chia-I Wu2009-09-304-50/+70
| | | | | | | | | | As shown in mfeatures.h, this allows users of feedback.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_drawpix follow feature conventions.Chia-I Wu2009-09-303-29/+42
| | | | | | | | | | As shown in mfeatures.h, this allows users of drawpix.h to work without knowing if the feature is available.
* | mesa/main: New feature FEATURE_rastpos.Chia-I Wu2009-09-305-254/+133
| | | | | | | | | | It is separated from FEATURE_drawpix and made to follow the feature conventions.
* | mesa/main: Make FEATURE_histogram follow feature conventions.Chia-I Wu2009-09-304-65/+47
| | | | | | | | | | As shown in mfeatures.h, this allows users of histogram.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_attrib_stack follow feature conventions.Chia-I Wu2009-09-304-25/+47
| | | | | | | | | | As shown in mfeatures.h, this allows users of attrib.h to work without knowing if the feature is available.
* | mesa/main: Make FEATURE_accum follow feature conventions.Chia-I Wu2009-09-304-23/+45
| | | | | | | | | | As shown in mfeatures.h, this allows users of accum.h to work without knowing if the feature is available.
* | progs/egl: Make demo3 work again.Chia-I Wu2009-09-301-10/+15
| | | | | | | | Signed-off-by: Chia-I Wu <[email protected]>
* | progs/egl: Check EGL_MESA_screen_surface is supported in demo2.Chia-I Wu2009-09-301-0/+6
| | | | | | | | Signed-off-by: Chia-I Wu <[email protected]>
* | progs/egl: Fix a crash in demo1.Chia-I Wu2009-09-301-10/+11
| | | | | | | | | | | | The variable "configs" in main() is used without initialization. Signed-off-by: Chia-I Wu <[email protected]>
* | st/egl: Fix a double free in drm_destroy_context.Chia-I Wu2009-09-301-1/+0
| | | | | | | | | | | | st_destroy_context has destroyed the pipe context for us. Signed-off-by: Chia-I Wu <[email protected]>
* | st/egl: Fix a crash when unbinding current context.Chia-I Wu2009-09-303-14/+4
| | | | | | | | | | | | | | | | 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 <[email protected]>