summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* Call _ae_update_state when array enable state changesKrzysztof Czurylo2008-08-211-0/+4
| | | | | | | | | | | | | | Basically, the application enables client vertex and color arrays, renders something, then disables color array, and renders something else (using vertex array only). Even though the color array is disabled (and the pointer is no longer valid), the driver still tries to read color data from this array (which results in an exception). This is because enabling/disabling array does not trigger _ae_update_state() and the list of enabled arrays is not updated. _ae_update_state() it's called on the first state validation only (as all the "dirty" flags are set at the beginning). Any further change to client arrays' state has no effect.
* 965: Fix color clamping issuesKrzysztof Czurylo2008-08-211-0/+21
| | | | Patch is correctly applied this time.
* Formatting changes to ease application of patchesIan Romanick2008-08-211-4/+5
|
* i965: use dri_bo_subdata in vertex upload to get pwrite used.Eric Anholt2008-08-211-26/+25
| | | | | | | | Otherwise, we would ping-pong objects to GTT and back as we did pwrite on indices (flushed and mapped to GTT) and mapped for vertices (moved back to CPU domain). Fixes bug #17180.
* Flush vertices when updating texObj->GenerateMipmap state.Eric Anholt2008-08-211-0/+1
| | | | Caught by texturing/gen-teximage test in piglit.
* Report damage before modifying the area, not after.Peter Hutterer2008-08-211-2/+2
| | | | | | | | | If we copy the area before reporting the damage in this area, the server may restore buffered data over the new data, leading to artefacts on the screen. Reproducable with two cursors (second of which is SW rendered) and moving windows around in compiz. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=16384 .
* intel: Fix SGIS_generate_mipmap after a miptree had been validated.Eric Anholt2008-08-203-35/+62
| | | | | | | | | Previously, the updated images would be ignored because the miptree in the image matched the miptree in the object, even though Mesa core had just attached updated contents in ->Data. Additionally, Mesa core could have tried to free inside our miptree if it had already been validated. Fixes bug #17077.
* mesa: fix float blend bugMark Anderson2008-08-201-3/+4
|
* i965: fixup format for TFP zero copyDave Airlie2008-08-201-2/+12
| | | | | (cherry picked from commit 9bc9e0ecb0fb2069b2c123e665eb2118e358098f which was lost in a merge)
* i965: make tex offset override work..Dave Airlie2008-08-201-15/+30
| | | | | | | should fix fd.o 14441 (cherry-picked from commit d4244683a61f66cfb78408a37cf2587587847f96 which was lost in a merge)
* i965: Enable GL_ARB_fragment_program_shadow and fix key->shadowtex_mask. ↵Xiang, Haihao2008-08-202-6/+4
| | | | (bug #16852, #16853)
* r5xx: Final fog option fix.Corbin Simpson2008-08-191-2/+4
| | | | | Is there some kind of git hook we could use to keep me from committing after like 10PM or so?
* r5xx: Don't squish GL context when using FogOptionCorbin Simpson2008-08-191-5/+3
|
* r5xx: Enable fog options.Corbin Simpson2008-08-181-0/+8
| | | | | This uses fog HW instead of fragment programs. If it breaks you, let me know!
* fix byte vs. pixel offset bug for 3D textures (see bug 17170)Henri Verbeet2008-08-181-3/+3
|
* mesa: rearrange some code in _mesa_BindTexture() to fix error detection bug ↵Brian Paul2008-08-181-42/+59
| | | | | | 17173 Also, move GL_TEXTURE_RECTANGLE init code into separate function.
* r5xx: Add DDX and DDY instructions.Corbin Simpson2008-08-176-4/+59
| | | | Signed-off-by: Corbin Simpson <[email protected]>
* prep for 7.1 rc4Brian Paul2008-08-161-1/+1
|
* mesa: turn off 'x' bit misset on a few .h and .syn filesBrian Paul2008-08-164-0/+0
|
* mesa: import latest GLSL code from gallium-0.1 branchBrian Paul2008-08-1640-3147/+3632
|
* intel: remove unneeded mem type and argsDave Airlie2008-08-141-10/+5
|
* r300: Fix 3D texture support.Michel Dänzer2008-08-142-3/+8
|
* mesa: fix a swrast state validation bugBrian Paul2008-08-131-1/+9
| | | | Fixes progs/glsl/points.c
* Fixed 'make install' for darwinJeremy Huddleston2008-08-121-2/+2
|
* mesa: glsl: add missing sampler types in sizeof_glsl_type(), bug 17079Brian Paul2008-08-111-2/+13
|
* mesa: added comment about gl_PointCoordBrian Paul2008-08-111-0/+1
|
* Apple: Cleaned up some linking and dylib ids issuesJeremy Huddleston2008-08-112-0/+3
|
* dri: fix crash in driGetConfigAttribIndexDave Miller2008-08-091-0/+4
| | | | Accessing a GLboolean via an int pointer on big-endian == bad.
* Merge branch 'drm-gem'Eric Anholt2008-08-0876-4312/+1748
|\ | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/intel/intel_span.c src/mesa/main/fbobject.c This converts the i915 driver to use the GEM interfaces for object management.
| * intel-gem: Update to new check_aperture API for classic mode.Eric Anholt2008-08-0831-305/+245
| | | | | | | | | | | | To do this, I had to clean up some of 965 state upload stuff. We may end up over-emitting state in the aperture overflow case, but that should be rare, and I'd rather have the simplification of state management.
| * 965: cleanups to state emission from aperture checking and state ordering.Eric Anholt2008-08-084-46/+3
| |
| * intel-gem: Always build GEM execbuffer code.Eric Anholt2008-07-311-11/+0
| |
| * intel-gem: Use new getparam to detect kernel GEM support.Eric Anholt2008-07-301-1/+8
| |
| * intel: Don't return a renderbuffer with alpha when just GL_RGB is requested.Eric Anholt2008-07-262-0/+72
| | | | | | | | | | Fixes oglconform rbGetterFuncs testcase. The span code for this mode hasn't actually been tested.
| * Merge branch 'master' into drm-gemIan Romanick2008-07-25171-30631/+8588
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_bufmgr.c src/mesa/drivers/dri/i965/brw_wm_surface_state.c
| * | mesa: Return 0 for cube map face of non-cubemap framebuffer attachments.Eric Anholt2008-07-251-1/+4
| | | | | | | | | | | | Fixes some oglconform fbo testcases.
| * | intel: If a tex image doesn't fit in the object's tree, make a temporary tree.Eric Anholt2008-07-251-3/+18
| | | | | | | | | | | | | | | | | | | | | Previously, we would just store the data as malloced memory hanging off the object, which would get memcpyed in at validate time. This broke an oglconform render-to-texture test, since validate wasn't called but a miptree was expected.
| * | intel: Add a little span cache to spead up readpixels by cutting syscalls.Eric Anholt2008-07-233-12/+42
| | |
| * | intel-gem: Use pread/pwrite for span access.Eric Anholt2008-07-234-197/+141
| | | | | | | | | | | | | | | This will avoid clflushing entire buffers for small acesses, such as those commonly used by regression tests.
| * | intel: improve 2d batchbuffer debug output.Eric Anholt2008-07-231-8/+14
| | |
| * | intel: Fix CopyTexSubImage's src tiling arg for the blit.Eric Anholt2008-07-231-1/+1
| | | | | | | | | | | | Didn't hurt 915, but needed for 965.
| * | intel: move renderbuffer mapping to separate functions.Eric Anholt2008-07-233-107/+80
| | | | | | | | | | | | | | | | | | | | | This lets us avoid duplicated code for doing so, including the depthstencil paths that aren't covered by SpanRenderStart/Finish. Those paths were missing the span funcs setup, leading to a null dereference in the fbotexture demo.
| * | intel-gem: Bump driver dateIan Romanick2008-07-181-3/+7
| | | | | | | | | | | | | | | Bump the driver date and insert the string "GEM". When running tests, this make it much easier to know that the right driver is being used.
| * | Remove redundant initalization of MaxTextureUnitsIan Romanick2008-07-161-1/+0
| | |
| * | intel-gem: Disable spantmp sse/mmx functions when tile swizzling.Eric Anholt2008-07-152-3/+17
| | | | | | | | | | | | | | | | | | | | | Those functions rely on being able to treat the GET_PTR returned value as an array indexed by x, but that's not the case for our tiling. Bug #16387
| * | i915: fix build after previous commit.Eric Anholt2008-07-141-1/+1
| | |
| * | drm-gem: Use new GEM ioctls for tiling state, and support new swizzle modes.Eric Anholt2008-07-1118-298/+250
| | |
| * | intel: span rendering requires just a flush before starting, not finish.Eric Anholt2008-07-021-1/+1
| | | | | | | | | | | | The dri_bo_map()s that follow will take care of idling the hardware as needed.
| * | intel-gem: Emit an MI_FLUSH at glFlush() so frontbuffer rendering is flushed.Eric Anholt2008-07-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | We have something similar in the X Server that covers X Server rendering, this is the equivalent here for rendering to the front buffer. If we cared about avoiding this at glFlush time, we could only do this when some actual frontbuffer rendering had occurred. Bug #16392.
| * | intel-gem: Fix y-tile swizzling for our G965 with swizzle_mode=1.Eric Anholt2008-07-021-0/+10
| | | | | | | | | | | | | | | Apparently in Y mode we get bit 6 ^ bit 9. The reflect demo in 'd' mode now displays correctly.