summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-12-30st/xorg: Make sure we don't overrun the fence array in block handlerJakob Bornecrantz
2009-12-29glu/sgi: Initialize member variables in class Varray.Vinson Lee
2009-12-29glu/sgi: Initialize member of class monoChain.Vinson Lee
2009-12-29glu/sgi: Initialize members of class sampledLine.Vinson Lee
2009-12-29mesa: add dlist support for indexed colormask and indexed enables/disablesBrian Paul
Not plugged into dispatch table yet...
2009-12-29mesa: implement per-buffer color maskingBrian Paul
This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
2009-12-29glu/sgi: Initialize members of class directedLine.Vinson Lee
2009-12-29mesa: implement indexed glGet functionsBrian Paul
The functions are _mesa_GetBooleanIndexedv(), _mesa_GetIntegerIndexedv(), and _mesa_GetInteger64Indexedv(). These will be called from API functions such as glGetBooleanIndexedvEXT() and glGetBooleani_v(). Only the GL_BLEND query is supported at this time.
2009-12-29mesa: per-buffer blend enabled flagsBrian Paul
ctx->Color.BlendEnabled is now a GLbitfield instead of a GLboolean to indicate blend on/off status for each color/draw buffer. This is infrastructure for GL_EXT_draw_buffers2 and OpenGL 3.x New functions include _mesa_EnableIndexed(), _mesa_DisableIndexed(), and _mesa_IsEnabledIndexed(). The enable function corresponds to glEnableIndexedEXT() for GL_EXT_draw_buffers2 or glEnablei() for GL3. Note that there's quite a few tests for ctx->Color.BlendEnabled != 0 in drivers, etc. Those tests can remain as-is since the mask will be 0 or ~0 unless GL_EXT_draw_buffers2 is enabled.
2009-12-29mesa: Initialize variable in get_tex_color_index.Vinson Lee
2009-12-29glsl: added uniform initializer checkBrian Paul
GLSL 1.10 disallows initializers for uniforms but GLSL 1.20 and later allows them. This patch uses the #version directive to allow/disallow uniform initializers. This addresses bug 25807, but piglit also needs to be fixed to specify the GLSL version in the shader.
2009-12-29ARB prog parser: use _mesa_add_unnamed_constant() to use fewer constant slotsBrian Paul
This function will search the constant parameters in an effort to re-use constant slots. For example, {1,2,3,4} and {4,1,1,2} can be stored in one constant slot and accessed with different swizzles. The swizzle info must be propogated though the parsing code in a few places. Fixes Piglit "vpfp-generic tests/shaders/generic/big-param.vpfp" failure.
2009-12-29glsl: added default case in _fetch_token() to silence warningsBrian Paul
2009-12-28intel: Fix false positives in checking for non-packed depth/stencil RB.Eric Anholt
The wine d3d9 visual.c testcase was tripping over this and failing. Presumably it's binding a packed depth/stencil texture to both stencil and depth attachment points, and we make a new renderbuffer wrapper for each in that case.
2009-12-28st/egl: Move declaration before code.Vinson Lee
2009-12-28intel: Allow binding a stencil but not a depth buffer.Eric Anholt
Wine's d3d9 visual.c testcase tries this a lot, so I've added some piglit tests (fbo-nodepth-test, fbo-nostencil-test, fbo-stencil-only) and enabled it.
2009-12-28intel: Improve INTEL_DEBUG=fbo output.Eric Anholt
2009-12-28intel: Remove dead fthrottle_mode option. We only do IRQ waits.Eric Anholt
Noticed by clang.
2009-12-28mesa: remove gratuitous stores I added in remove_instructions.Eric Anholt
2009-12-28intel: Silence compiler warnings.Vinson Lee
2009-12-28llvmpipe: Fix assert.Vinson Lee
2009-12-28llvmpipe: Silence compiler warnings.Vinson Lee
2009-12-28nouveau: Unreference state/buffer objects on context/screen destruction.Younes Manton
- unreference state objects so that buffer objects are unreferenced and eventually destroyed - free channel at screen's destruction Based on Krzysztof Smiechowicz's patch.
2009-12-28nouveau: Fix swizzling for copies to rectangular texturesLuca Barbieri
nVidia hardware seems to swizzle rectangular texture (with width != height) coordinates by swizzling the lower bits and then adding the higher bits from the larger dimension. However, nv04_swizzle_bits ignores width and height and just interleaves everything. This causes problems with rectangular POT textures with height or width 2048 or 4096 (but not 2048x1024 where it works by chance) since the driver swizzles them in 1024x1024 chunks and gets the start position for the non-first chunks wrong. The following patch seems to fix those problems.
2009-12-28nouveau: Fix nv20-40 swizzled miptree RTsLuca Barbieri
I just coded a patch that does this and seems to work fine. It must be fixed since it breaks OpenGL (or the state tracker can be changed, but it seems better to do it in the driver). The patch also fixes NV20 and NV30 in the same way. They compile but are untested. I would guess that using the 3D engine is faster for the larger levels, but the 2D engine is faster for the smaller ones (and lacks this issue).
2009-12-28NV30/NV40 CMP and SCS src == dst handlingLuca Barbieri
CMP and SCS can produce incorrect results if the source and destination are the same. This patch should fix the issues. CMP is fixed by predicating both moves. SCS by changing the order if the source component is X.
2009-12-28llvmpipe: Unmapping vertex/index buffers does NOT flush draw module anymore.José Fonseca
Not since 6094e79f4e3350d123c7532b1c73faa60834a62d. Drivers now need to flush draw module explicitely (which explains why all those previous commits adding draw_flushes calls were necessary). This is a good thing, but it's tricky to get this right in face of user buffers (it's not even clear who has the responsibility to flush when a user buffer is seen -- statetracker or pipe driver), so just force flush (temporarily) since it's not a bottleneck now.
2009-12-28python/retrace: Dump only the specified image rectangles.José Fonseca
2009-12-28xlib: Integrate the trace driver with all pipe drivers.José Fonseca
And not just softpipe. It is particularly convenient to use llvmpipe instead, since it is much faster. It also allows to use rbug with all xlib drivers.
2009-12-28scons: Fix xlib build.José Fonseca
After glsl rework merge.
2009-12-28nv04: Fix build after the latest nouveau_class.h changes.Francisco Jerez
2009-12-28nv50: Dehexify and bring up to date with new method defines.Marcin Kościelnicki
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2009-12-28util: better fix for unused variable warnings with assertsKeith Whitwell
Modify the non-debug (ie disabled) version of assert to expose the value in the expression to the compiler (avoiding the unused variable messages) while still expanding to a noop.
2009-12-28llvmpipe: Silence compiler warnings.Vinson Lee
2009-12-27st/xorg: Silence unused variable warnings.Vinson Lee
2009-12-27g3dvl: Silence compiler warnings.Vinson Lee
2009-12-27st/vega: Silence compiler warnings.Vinson Lee
2009-12-27gallium/xlib: Silence unused variable warning.Vinson Lee
2009-12-27trace: Silence unused variable warnings.Vinson Lee
2009-12-27i915g: Silence unused variable warning.Vinson Lee
2009-12-27softpipe: Silence unintialized variable warnings.Vinson Lee
2009-12-27softpipe: Silence unused variable warning.Vinson Lee
2009-12-27tgsi/ureg: Silence uninitialized variable warnings.Vinson Lee
2009-12-27Merge branch 'mesa_7_6_branch' into mesa_7_7_branchBrian Paul
Conflicts: src/gallium/auxiliary/util/u_network.c src/gallium/auxiliary/util/u_network.h src/gallium/drivers/i915/i915_state.c src/gallium/drivers/trace/tr_rbug.c src/gallium/state_trackers/vega/bezier.c src/gallium/state_trackers/vega/vg_context.c src/gallium/state_trackers/xorg/xorg_crtc.c src/gallium/state_trackers/xorg/xorg_driver.c src/gallium/winsys/xlib/xlib_brw_context.c src/mesa/main/mtypes.h
2009-12-27Merge branch 'mesa_7_7_branch'Brian Paul
2009-12-27st/mesa: add missing case for PIPE_FORMAT_B8G8R8A8_UNORMBrian Paul
2009-12-27r300g: fix use of uninitialised variables.Dave Airlie
These buffers were getting dereferenced later.
2009-12-27r300g: rename modesetting_drv.so to radeong_drv.soDave Airlie
2009-12-26gallium/util: Remove comma at end of enumerator list.Vinson Lee
2009-12-26rbug: Remove comma at end of enumerator list.Vinson Lee