Commit Graph

27970 Commits

Author SHA1 Message Date
Zack Rusin 1d84808dc0 gallivm: fix a crash by making sure we set the has_mask flag correctly 2010-03-08 15:04:04 -05:00
Brian Paul e5923a1240 Merge branch '7.8' 2010-03-08 11:43:20 -07:00
Brian Paul e1762fb870 softpipe: zero-out entire clear_flags array in sp_tile_cache_flush_clear()
Before, we only cleared the flags for the active tiles (the ones inside
the framebuffer bound).  The problem is if we later bound a different,
larger surface to the tile cache we'd have some stale clear-flags still
set (and mistakenly clear some tiles in the new surface).

Fixes fd.o bug 26932.
2010-03-08 11:39:51 -07:00
Brian Paul 80dc54e308 st/mesa: don't detach renderbuffer, surface in st_finish_render_texture()
There's no reason to release the renderbuffer from the framebuffer object
or release the gallium surface in this function (they're reference counted).
In fact, we don't want to do this because we may later use the texture as a
pixel source (ex: glBlitFramebuffer) and need the surface.

Fixes fd.o bug 26923 and is part of the fix for bug 26932.
2010-03-08 11:39:51 -07:00
Alex Deucher df9bf78f88 r600: enable GL_ARB_pixel_buffer_object 2010-03-08 12:00:57 -05:00
Brian Paul fe25bee14f mesa: add additional missing z formats for render to texture
Allow render to texture for X8_Z24 and Z24_X8 formats.
Replace big if/else with switch, etc.
2010-03-08 10:00:29 -07:00
Alex Deucher 9458c2061b radeon/r200/r600: allow src and dst BOs to be placed in GTT during blit 2010-03-08 11:50:01 -05:00
Alex Deucher d7ad1b8b07 radeon/r200/r600: reset bos when validating buffers during blit 2010-03-08 11:49:53 -05:00
Alex Deucher c65235f97e r600: recalculate point size, if point min/max size changes 2010-03-08 11:49:44 -05:00
Alex Deucher d18b302365 r600: no need to flush on context init 2010-03-08 11:49:31 -05:00
Maciej Cencora b3b6bd5da1 r300: don't enable EXT_packed_depth_stencil
R300 hw doesn't support sampling from Z24_S8 or S8_Z24 formats.
2010-03-08 11:49:23 -05:00
Maciej Cencora 29e02c7e72 radeon: no need to emit full state twice after flush 2010-03-08 11:49:16 -05:00
Maciej Cencora 4572ae1925 r300: allow src and dst BOs to be placed in GTT during blit
Fixes some relocation failures
2010-03-08 11:49:09 -05:00
Maciej Cencora 62b3321d7d r300: reset bos when validating buffers during blit 2010-03-08 11:49:01 -05:00
Maciej Cencora 8ccd83ab92 radeon: fallback to software in glCopyTexImage if blit isn't available 2010-03-08 11:48:52 -05:00
Maciej Cencora 2872c1cc32 r300: VAP flush is needed only when vertex program or constants are changed 2010-03-08 11:48:45 -05:00
Maciej Cencora 77ed4d1f5d r300: recalculate point size, if point min/max size changes
Fixes two wine d3d9 unit tests
2010-03-08 11:48:36 -05:00
Maciej Cencora 44d92d4bbe r300: no need to flush on context init 2010-03-08 11:48:28 -05:00
Maciej Cencora b1ab15c633 r300: remove unnecessary code
_tnl_UpdateFixedFunctionProgram is already called in r300_draw.c
2010-03-08 11:48:20 -05:00
Brian Paul 26aa870a0d mesa: add render-to-texture case for MESA_FORMAT_S8_Z24 2010-03-08 09:38:07 -07:00
Brian Paul 614f490ca9 mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer
MESA_FORMAT_Z16 has no stencil bits.
2010-03-08 09:35:28 -07:00
Alex Deucher 39ab5ae30c radeon/r200/r600: allow src and dst BOs to be placed in GTT during blit 2010-03-08 10:13:49 -05:00
Alex Deucher 7959274858 radeon/r200/r600: reset bos when validating buffers during blit 2010-03-08 10:04:02 -05:00
Alex Deucher cbe28cb892 r600: recalculate point size, if point min/max size changes 2010-03-08 10:00:59 -05:00
Alex Deucher 97d40edb07 r600: no need to flush on context init 2010-03-08 09:57:26 -05:00
Keith Whitwell 3ca933623c Merge commit 'origin/gallium-winsys-handle-rebased' 2010-03-08 12:03:46 +00:00
Marek Olšák 9860f652e2 r300g: fix updating the tiling flags for the framebuffer state 2010-03-08 04:43:51 +01:00
Marek Olšák 6abe6145fb r300g: remove unnecessary state emissions and clean up 2010-03-08 04:34:27 +01:00
Chia-I Wu ee6fbf8d2f st/vega: Fix OpenVG demo segfaults.
When the paint is color, paint_bind_samplers binds a dummy sampler
without a texture.  It causes demos requiring a sampler (those use a
mask or an image) to crash.
2010-03-08 11:29:25 +08:00
Francisco Jerez ea027bda8e dri/nouveau: Split big client buffers in the indexed case too. 2010-03-07 22:40:11 +01:00
Francisco Jerez 75f52d1e52 dri/nouveau: Fix nv[12]x color sum. 2010-03-07 22:40:11 +01:00
Andrew Randrianasulu 6a15edfed3 dri/nv04: GL_EXT_secondary_color
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-07 22:40:10 +01:00
Andrew Randrianasulu e64680bc1e dri/nouveau: Trivially add GL_NV_blend_square
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-07 22:40:10 +01:00
Francisco Jerez 5befb6f810 dri/nouveau: Check _ColorDrawBuffers[0] before emitting fb state. 2010-03-07 22:40:09 +01:00
Maciej Cencora ba196a8318 radeon: handle compressed sRGB texture formats 2010-03-07 22:13:44 +01:00
Marek Olšák 6b39abb63a r300g: fix DRM errors 2010-03-07 16:24:17 +01:00
Marek Olšák 57a1395ec3 r300g: disable macrotiling when the texture height is smaller than a macrotile
Otherwise incorrect rendering occurs (no idea why).
2010-03-07 16:24:09 +01:00
Marek Olšák b37d633375 r300g: enable micro- and macrotiling for all textures and renderbuffers 2010-03-07 16:23:42 +01:00
Marek Olšák 6c7fac846e r300g: add ability to tile/detile textures using blit during transfers 2010-03-07 15:39:37 +01:00
Marek Olšák 4012219f1f r300g: move r300_transfer to separate files 2010-03-07 15:39:37 +01:00
Maciej Cencora ccbe3f0314 radeon: move glGetTexImage handlers to seperate file 2010-03-07 12:22:09 +01:00
Maciej Cencora 2b801066a1 radeon: Some possible improvements that I spoted in radeon_tiled_texture branch. 2010-03-07 12:21:30 +01:00
Maciej Cencora d0ca5c3100 radeon: properly calculate rowstride for tiled images 2010-03-07 12:21:30 +01:00
Maciej Cencora 0d3835475f radeon: minor refactoring of mipmap code 2010-03-07 12:21:30 +01:00
Maciej Cencora b078a613be radeon: add texture helper function 2010-03-07 12:21:30 +01:00
Maciej Cencora 8014b5f068 radeon: add some debugging info to sw tiling/untiling functions 2010-03-07 12:21:29 +01:00
Maciej Cencora 5fefca5dba radeon: add software untiling functions 2010-03-07 12:07:45 +01:00
Maciej Cencora 65faa27aa6 radeon: add tile size getter 2010-03-07 12:07:36 +01:00
Maciej Cencora 88a99bb305 radeon: added tiling functions 2010-03-07 12:07:29 +01:00
Maciej Cencora 9c0c6c26de r300: don't enable EXT_packed_depth_stencil
R300 hw doesn't support sampling from Z24_S8 or S8_Z24 formats.
2010-03-07 12:07:06 +01:00