Commit graph

32413 commits

Author SHA1 Message Date
Keith Whitwell
99f11d0e18 gallium: introduce target directory
Currently there are still at least two functions bundled up inside the
winsys concept:

a) that of a backend resource manager, sometimes capable of performing
   present() operations,

b) the initialization code/routine for the whole driver stack.

The inclusion of (b) makes it difficult to share implementations of
(a) between different drivers.  For instance, a clean xlib winsys
could be of use for software-rasterized VG, GLES, EGL, etc, stacks.
But that is only true as long as there is no dependency from the
winsys to higher level code, as would be the case when we include (b)
in this component.

This change creates a new gallium/targets subtree, specifically for
implementing the glue needed to build individual driver stacks, and
moves that code out of a single example winsys, namely xlib.

Other drivers continue to build unchanged, but hopefully can migrate
to this structure over time.
2010-03-08 19:11:35 +00: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
Keith Whitwell
90b3baf9b3 ws/xlib: remove dead files 2010-03-08 16:48:45 +00: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
Keith Whitwell
4350e025cf ws/xlib: fixup softpipe build 2010-03-08 16:48:39 +00: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
Keith Whitwell
1675d05f91 winsys/xlib: remove dependency on glx/x11 state tracker
Introduce xlib_drawable struct, pass this down to winsys instead of
having it use the internal data structures from glx/x11
2010-03-08 16:35:49 +00:00
Keith Whitwell
7f9a3959b0 ws/xlib: remove redundant declarations 2010-03-08 16:35:43 +00:00
Keith Whitwell
9b7c332d5f winsys/xlib: sketch of cell support 2010-03-08 16:35:37 +00: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