Commit graph

7137 commits

Author SHA1 Message Date
Vinson Lee
71e3abc014 st/xlib: Add assert to check for null pointer dereference. 2010-02-20 16:23:44 -08:00
Vinson Lee
5fd84e0246 tgsi: ifdef out unused function micro_sqrt. 2010-02-20 00:56:32 -08:00
Marek Olšák
f0c50345d1 r300g: fix rendering into the L8 and A8 texture formats
RB3D_COLORPITCH.COLORFORMAT.I8 stores the C2 component.
2010-02-19 20:02:41 +01:00
Michal Krol
f814a497f7 tgsi: Make more exec opcodes look pretty. 2010-02-19 19:02:35 +01:00
Michal Krol
f1f7006d1f tgsi: Change prototypes of micro opcodes to explicitly indicates number of args. 2010-02-19 19:02:31 +01:00
Michal Krol
d68f024b7d tgsi: Rewrite exec implementations of NRM and NRM4. 2010-02-19 19:02:26 +01:00
Kristian Høgsberg
298be2b028 Replace the _mesa_*printf() wrappers with the plain libc versions 2010-02-19 12:32:24 -05:00
Kristian Høgsberg
32f2fd1c5d Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versions 2010-02-19 12:03:01 -05:00
Brian Paul
2240ba10f3 mesa: replace old MEMSET macro with memset 2010-02-19 08:12:31 -07:00
Brian Paul
e197de56cd mesa: replace old MEMCPY macro with memcpy 2010-02-19 08:09:01 -07:00
Kenneth Graunke
c7ac486261 Remove _mesa_memcpy in favor of plain memcpy.
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-19 09:18:36 -05:00
Kenneth Graunke
60b0cae412 Remove _mesa_atoi in favor of plain atoi. 2010-02-19 09:18:13 -05:00
Kenneth Graunke
8d73aa6d1a Remove _mesa_strcmp in favor of plain strcmp. 2010-02-19 07:53:04 -05:00
Kenneth Graunke
f69d1d1438 Remove _mesa_strncpy in favor of plain strncpy. 2010-02-19 07:50:40 -05:00
Corbin Simpson
71214c640c Revert "r300g: remove L8_UNORM from colorbuffer formats"
This reverts commit fc427d2343.

At least xorg uses this, and just because something is not used in
OpenGL is *never* a valid reason to remove functionality from Gallium.
If something lacks a test, go add a test, don't remove features.
2010-02-19 03:12:14 -08:00
Marek Olšák
fc427d2343 r300g: remove L8_UNORM from colorbuffer formats
Not renderable in OpenGL anyway.
2010-02-19 04:24:01 +01:00
Brian Paul
ae7a7026c7 softpipe: fix depth testing problems
The optimized Z-test functions assumed that the array of incoming quads
are adjacent, but that's not always true.  The fragment shader can cull
intermediate quads, for example.

Now these Z-test functions can cope with non-adjacent quads.  A little bit
of performance is probably lost, but it's probably not worth worring about.

This fixes broken glBitmap() Z testing, among other things.

(cherry picked from commit d437d905e6)
2010-02-18 17:00:10 -07:00
Brian Paul
00d1d8aad3 softpipe: comments and whitespace fixes 2010-02-18 16:58:38 -07:00
Brian Paul
46b5ae7169 softpipe: const qualifiers, comments 2010-02-18 16:58:38 -07:00
Jakob Bornecrantz
2ecdc2ecec identity: Propagate api->name and api->driver_name up 2010-02-18 23:17:48 +00:00
Jakob Bornecrantz
288e4b15e0 trace: Propagate api->name up 2010-02-18 23:17:48 +00:00
Jakob Bornecrantz
1ee905bc47 pipebuffer: Include fenced buffer manager in build 2010-02-18 23:17:47 +00:00
Francisco Jerez
196214bf2b Revert "st/mesa: Make the frontbuffer visible on st_flush(PIPE_FLUSH_FRAME)."
We probably don't want to propagate this condition to the pipe driver,
this reverts commit f455ca6490 and the
dri_update_buffer flush altogether until an agreement is reached.
2010-02-18 14:04:14 +01:00
Vinson Lee
9f5640d10b util: Fix typo of debug_dump_float_rgba_bmp. 2010-02-17 23:10:13 -08:00
Vinson Lee
3f7af84405 svga: Silence uninitialized variable warnings. 2010-02-17 21:39:24 -08:00
Marek Olšák
ca0e88ce92 r300g: add support for all missing non-FP sampler formats
The idea is to directly parse the format description in
r300_translate_texformat and return ~0 if the format is unsupported.
2010-02-18 06:37:43 +01:00
Chia-I Wu
9a939adf7d winsys/drm: Do not use --whole-archive in Makefile.egl.
--whole-archive is not portable.  Have the drivers reference _eglMain as
a poor man's --whole-archive.
2010-02-18 13:07:01 +08:00
Francisco Jerez
52e3f0949d st/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation. 2010-02-17 23:15:48 +01:00
Keith Whitwell
0c938143db llvmpipe: use ffs technique for full tiles also
Need to compute two masks here for full and partial 16x16 blocks.
Gives a further good improvement for isosurf particularly:

isosurf  97 -> 108
gears   597 -> 611
2010-02-17 12:12:41 +00:00
Keith Whitwell
31c816731e llvmpipe: rework do_block_16 to use bitmasks and ffs
Some nice speedups:
   gears:  547 -> 597
   isosurf: 83 -> 98

Others like gloss unchanged.  Could do further work in this direction.
2010-02-17 11:12:04 +00:00
Francisco Jerez
f7aea808a4 nv40: Fix incorrect so_new() numbering. 2010-02-16 18:37:43 +01:00
Francisco Jerez
8bd62dbd7c nv40: Implement PIPE_CAP_MAX_COMBINED_SAMPLERS. 2010-02-16 18:36:47 +01:00
Francisco Jerez
f845e4ff1b st/dri2: Use event-driven buffer validation. 2010-02-16 10:38:50 -05:00
Ben Skeggs
828f545274 nv50: use hw idx buffers where we can 2010-02-16 15:57:59 +10:00
Ben Skeggs
bd3829b5f5 nouveau: fix for latest libdrm 2010-02-16 10:21:05 +10:00
José Fonseca
33cf477c37 wgl: Be lenient when sharing contexts.
My first reading of MS docs was wrong. It says:

  All rendering contexts of a shared display list must use an identical
  pixel format. Otherwise the results depend on the implementation of
  OpenGL used.

That is, it is OK to share contexts with different pixel formats.

Adobe Premiere Pro tries to do that: share lists between a rgbx8 and a
rgba8 pixel format.
2010-02-15 21:48:13 +00:00
Vinson Lee
6536cdf183 draw: Add assert to check input of memcpy. 2010-02-14 22:58:26 -08:00
Marek Olšák
d3d3345cb8 r300g: fix the size of constant buffers
4 more piglit tests pass, sweet.
2010-02-15 04:03:12 +01:00
José Fonseca
e918519fe9 python: Reconstruct blend state objects from binary blobs. 2010-02-15 00:22:59 +00:00
José Fonseca
dcdf94c87c trace: Dump blend state as a binary blob.
Gallium interfaces are too fluid -- XML or not is just too much work
trying to accommodate for differences in traces.

SWIG generated bindings are also full of quirks, making unmarshalling
the XML from too hard.

Finally, this is the first step for faster tracing.
2010-02-15 00:22:29 +00:00
José Fonseca
1fc94ab3df trace: Fix constant buffer unwrapping.
Pointer unwrapping should happen before dump the pointer, so that
the real pipe driver pointers are shown, instead of the trace driver's.
2010-02-15 00:19:22 +00:00
José Fonseca
d70c769075 util: Avoid dumping masked state. Other minor improvements. 2010-02-14 23:54:22 +00:00
José Fonseca
270279ac99 os: A stream for debug logging.
Just a wrapper around os_log_message. Although it would probably make
more sense to be the other way around.

Also some comment fixes.
2010-02-14 23:53:42 +00:00
José Fonseca
d422310498 trace: No need to dump reference counts. 2010-02-14 23:25:34 +00:00
José Fonseca
c2b0484e58 python: Pretty-printing of blend state. 2010-02-14 23:25:34 +00:00
José Fonseca
165b824343 util: Helper functions to dump all state objects. 2010-02-14 23:25:34 +00:00
José Fonseca
64606231b8 os: Add a growable string stream. 2010-02-14 23:25:34 +00:00
José Fonseca
78200989d3 os: Complement/improve stream inline helpers. 2010-02-14 23:25:34 +00:00
José Fonseca
33682e5510 os: Fix bad calloc. 2010-02-14 23:25:33 +00:00
José Fonseca
dbc7b3da3e trace: Update for os_stream changes. 2010-02-14 23:25:33 +00:00