Commit graph

34941 commits

Author SHA1 Message Date
Roland Scheidegger
ce65caba84 util: fix obvious util_blitter_copy bugs... 2010-05-19 18:34:01 +02:00
Brian Paul
23808f1b5e nv50: fix typo: s/_/./ 2010-05-19 09:30:35 -06:00
Roland Scheidegger
5be35de0fb util: util_blitter_fill no longer needs to handle overlap 2010-05-19 17:20:26 +02:00
Roland Scheidegger
1adbe2c82d i915g: remove unused flip parameter 2010-05-19 17:14:06 +02:00
Roland Scheidegger
db0ddb7c01 docs: update differences to d3d11 2010-05-18 21:42:09 +02:00
Roland Scheidegger
f4ad68a528 util: fix some leftover util_surface_fill/copy calls 2010-05-18 21:41:15 +02:00
Roland Scheidegger
6f3721a8ec st/mesa: fix wrong argument order 2010-05-18 18:03:37 +02:00
Roland Scheidegger
43234cee40 gallium: implement set_sample_mask() in all drivers
prevents segfault when state trackers try to set default mask.
Other option would be to make this required only for drivers
supporting multisampling, but this seems more clean.
Only dummy implementations (for normal drivers) provided (no driver
supports multisampling yet neither).
2010-05-18 16:20:44 +02:00
Roland Scheidegger
2a15553e43 st/egl: adapt to interface changes 2010-05-17 21:34:30 +02:00
Roland Scheidegger
bf3c8ed481 st/dri: adapt to interface changes 2010-05-17 21:34:03 +02:00
Roland Scheidegger
685bb69416 st/glx: adapt to interface changes 2010-05-17 21:33:53 +02:00
Roland Scheidegger
a127e4709d st/wgl: adapt to interface changes 2010-05-17 21:33:45 +02:00
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