Commit graph

34528 commits

Author SHA1 Message Date
Keith Whitwell
ef9b4d20d7 Merge branch 'gallium-front-ccw' 2010-05-21 15:41:06 +01:00
Keith Whitwell
0ff2373131 docs: update rasterizer for ccw changes
Also rearrange some of the fields into point/line/polygon categories.
2010-05-21 15:40:36 +01:00
Vinson Lee
0293b1abf5 scons: Remove debug print statement.
Fixes Python IndexError exception with default SCons build.
2010-05-20 21:03:03 -07:00
Eric Anholt
6f77b751b6 Make TLS EGL dri2 driver search path behavior match TLS GLX dri2 behavior. 2010-05-20 14:44:43 -07:00
Eric Anholt
111dce90c1 Fix a substitution in glesv1_cm.pc 2010-05-20 13:57:10 -07:00
Eric Anholt
f716063ad1 i965: remove disabled code for cycling through MRF registers in clipping.
The idea would be that you could have multiple send messages going on
if nothing depended on the previous message's results and you used a
different send message.  The problem is that the later send requires
the VUE handle returned by the first send's allocate anyway.
2010-05-20 13:42:27 -07:00
Xavier Chantry
f2b80e5679 nv50: fixed other void pointer arithmetic errors 2010-05-20 19:47:12 +02:00
Xavier Chantry
828053726b nv50: fix too long shader uploads by splitting them 2010-05-20 19:47:09 +02:00
Christoph Bumiller
9886293eb8 nv50: fill in shader limits 2010-05-20 19:47:01 +02:00
Brian Paul
6ca6189e09 scons: add comments and whitespace 2010-05-20 10:27:12 -06:00
Brian Paul
5c682485b8 scons: fix llvm detection
The test for env['platform'] caused an exception since 'env' is not
defined at that point.  Instead, determine the target platform by
scanning sys.argv[].
2010-05-20 10:27:12 -06:00
Brian Paul
846b2fccc2 gallivm: rename a var: s/val/array_size/ 2010-05-20 10:27:12 -06:00
Brian Paul
3b7914c364 gallivm: fix spelling in comment 2010-05-20 10:27:12 -06:00
Brian Paul
9226d427c3 gallivm: handle pointer types in lp_dump_llvmtype() 2010-05-20 10:27:11 -06:00
Brian Paul
d574ffbb4d llvmpipe: more tweaks to dump_fs_variant_key() 2010-05-20 10:27:11 -06:00
Brian Paul
b2119e4b2f gallium: fix/update tex target dumping 2010-05-20 10:27:11 -06:00
Brian Paul
75189ef960 llvmpipe: use util_dump_logicop() 2010-05-20 10:27:11 -06:00
Brian Paul
df61404dae gallium: added util_dump_logicop() 2010-05-20 10:27:11 -06:00
Brian Paul
c2a036d4ef llvmpipe: put variant print/debug code into separate function 2010-05-20 10:27:11 -06:00
Kristian Høgsberg
e67c338b41 intel: Throttle after doing copyregion/swapbuffers round trip
Before we would throttle in the flush callback prior to round-tripping
to the server to do copyregion or swapbuffer.  Now, instead just note
that we need to throttle and do it in intel_prepare_render(), which
will be called after receiving the response from the server but before
we start rendering the next frame.  Even if the server also throttles
us in swapbuffer, this just makes the throttling a no-op when we hit
intel_prepare_render().  With that we can drop the
using_dri2_swapbuffers hack and just always throttle.
2010-05-20 11:39:28 -04:00
Vinson Lee
f490525685 graw-null: Remove unnecessary header. 2010-05-20 07:36:53 -07: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