summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* fix some additional program refcounting bugsBrian Paul2008-05-143-9/+6
| | | | cherry-picked from master
* gallium: depth textures have usage depth_stencil instead of render_targetRoland Scheidegger2008-05-093-11/+17
|
* gallium: don't free shader.tokens in get_passthrough_fs()Brian Paul2008-05-081-0/+2
|
* gallium: fix out of tex memory crashesBrian Paul2008-05-082-3/+13
|
* gallium: re-enable call to init_renderbuffer_bits(), remove dead codeBrian Paul2008-05-081-14/+1
|
* gallium: fix render to depth textureBrian Paul2008-05-081-0/+5
|
* gallium: replace pipe_buffer_destroy() call with pipe_buffer_reference(NULL)Brian Paul2008-05-081-4/+5
|
* gallium: remove dead codeBrian Paul2008-05-081-9/+0
|
* gallium: no-op st_Bitmap() if width or height is zeroBrian Paul2008-05-081-0/+3
|
* gallium: clean-up, minor fixBrian Paul2008-05-081-7/+3
|
* gallium: plug in dummy stage->destroy funcBrian Paul2008-05-081-0/+7
|
* mesa: minor fixes in _mesa_free_shader_program_data() and _mesa_link_program()Brian Paul2008-05-071-0/+4
| | | | | | From master: Set shProg->NumShaders = 0 after freeing program's list of shaders. Set _NEW_PROGRAM in _mesa_link_program() to fix a state validation bug.
* gallium: fix some render to texture bugsBrian Paul2008-05-0711-40/+189
| | | | | | | | | | | | | | | Before, we were sometimes rendering into a stale texture because st_finalize_texture() would discard the old texture and create a new one. Moved st_update_framebuffer atom after texture validation so that we can create a new renderbuffer surface if the texture changes. Also, split texture validation into two parts: finalize_textures and update_textures. Do finalize_textures first to avoid getting into the situtation where we're doing a pipe->surface_copy() mid-way through state validation. Some debug code still in place, but disabled...
* Merge commit 'origin/gallium-0.1' into gallium-tex-surfacesKeith Whitwell2008-05-071-24/+19
|\
| * mesa: free shader program data before deleting shader objects.Brian2008-05-061-0/+16
| | | | | | | | | | Picked from master. Fixes mem corruption seen when glean/api2 test exits.
| * gallium: implement full reference counting for vertex/fragment programsBrian2008-05-0611-74/+170
| | | | | | | | | | | | Use _mesa_reference_vert/fragprog() wherever we assign program pointers. Fixes a memory corruption bug found with glean/api2 test. Another memory bug involving shaders yet to be fixed...
| * mesa: comments, whitespaceBrian2008-05-061-24/+19
| |
| * gallium: change calculate_first_last_level() to match gallium-tex-surfaces ↵Brian Paul2008-05-061-1/+1
| | | | | | | | branch
* | mesa: free shader program data before deleting shader objects.Brian Paul2008-05-071-0/+16
| | | | | | | | | | Picked from master. Fixes mem corruption seen when glean/api2 test exits.
* | gallium: implement full reference counting for vertex/fragment programsBrian Paul2008-05-0711-74/+170
| | | | | | | | | | | | | | | | Use _mesa_reference_vert/fragprog() wherever we assign program pointers. Fixes a memory corruption bug found with glean/api2 test. Another memory bug involving shaders yet to be fixed... Picked from gallium-0.1
* | Revert "gallium: move setup of dest_surface in do_copy_texsubimage()"Michel Dänzer2008-05-071-10/+11
| | | | | | | | | | | | | | This reverts commit f7dbd18371f9cb6686b6a97642b3ca5577e83472. Looks like an accidental revert of commit 650c57f19398800dfdcf357b6e9ec7b68bfa34f1.
* | gallium: re-enable temporarily disabled code in do_copy_texsubimage()Brian Paul2008-05-061-1/+1
| |
* | gallium: create drawing surfaces as GPU_READ/WRITE onlyBrian Paul2008-05-066-49/+129
| | | | | | | | | | Create different temporary surfaces for CPU_READ/WRITE when needed (such as for glReadPixels, glAccum, some glCopy/DrawPixels, glCopyTexSubImage, etc).
* | gallium: create renderbuffer surface w/out CPU_READ/WRITE flagsMichal Danzer2008-05-061-2/+0
| |
* | gallium: move setup of dest_surface in do_copy_texsubimage()Michal Danzer2008-05-061-11/+10
| |
* | gallium: sync up texture/sampler changes with masterBrian Paul2008-05-062-12/+14
| |
* | gallium: Make sure to release texture surfaces (at the right time).Michel Dänzer2008-05-062-1/+4
| |
* | gallium: glCopyTexSubImage improvement.Michel Dänzer2008-05-061-10/+11
| | | | | | | | | | Only get a texture surface for attempting an accelerated copy, and mark it for GPU use only.
* | Merge commit 'origin/gallium-0.1' into gallium-tex-surfacesKeith Whitwell2008-05-067-63/+53
|\| | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_atom_sampler.c src/mesa/state_tracker/st_cb_texture.c
| * fix _mesa_ffs for alternative compilersAlan Hourihane2008-05-051-19/+17
| |
| * declare atoms as externAlan Hourihane2008-05-051-14/+14
| |
| * gallium: fix warningsBrian Paul2008-05-031-1/+3
| |
| * gallium: fix sampler->max_lod computationBrian Paul2008-05-031-2/+3
| |
| * gallium: fix computation of sampler->min_lodBrian Paul2008-05-031-1/+1
| | | | | | | | | | The texture BaseLevel is accounted for in texture layout so it doesn't factor in here. May also need to adjust max_lod...
| * gallium: minor code, comments clean-upBrian Paul2008-05-021-26/+16
| |
| * gallium: in st_finalize_texture() check texture dimensionsBrian Paul2008-05-021-1/+4
| | | | | | | | | | | | Check dimensions in addition to target, format, etc. Fixes a bug where we failed to detect a change in texture image sizes and wound up using the old texture data.
| * gallium: Reallocate pipe_texture in st_TexImage if the texture object was used.Michel Dänzer2008-05-023-8/+10
| | | | | | | | Fixes problems with interleaved glTexImage and rendering calls.
| * snprintf -> util_snprintfAlan Hourihane2008-05-021-6/+6
| |
* | gallium: fix some BaseLevel, lastLevel bugsBrian Paul2008-05-032-3/+7
| |
* | gallium: set template.target = PIPE_TEXTURE_2DBrian Paul2008-05-021-0/+1
| |
* | gallium: identify depth-stencil texturesKeith Whitwell2008-05-021-2/+14
| | | | | | | | And don't use the display-target path to allocate them.
* | gallium: Add texture usage flags, special-case allocation of display targetsKeith Whitwell2008-05-027-17/+38
| | | | | | | | | | | | | | | | | | | | | | For many envirionments it's necessary to allocate display targets in a window-system friendly manner. Add facilities so that a driver can tell if a texture is likely to be used to generate a display surface and if use special allocation paths if necessary. Hook up softpipe to call into the winsys->surface_alloc_storage() routine in this case, though we probably want to change that interface slightly also.
* | gallium: remove usage of winsys->surface_alloc_storage from state trackerKeith Whitwell2008-05-021-76/+62
| | | | | | | | | | | | | | | | | | Allocate a texture containing storage instead. Also clean up ACCUM buffer allocation slightly -- drivers will need some changes to texture allocation logic to accomodate the concept of a texture that will only as image storage by the CPU, but it's cleaner than it was.
* | Merge branch 'gallium-0.1' into gallium-tex-surfacesKeith Whitwell2008-05-0221-140/+107
|\|
| * revert mode change back to 644Alan Hourihane2008-05-023-0/+0
| |
| * inline -> INLINEAlan Hourihane2008-05-021-2/+2
| |
| * Some changed for non-C99 compilersAlan Hourihane2008-05-0217-118/+94
| |
| * gallium: Set sampler->min_lod instead of always reallocating pipe_textures.Michel Dänzer2008-05-012-16/+3
| |
| * mesa: squash harmless warningKeith Whitwell2008-05-011-1/+1
| |
| * Fix build problem with MSVCAlan Hourihane2008-05-011-3/+7
| |