summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2009-09-04i965: Don't emit bad packets when no VBs are referenced.Eric Anholt
It appears that sometimes Mesa (and I suppose a VS could as well) emits a program which references no vertex data, and thus we end up with nr_enabled == 0 even though some VBs are enabled. We'd end up emitting VB/VE packet headers of 0xffffffff in that case, leading to GPU hangs. Bug #22945 (wine with an uncompiled VS) (cherry picked from commit d1fbfd0f962347e4153db3852292d44de5aea863)
2009-09-04i965: Calculate enabled[] and nr_enabled once and re-use the values.Eric Anholt
The code duplication bothered me. (cherry picked from commit 9b9cb30d128fc5f1ba77287696ecd508e640efde)
2009-09-04i965: Set the max index buffer address correctly according to the docs.Eric Anholt
It's the last addressable byte, not the byte after the end of the buffer. (cherry picked from commit b72dea5441e8e9226dabf1826fa3bc129c7bc281)
2009-09-04i965: rename var: s/tmp/vs_inputs/Brian Paul
(cherry picked from commit 840c09fc71542fdfc71edd2a2802925d467567bb)
2009-09-04r600: fix Elts handlingAlex Deucher
Patch from taiu on IRC. fixes bug 23585
2009-09-04ARB prog: replace 'unsigned' with 'gl_state_index'Brian Paul
Fixes compilation warnings with MSVC.
2009-09-04ARB prog: rename POINT, SIZE to POINT_TOK, SIZE_TOKBrian Paul
Fixes symbol collisions with typedefs in Microsoft headers. Perhaps we should prefix/suffix all the lexer tokens to avoid this.
2009-09-03st/mesa: silence uninitialized var warningsBrian Paul
2009-09-03st/mesa: fix glCopyPixels(GL_STENCIL_INDEX) inverted positionBrian Paul
If the renderbuffer orientation is Y=0=TOP we need to invert the dstY position.
2009-09-03st/mesa: Do GL_RGBA->GL_RGB texsubimage on hardwareKeith Whitwell
State tracker currently backs GL_RGB textures with RGBA almost always. This means we need to maintain A==1 in these textures to give correct GL_RGB sampling results. This change offloads the RGBA->RGB copy to hardware using the new writemask version of u_blit_pixels. More src/dstLogical/dstActual triples could be shifted to hardware by this technique in future patches.
2009-09-03r600: rework cb/db setupAlex Deucher
Setup the regs when we emit rather than during state setup. In certain cases a proper CB target was never emitted. This fixes bug 23658.
2009-09-03st/mesa: silence uninitialized var warningsBrian Paul
2009-09-03st/mesa: fix glCopyPixels(GL_STENCIL_INDEX) inverted positionBrian Paul
If the renderbuffer orientation is Y=0=TOP we need to invert the dstY position.
2009-09-03r600: make sure the active vertex shader bo is re-added to persistent list.Alex Deucher
2009-09-03glapi: fix incorrect/missing return types for glFenceSync(), glClientWaitSync()Brian Paul
2009-09-03mesa: rename gl_sync_object::Status to StatusFlagBrian Paul
There's a symbol collision with X11/Xlib.h #define Status int in the Mesa xlib code. This seems the simpliest way to work around this.
2009-09-03Add ARB_sync to the xorg sw dri driver.Eric Anholt
2009-09-03savage: Fix driver build post-ARB_sync.Eric Anholt
Like s3v, clean up absurd use of Xlib in the driver, avoiding namespace pollution.
2009-09-03s3v: Fix driver build for ARB_sync.Eric Anholt
This driver was including Xlibint.h to get the CARD32 typedef to use for 32-bit unsigned integers, which #defined Status to something. CARD32 isn't actually a 32-bit unsigned integer, so replacing with uint32_t usage should fix bugs on 64-bit along with the build.
2009-09-03intel: Add support for ARB_sync.Eric Anholt
We currently weasel out of supporting the timeout parameter, but otherwise this extension looks ready, and should make the common case happy.
2009-09-03ARB sync / swrast: Use GL_ARB_sync_functions instead of GL_ARB_sync. Oops.Ian Romanick
2009-09-03Don't dereference function pointers in calls.Ian Romanick
I'm apparently alone in prefering this calling convention, so I'll be a team player. :p Based on review comments by Brian Paul and Eric Anholt.
2009-09-03Add syncobj.c to SConscriptIan Romanick
2009-09-03Whitespace and include file clean-up.Ian Romanick
Based on review comments by Brian Paul.
2009-09-03Use MIN2 instead of open-coded versionIan Romanick
Based on review comments by Brian Paul.
2009-09-03ARB sync: Fix delete behavior and context destruction behaviorIan Romanick
I believe this resolves the outstanding issues WRT sync object deletetion. I have also added a large comment at the top of syncobj.c describing the expected memory management behavior. I'm still a little uncertain about the locking on ctx->Shared.
2009-09-03Add dummy list node type 'struct simple_node'Ian Romanick
2009-09-03ARB sync: Add support for GL_ARB_sync to swrastIan Romanick
This isn't quite right yet. The delete behavior and the context clean-up needs some work.
2009-09-03Eliminate trailing whitespace in extension_helper.cIan Romanick
2009-09-03ARB sync: Regenerate files from previous commitIan Romanick
2009-09-03ARB sync: Add base infrastructure for GL_ARB_syncIan Romanick
2009-09-03ARB sync: Add infrastructure for glGetInteger64vIan Romanick
2009-09-03mesa: fix typos in separable filter functionsBrian Paul
2009-09-03mesa: compute tex env program key size based on nr_enabled_unitsBrian Paul
When no textures are enabled, the key size is 4 bytes. If unit[0] is enabled, the key size is 16 bytes. Inspired by a patch from Chris Wilson.
2009-09-03swrast: wrap comment to 80 columns, remove dead codeBrian Paul
2009-09-03mesa: use new combined PBO validate/map helpers in convolution/filter funcsBrian Paul
2009-09-03mesa: use new combined PBO validate/map helpersBrian Paul
2009-09-03mesa: combined PBO validate/map helpersBrian Paul
2009-09-03mesa: use new _mesa_map_pbo_source/dest() functions in more placesBrian Paul
This trims down the code a bit. The next step would be to combine the validate and map operations into one helper...
2009-09-03mesa: consolidate PBO map/unmap helpersBrian Paul
Instead of _mesa_map_readpix_pbo() use _mesa_map_pbo_source(). Instead of _mesa_map_drawpix_pbo() and _mesa_map_bitmap_pbo() use _mesa_map_pbo_dest().
2009-09-03intel: helper to debug bufmgr (disabled)Brian Paul
2009-09-03mesa: change ctx->Driver.BufferData() to return GLboolean for success/failureBrian Paul
Return GL_FALSE if we failed to allocate the buffer. Then raise GL_OUT_OF_MEMORY in core Mesa.
2009-09-03r600: visual depth has no meaning here.Dave Airlie
fbos get angry when this happens.
2009-09-03r600: make sure the active shader bo is re-added to persistent list.Dave Airlie
2009-09-03radeon: pass internal format into the miptree.Dave Airlie
We need to figure out if the compression format changes. without this texcmp segfaults if you change format enough times.
2009-09-03radeon/dri2: add gl20 bits for r300/r600 just like dri1 doesDave Airlie
2009-09-02Revert "i965: Use VBOs in the VBO module on 965, now that we have ↵Eric Anholt
ARB_map_buffer_range." This reverts commit 00413d87426f14df47d90ba3c995e1889e9f88ca. Even with fixes, using ARB_map_buffer_range in the VBO module isn't showing up as a significant win, and some cases apparently regressed. Bug #23624.
2009-09-02intel: Add support for FlushMappedBufferRange for ARB_map_buffer_range.Eric Anholt
This should help for the usage by the VBO module, where we would upload the whole remaining chunk of the buffer for a series of range maps that should cover just a segment of it.
2009-09-02intel: Sync a synchronized READ_BIT map buffer range with GL drawing to it.Eric Anholt
It's probably uncommon, but would obviously have gone wrong.
2009-09-02intel: Move MapBufferRange mesa state setting up to cover the 915 case.Eric Anholt