Commit Graph

26033 Commits

Author SHA1 Message Date
Roland Scheidegger 2fa34bf44c gallium: remove PIPE_CAP_S3TC, and add PIPE_CAP_DUAL_SOURCE_BLEND
there's no point in keeping deprecated PIPE_CAPS around since there's no
stable interface (yet).
Reuse the enum for PIPE_CAP_DUAL_SOURCE_BLEND. Drivers advertizing this
will accept the pipe blendfactors with SRC1 in them and be able to do dual
source blending (src color from pixel shader output 0, and blendfactor with
SRC1 will come from output 1, only one render target may be bound when using
any of these blend factors).
2010-01-28 17:11:49 +01:00
Christoph Bumiller a5d67dc011 nv50: supports independent blend enables 2010-01-26 18:33:05 +01:00
Roland Scheidegger 1a9d01dcde gallium: add the new PIPE_CAP blend bits to more drivers
some drivers will complain if they don't know the cap bit
2010-01-26 17:32:57 +01:00
Corbin Simpson 786bd78be4 r300g: Per-MRT blending is not supported. 2010-01-26 07:35:33 -08:00
Roland Scheidegger 9bc80ff174 mesa/st: code cleanups for new blend functionality
minor code changes, style and comment fixes
2010-01-26 15:35:31 +01:00
Roland Scheidegger df4395198c softpipe: enable new blend functionality
works with tests/drawbuffers2
2010-01-25 20:20:52 +01:00
Roland Scheidegger 5fae36147e st/mesa: handle EXT_draw_buffers2 per rendertarget blend enables / colormasks
uses the new gallium per-rt blend functionality
2010-01-25 19:27:05 +01:00
Roland Scheidegger 0d3a6a505d vega: don't enable blending if not necessary
In some places blending was enabled even though it wasn't necessary.
Also remove a (bogus) reenabling of color writes, which wasn't really used.
2010-01-25 16:52:14 +01:00
Roland Scheidegger dbc0e24ab8 xorg: do not enable unnecessary blending for xv 2010-01-25 16:43:33 +01:00
Roland Scheidegger 13b74b585a trace: adapt to blend changes 2010-01-25 16:41:57 +01:00
Roland Scheidegger 6893948d48 svga: adapt to blend changes 2010-01-25 16:39:39 +01:00
Roland Scheidegger 4e6bfa6de1 softpipe: adapt to blend changes 2010-01-25 16:39:16 +01:00
Roland Scheidegger e908abf174 nouveau: adapt drviers to blend changes 2010-01-25 16:38:32 +01:00
Roland Scheidegger d241964e47 r300g: adapt to blend changes 2010-01-25 16:37:51 +01:00
Roland Scheidegger 4e0c825a79 i965g: adapt to blend changes 2010-01-25 16:37:27 +01:00
Roland Scheidegger bc160fc9b2 i915g: adapt to blend changes 2010-01-25 16:37:09 +01:00
Roland Scheidegger 88388b99fb cell: adapt to blend changes 2010-01-25 16:36:37 +01:00
Roland Scheidegger 99e28d4ee3 llvmpipe: adapt to blend changes 2010-01-25 16:35:56 +01:00
Roland Scheidegger 3770769f21 st/python: adapt to blend changes 2010-01-25 16:34:29 +01:00
Roland Scheidegger feefa7a510 vega: adapt to blend changes 2010-01-25 16:33:09 +01:00
Roland Scheidegger 92676b9fe6 xorg: adapt to blend changes 2010-01-25 16:32:18 +01:00
Roland Scheidegger cbb8d35a3a gallium: fix cast for size calc of pipe_blend_state 2010-01-25 16:31:21 +01:00
Roland Scheidegger 629bb3fa32 docs: enhance blend documentation 2010-01-21 20:48:13 +01:00
Roland Scheidegger c6c9d3b091 docs: clean up sampler description 2010-01-21 20:22:24 +01:00
Roland Scheidegger eba1e2a447 gallium: adapt util code to blend changes 2010-01-21 19:56:29 +01:00
Roland Scheidegger 41667a9a3e gallium: new PIPE_CAP bits for the independent blend functionality 2010-01-21 19:45:43 +01:00
Roland Scheidegger 04cb5dfb1e llvmpipe: adapt to per-rendertarget blend changes 2010-01-20 18:27:53 +01:00
Roland Scheidegger bef610f693 gallium: prepare for per-rendertarget blend enables, writemasks, blend funcs
GL 3.0 (EXT_draw_buffers2) and other APIs allow independent blend enables and
write masks per render target, ARB_draw_buffers_blend (and other APIs) also
allow independent blend functions. Things like dithering, logic ops however
are not extended to be per rendertarget, that might be conceptually possible
however it doesn't look like any API wants to expose this.
2010-01-20 18:26:49 +01:00
Alex Deucher 5a99ca490f r200: fix typo in 76cf261832
noticed by Maciej on IRC.
2010-01-20 09:06:49 -05:00
Chia-I Wu c8b694b2c2 st/egl_g3d: Add support for driver probe.
Hook the drv->Probe callback to allow the drivers to probe displays.
The loading of state trackers is delayed to avoid unnecessary loading.
2010-01-20 18:15:30 +08:00
Chia-I Wu 11f4360f2e st/egl_g3d: Add support for probe to native displays.
The functions can be used to check if a display is supported without
creating a struct native_display.  It uses a probe object that can be
shared across drivers.
2010-01-20 18:15:26 +08:00
Chia-I Wu c5766c4ae3 egl: Add a simple cache for driver probe.
In current design, multiple drivers will probe the same display and the
best driver is determined.  The cache can be used by the drivers to
store and share the probed data.
2010-01-20 17:44:12 +08:00
Chia-I Wu cf22fd5e5b egl: Improve driver matching.
Make drv->Probe return a score so that the matching can be done by
finding the driver with the highest score.
2010-01-20 17:44:11 +08:00
Chia-I Wu 925f8113be egl: Rename _EGL_PLATFORM_X to _EGL_PLATFORM_POSIX.
The macro is used to determine if dlfcn.h or dirent.h is available.
POSIX is a better name than X in such case.
2010-01-20 17:44:11 +08:00
Chia-I Wu f0c2871bf4 egl: Remove unused driver and display functions.
Remove _eglPreloadDriver, _eglLookupDriver, and _eglSplitDisplayString.
2010-01-20 17:40:07 +08:00
Chia-I Wu 57929eda3e egl: Use _eglPreloadDrivers.
Replace the use of _eglPreloadDriver by _eglPreloadDrivers.  The latter
supports EGL_DISPLAY which have a better chance to "just work".
2010-01-20 17:40:07 +08:00
Chia-I Wu b3bcd33f7a egl: Add _eglPreloadDrivers.
It can be used to load the user driver specified by EGL_DRIVER, or a set
of drivers specified by EGL_DISPLAY, or the default driver, and in that
order.
2010-01-20 17:40:00 +08:00
Chia-I Wu f291200a4b st/egl_g3d: Do not reuse the pipe transfer in ximage.
A pipe transfer is supposed to be temporary.  It should be created
before X*PutImage and destroyed afterwards.
2010-01-20 13:30:55 +08:00
Alan Coopersmith 917b6d2a4b Remove hardcoded -Wall from Radeon DRI makefiles
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-19 19:05:52 -08:00
Corbin Simpson d4a3f7d3ca r300g: Move GB_AA_CONFIG to its eventual new home. 2010-01-19 18:15:17 -08:00
Corbin Simpson fcbd285e42 r300g: Make invariant state into an atom. 2010-01-19 18:15:17 -08:00
Chia-I Wu 5e8240320a Merge remote branch 'origin/opengl-es-v2' 2010-01-20 10:02:15 +08:00
Brian Paul 1658f80153 util/blit: document params to util_blit_pixels_writemask() 2010-01-19 18:01:02 -07:00
Brian Paul 031f23ac3a mesa: added comment about future FBO formats 2010-01-19 18:01:02 -07:00
Marek Olšák cd232ae22f st/mesa: enable EXT_framebuffer_multisample
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-19 18:01:02 -07:00
Alex Deucher 76cf261832 r100/r200: fix Y coord flipping in accelerated blits 2010-01-19 19:13:26 -05:00
Alex Deucher 1bb6b1d9db r100/r200: fix dst pitch in blit code 2010-01-19 18:52:19 -05:00
Alex Deucher f965345ea5 r200: add missing symlink to radeon_tex_copy.c 2010-01-19 18:48:36 -05:00
Maciej Cencora 1f0709fd8f r100/r200: align to pitch updates in blit interface 2010-01-20 00:09:11 +01:00
Maciej Cencora 2706bc6a88 r200: use common glCopyTex(Sub)Image code 2010-01-19 23:38:35 +01:00