Commit Graph

34729 Commits

Author SHA1 Message Date
Roland Scheidegger c36c3d86b6 st/vega: adapt to interface changes 2010-05-17 21:33:37 +02:00
Roland Scheidegger 48780ec9f9 st/xorg: adapt to interface changes 2010-05-17 21:33:27 +02:00
Roland Scheidegger 8bd87b662f st/python: adapt to interface changes
compile tested only.
Should probably change the python surface_copy/fill functions
also into resource_copy/fill_region functions and adapt the code
using them.
2010-05-17 21:32:41 +02:00
Roland Scheidegger eb2b668b37 svga: adapt to interface changes
might need further cleanup. Using surfaces internally just to be able to use
the existing code might cause unnecessary copies afaict.
2010-05-17 21:30:01 +02:00
Roland Scheidegger 39b4bf71b5 r300g: adapt to interface changes
might need further cleanup. Using surfaces internally for the u_blitter code
seems nonoptimal.
2010-05-17 21:29:17 +02:00
Roland Scheidegger b59b23a51d nouveau: adapt to interface changes
this probably needs further cleanup (just getting a surface for the resource
seems quite nonoptimal and potentially cause unnecessary copies I think)
2010-05-17 21:28:14 +02:00
Roland Scheidegger 433701a721 fo: adapt to interface changes 2010-05-17 21:25:27 +02:00
Roland Scheidegger fd578be828 identity: adapt to interface changes 2010-05-17 21:25:16 +02:00
Roland Scheidegger bd771cda8e trace: adapt to interface changes 2010-05-17 21:25:07 +02:00
Roland Scheidegger a02ddd48c5 i965g: adapt to interface changes 2010-05-17 21:24:50 +02:00
Roland Scheidegger bccf31bf5f i915g: adapt to interface changes 2010-05-17 21:24:04 +02:00
Roland Scheidegger 6c32670706 softpipe: adapt to interface changes 2010-05-17 21:23:46 +02:00
Roland Scheidegger e121a73d62 llvmpipe: adapt to interface changes 2010-05-17 21:23:31 +02:00
Roland Scheidegger 57a0171225 cell: adapt to interface changes
not even compile tested but fairly trivial
2010-05-17 21:22:23 +02:00
Roland Scheidegger 127328bfad mesa/st: adapt to interface changes
adapt to blit changes, and also handle a bit more msaa state in theory
(incomplete, doesn't handle resolves in any way for now).
2010-05-17 21:19:03 +02:00
Roland Scheidegger 815b75705f gallium/util: adapt util code to interface changes
The util blit functions change their interface (apart from some rename) too
(in particular util_blit_pixels now also takes a pipe_resource as the src blit
argument instead of a surface, as it might just call resource_copy_region).
Maybe the blit util code might need a bit more cleanup, it still doesn't feel
very clean. In particular it seems that util_blit_pixels_tex should probably
disappear, and I think it would be great if the code called by drivers for
blitting (u_blitter.c, which isn't really touched by this change) could somehow
be merged with the u_blit code.
2010-05-17 21:15:20 +02:00
Roland Scheidegger 379db6a36b gallium: clean up resource_copy_region function
Previously, surface_copy was said to allow overlapping blits, and it was
"optional". However, some state trackers actually assumed it is always present,
and quite some code (like in u_blit) assumed overlapping isn't allowed.
Hence, resource_copy_region (and in the same spirit, resource_fill_region) is
now mandatory, but overlapping blits are no longer allowed. A driver can plug
in the cpu fallback util_resource_copy_region if it does not want to provide its
own implementation, though this is not optimal.
2010-05-17 21:02:24 +02:00
Roland Scheidegger 6272d7632a gallium: another interface change for multisampling
due to popular request, use nr_samples parameter in is_format_supported()
instead of new is_msaa_supported() query.
This makes it easily possible to query if a format with a given sample count
is also supported not only as render target, but for sampler views (note that
texture sampling from multisampled resources isn't supported yet).
It is not quite how dx10 format msaa queries work, but we might need to revisit
format queries completely in the future anyway.
2010-05-17 20:52:08 +02:00
Brian Paul e5ee8b4fae llvmpipe: fix front/back tri culling mix-up 2010-05-17 11:43:43 -06:00
Keith Whitwell 5ebd2fa7da draw: fix front/back error in unfilled pipeline stage 2010-05-14 23:47:05 +01:00
Keith Whitwell 7813d12e05 draw: fix typo checking for unfilled polygons 2010-05-14 23:46:43 +01:00
Keith Whitwell 4ff1274e23 softpipe: restore culling code 2010-05-14 20:36:08 +01:00
Keith Whitwell 9c264642c3 gallium: more work on ccw flag removal
The linux-debug target builds...
2010-05-14 19:20:25 +01:00
Keith Whitwell 0bd1cbcd0d gallium: convert rasterizer state to use gl-style front/back concepts
Use front/back instead of cw/ccw throughout.
Also, use offset_point/line/fill instead of offset_cw/ccw.

Brings gallium representation of this state into line with its main
user, and also what turns out to be the most common hardware
representation.

This fixes a long-standing bias in the interface towards the
architecture of the software rasterizer.
2010-05-14 13:04:42 +01:00
Keith Whitwell fc4d1b9ba9 util: fix copy_rect stride in default transfer_inline_write 2010-05-14 12:19:28 +01:00
Kristian Høgsberg 52c554a79d egl: Implement EGL_NOK_swap_region
This extension adds a new function which provides an alternative to
eglSwapBuffers. eglSwapBuffersRegionNOK accepts two new parameters in
addition to those in eglSwapBuffers. The new parameters consist of a
pointer to a list of 4-integer blocks defining rectangles (x, y,
width, height) and an integer specifying the number of rectangles in
the list.
2010-05-13 20:30:45 -04:00
Marek Olšák 13ef7a4be8 r300g: fix for piglit/fp-indirections2 2010-05-14 00:27:52 +02:00
Brian Paul f667526016 rtasm: fix void * / func * casting warnings 2010-05-13 14:15:44 -06:00
Brian Paul 56da0cb7ac draw: silence casting warnings 2010-05-13 14:15:44 -06:00
Brian Paul 415c40735d gallivm: silence uninitialized var warning 2010-05-13 14:15:44 -06:00
Brian Paul d9096926f8 llvmpipe: silence casting warnings 2010-05-13 14:15:44 -06:00
Brian Paul 17542c1e3e gallivm: silence casting warning 2010-05-13 14:15:44 -06:00
Brian Paul c91d9cb563 gallivm: silence uninitialized var warning 2010-05-13 14:15:44 -06:00
Brian Paul 77ee438e61 llvmpipe: silence uninitialized var warnings 2010-05-13 14:15:44 -06:00
Brian Paul 966d28cb2e llvmpipe: silence cast warnings in test programs 2010-05-13 14:15:44 -06:00
Brian Paul 45d6289fab gallivm: added lp_dump_llvmtype() debug helper 2010-05-13 14:15:44 -06:00
Brian Paul adc6e73538 llvmpipe: additional comments 2010-05-13 14:15:44 -06:00
Brian Paul 5b5ce16da5 gallivm: rename a var 2010-05-13 14:15:44 -06:00
Kristian Høgsberg 681fd73f1e egl: Allow a prioritized list of default drivers
When there is no user driver or any matching display drivers we fall
back to the default driver.  This patch lets us have a list of default
drivers instead of just one.  The drivers are loaded in turn and we
attempt to initialize the display.  If it fails we unload the driver
and move on to the next one.

Compared to the display driver mechanism, this avoids loading a number
of drivers and then only using one.  Also, we call Initialize to see
if the driver will work instead of relying on Probe.  To know for sure
that a driver will work, Probe really have to do a full Initialize, so
we will just use Initialize directly.
2010-05-13 16:14:07 -04:00
Kristian Høgsberg 7413d9ae9f egl_dri2: Downgrade initialization errors to warnings
Don't want to shutdown everything if egl_dri2 fails to initialize.
2010-05-13 16:14:07 -04:00
José Fonseca f19b202556 util: Fix ptr -> int conversion. 2010-05-13 21:14:39 +01:00
José Fonseca c5c0e0172f Conditionally revert "gallivm: Use a more compact approach for lp_build_broadcast_scalar()."
This reverts commit a09e46c724.
2010-05-13 21:14:39 +01:00
Eric Anholt c67d9d84f5 i965: Reduce a single GL_QUADS to GL_TRIANGLE_FAN.
This is similar to the GL_QUAD_STRIP -> TRIANGLE_STRIP optimization --
the GS usage to split the quads into tris is a huge bottleneck, so a
quick check improves glean blendFunc time massively (width * height of
the window of single-pixel GL_QUADS, many many times).  This may also
end up helping with cairo performance, which sometimes ends up drawing
a single quad.
2010-05-13 13:02:09 -07:00
Eric Anholt 61aa9c86c2 intel: Don't update window system renderbuffers on TexImage.
While sometimes rendering occurs in the form of blits for TexImage, it
doesn't interact with the window system renderbuffers, so skip it.
2010-05-13 13:02:09 -07:00
Eric Anholt 165694ad65 mesa: Remove no-op wrappers around trig functions. 2010-05-13 13:02:09 -07:00
Eric Anholt fef303bc94 mesa: Remove _mesa_pow(), which is always just pow(). 2010-05-13 13:02:09 -07:00
Marek Olšák 60a0535101 r300g: fix texture transfers
The regression has first shown up after this state tracker change:
b0427bedde.

FDO bug #28082.
2010-05-13 21:11:20 +02:00
Alan Hourihane 8b3bf9c299 mesa: silence compiler warning 2010-05-13 18:49:02 +01:00
José Fonseca f379e7df4b llvmpipe: Update instructions for MSVC builds. 2010-05-13 16:18:05 +01:00
Kristian Høgsberg 021a68b7e8 egl: Drop broken _EGL_PLATFORM_NO_OS code
It would do strlen(library_suffix()) in _eglLoaderFile(), with
library_suffix() returning NULL.  So obviuosly not used or tested.
2010-05-13 08:59:56 -04:00