summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-10-01g3dvl: Formatting.Younes Manton
2009-10-01g3dvl: Delete state_trackers/g3dvl, other unused files.Younes Manton
2009-10-01g3dvl: Copyright blocks.Younes Manton
2009-10-01st/xvmc: Set default CSC matrix to BT.601, no ProcAmp, full range RGB.Younes Manton
2009-10-01g3dvl: Color space conv interface & vl impl.Younes Manton
Interface is pipe_video_context::set_csc_matrix(). vl_csc.h defines some helpers to generate CSC matrices based on one of the color standard and a user defined ProcAmp (brightness, contrast, saturation, hue).
2009-10-01i915: Add stub ARB_occlusion_query support under a driconf debug option.Eric Anholt
This is useful for enabling our GLSL testcases using the 2.0 entrypoints even though we don't have full GL 2.0.
2009-10-01i915: Add optional support for ARB_fragment_shader under a driconf option.Eric Anholt
Other vendors have enabled ARB_fragment_shader as part of OpenGL 2.0 enablement even on hardware like the 915 with no dynamic branching or dFdx/dFdy support. But for now we'll leave it disabled because we don't do any flattening of ifs or loops, which is rather restrictive. This support is not complete, and may be unstable depending on your shaders. It passes 10/15 of the piglit glsl tests, but hangs on glean glsl1.
2009-10-01i915: Add support or fallbacks for GLSL fragment shader opcodes.Eric Anholt
2009-10-01i915: Add support for varying inputs.Eric Anholt
2009-10-01i915: Enable ARB_vertex_shader for both i915 and i830.Eric Anholt
Since the TNL is all done in software anyway, it should be the same to the user who's probably using ARB_vertex_program otherwise, but gives them a nicer programming environment.
2009-10-01i915: Increase maximum program size to the hardware limits.Eric Anholt
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.
2009-10-01i915: Update and translate the fragment program along with state updates.Eric Anholt
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.
2009-10-01Revert "i915: don't validate PS program when falling back to software"Eric Anholt
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.
2009-10-01i915: Bail when the fragment program has too many total instructions.Eric Anholt
Previously, we'd go trashing the heap.
2009-10-01i915: Let i915_program_error take a format string, and don't use _mesa_problem.Eric Anholt
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.
2009-10-01Merge branch 'mesa_7_6_branch'Brian Paul
2009-10-01mesa: Return -FLT_MAX instead of 0 for LG2(0).Vinson Lee
lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0 for LG2(0).
2009-10-01st/xorg: Check that ms->api->destroy is not NULL before calling it.Michel Dänzer
Fixes potential crash on X server shutdown.
2009-10-01util: Enable sockets on BSDRobert Noland
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-01util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD.Robert Noland
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-01mesa: better debug messageBrian Paul
2009-10-01gallium: remove depth.occlusion_count flagKeith Whitwell
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-01st/mesa: fix non-mipmap lastLevel calculation.Cooper Yuan
reviewed by Brian Paul.
2009-09-30glx: fix glXQueryContext(GLX_RENDER_TYPE)Brian Paul
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-30i965: Fix massive memory allocation for streaming texture usage.Eric Anholt
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-30st/xorg: Fix debug option function call typo.Michel Dänzer
2009-09-30mesa/main: New feature FEATURE_beginend.Chia-I Wu
This feature corresponds to the Begin/End paradigm. Disabling this feature also eliminates the use of GLvertexformat completely.
2009-09-30mesa/main: Make FEATURE_dlist follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of dlist.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_evaluators follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of eval.h to work without knowing if the feature is available.
2009-09-30mesa/main: New feature FEATURE_queryobj.Chia-I Wu
It merges FEATURE_ARB_occlusion_query and FEATURE_EXT_timer_query, and follows the feature conventions.
2009-09-30mesa/main: New feature FEATURE_arrayelt.Chia-I Wu
This allows the removal of AEcontext.
2009-09-30mesa/main: Make FEATURE_texgen follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of texgen.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_feedback follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of feedback.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_drawpix follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of drawpix.h to work without knowing if the feature is available.
2009-09-30mesa/main: New feature FEATURE_rastpos.Chia-I Wu
It is separated from FEATURE_drawpix and made to follow the feature conventions.
2009-09-30mesa/main: Make FEATURE_histogram follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of histogram.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_attrib_stack follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of attrib.h to work without knowing if the feature is available.
2009-09-30mesa/main: Make FEATURE_accum follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of accum.h to work without knowing if the feature is available.
2009-09-30st/egl: Fix a double free in drm_destroy_context.Chia-I Wu
st_destroy_context has destroyed the pipe context for us. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-30st/egl: Fix a crash when unbinding current context.Chia-I Wu
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-29glsl: regenerated fileBrian Paul
2009-09-29glsl: rewrite sqrt(x) intrinsic to handle x=0Brian Paul
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-29glsl: add support for CMP instructionBrian Paul
2009-09-29gallium/xlib: fix GLX_RENDER_TYPE queryBrian Paul
Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
2009-09-29mesa/xlib: fix GLX_RENDER_TYPE queryBrian Paul
Return GLX_RGBA_TYPE or GLX_COLOR_INDEX_TYPE.
2009-09-29mesa: added nopfrag/nopvert options for MESA_GLSLBrian Paul
These options can be used to force vertex/fragment shaders to be no-op shaders (actually, simple pass-through shaders). For debug/test purposes.
2009-09-29mesa: added _mesa_nop_vertex/fragment_program()Brian Paul
For debug/test purposes.
2009-09-29llvmpipe: Workaround for bug in llvm 2.5.José Fonseca
The combination of fptosi and sitofp (necessary for trunc/floor/ceil/round implementation) somehow becomes invalid code. Skip the instruction combining pass when SSE4.1 is not available.
2009-09-29llvmpipe: First verify LLVM IR, only then run optimizing passes.José Fonseca
2009-09-29llvmpipe: Runtime cpu checks for lp_build_min_simple too.José Fonseca