Commit Graph

16118 Commits

Author SHA1 Message Date
José Fonseca fa6ee2c2bb scons: Allow to request the winddk toolchain. 2008-12-12 09:47:20 +09:00
Michal Krol 5c845b9115 softpipe: Add missing header include. 2008-12-11 13:55:55 +01:00
Michal Krol 401a18a0c6 draw: Silencium compiler warnings on Windows. 2008-12-11 13:54:05 +01:00
Brian Paul d0bc5293d6 gallium: added draw_set_mrd() function to fix polygon offset
The Minimum Resolvable Depth factor depends on the driver and can't just
be computed from the number of Z buffer bits.
Glean's polygon offset test now passes with softpipe.
Still need to determine the MRD factor for other gallium drivers, if they use
the draw module's polygon offset stage...
2008-12-10 18:06:44 -07:00
Brian Paul 8137da952b gallium: only mark back color buffer surfaces as undefined after swapbuffers
Marking all surfaces as undefined was wrong and cause some glean failures
because glReadPixels was used after SwapBuffers.
2008-12-10 18:06:38 -07:00
Brian Paul 99b862cd77 gallium: restore default_depth_bits() call in xlib winsys
This was accidentally disabled in a long-ago commit.
2008-12-10 18:06:30 -07:00
Keith Whitwell e1645313be mesa: more trivial tests 2008-12-10 12:53:17 +00:00
Keith Whitwell 50beb86ce3 util: new funcs for triming/validating primitives 2008-12-10 12:52:07 +00:00
Keith Whitwell 7519107a97 draw: add const qualifiers 2008-12-10 12:52:06 +00:00
José Fonseca 51d9642f74 python/retrace: Dump indices too. 2008-12-09 19:37:25 +09:00
José Fonseca 2ce2a40a73 gallium: Abort by default on windows user space. 2008-12-09 19:35:52 +09:00
José Fonseca d26a43f6c6 python/retrace: Dump vertex buffer contents. 2008-12-08 17:26:02 +09:00
José Fonseca 129c6ed678 scons: Target Windows XP on userspace. 2008-12-01 11:53:26 -08:00
Michal Krol 158a5f75d8 tgsi: Reenable OPCODE_ARR. 2008-11-26 22:29:49 +01:00
Michal Krol 527e76a7ec tgsi: Fix build. 2008-11-26 17:20:07 +01:00
Michal Krol 972922b1bf tgsi: Implement OPCODE_ROUND for SSE2 backend. 2008-11-26 17:15:36 +01:00
Michal Krol 1347439a87 tgsi: Implement OPCODE_SSG/SGN. 2008-11-26 17:11:03 +01:00
Brian Paul 1250526e30 gallium: disable TGSI_OPCODE_ARR case until emit_rnd() is redone. 2008-11-26 07:41:19 -07:00
Brian Paul 6e96bd70e5 Revert "tgsi: Implement OPCODE_ROUND for SSE2 backend."
This reverts commit 685fd2c035.

Does not compile since emit_rnd() is trying to pass 4 params to
emit_func_call_dst() which takes 3 params.
2008-11-26 07:38:31 -07:00
Brian Paul 277089b81a gallium: fix glBitmap color bug
By time we get around to rendering the cached bitmap, the current color may
have changed.  Need to make sure we load the constant slot with the cached
color.
2008-11-26 07:08:19 -07:00
Brian Paul 281055987a gallium: replace 2 with PIPE_SHADER_TYPES 2008-11-26 07:08:19 -07:00
Michal Krol eee3d21604 tgsi: Implement OPCODE_ARR. 2008-11-26 21:47:09 +09:00
Michal Krol 685fd2c035 tgsi: Implement OPCODE_ROUND for SSE2 backend. 2008-11-26 21:47:00 +09:00
José Fonseca 55839ae064 pipebuffer: Fix buffer overflow. 2008-11-25 15:49:23 +09:00
Brian Paul f8870af44b gallium: fix inverted raster pos when drawing into FBO 2008-11-24 18:37:36 -07:00
José Fonseca 17849eafaa pipebuffer: Ondemand buffer manager.
A variation of malloc buffers which get transferred to real graphics memory
when there is an attempt to validate them.
2008-11-24 23:17:49 +09:00
José Fonseca a6d866f72c pipebuffer: Implement proper buffer validation. 2008-11-24 13:59:06 +09:00
José Fonseca d600c805c0 gallium: Define convenience shortcuts for CPU/GPU READ/WRITE flag combinations. 2008-11-24 13:45:19 +09:00
José Fonseca 52e9c9770a mesa: Don't call fence_finish with a null fence. 2008-11-24 13:44:30 +09:00
Michal Krol 79bfe372f2 scons: Fix toolchain selection. 2008-11-20 23:01:53 +09:00
José Fonseca 15b92b09e0 scons: Support MinGW32 cross compiler.
To build an alternative opengl32.dll with Gallium's software-rasterizer from a
debian-based distribution run:

  sudo apt-get install mingw32
  scons platform=windows toolchain=crossmingw machine=x86 winsys=gdi dri=no
2008-11-20 23:01:43 +09:00
José Fonseca 59ae12b5b1 python/retrace: Dump constants. 2008-11-20 01:02:03 +09:00
José Fonseca 2f153b5487 python: Allow to read from buffers. 2008-11-20 01:01:48 +09:00
José Fonseca 8a9e06257f python/retrace: Fix formatting of shaders. 2008-11-19 20:06:52 +09:00
José Fonseca 03f19bc33d python/retrace: Ignore irrelevant calls. 2008-11-19 20:06:04 +09:00
José Fonseca 56ce90c8be python/retrace: Highlight the trace dump to help to visualize. 2008-11-19 17:17:06 +09:00
José Fonseca 9efa6cafea python/retrace: Use the usual BSD-style license. 2008-11-19 16:23:01 +09:00
José Fonseca 228afbc8e0 gallium: Use costum log2 for all windows builds. 2008-11-17 22:29:24 +09:00
José Fonseca 1e35d92953 gallium: State when there are no memory leaks detected. 2008-11-17 12:29:13 +09:00
José Fonseca c13cf0d690 gallium: Make handle_table reentrant.
Ensure that the object has consistent state also when calling the destroy
callback. Namely, ensure the object passed to the callback is removed from
the table prior to calling the destroy callback to avoid a infinite loop or
double free.
2008-11-17 12:28:49 +09:00
Brian Paul 7e584a70c4 gallium: increase table size for fast log/pow functions
The various conformance tests pass now.
2008-11-14 12:58:12 -07:00
Brian Paul 6afab9001e util: Use OpenGL rasterization rules in blits and mipmap generation. 2008-11-14 12:58:12 -07:00
Keith Whitwell 0557fa72c0 translate: pull in prefetch and other optimizations from draw_vs_aos.c 2008-11-14 18:00:43 +00:00
Keith Whitwell d04caf2ce4 trivial: more tests 2008-11-14 18:00:43 +00:00
Michal Krol 0d8637451b util: Optimise log2(). 2008-11-12 19:02:41 +01:00
Michal Krol f447eea4de util: Add log2() definition for MSC. 2008-11-12 17:14:07 +01:00
Michal Krol a983f2a6ac draw: Add missing include. 2008-11-12 17:03:58 +01:00
Xiang, Haihao 5cfb0a4087 mesa: restore the negate flag of dots in build_lighting.
Dots is re-used if more than one light is enabled. Previously
the negate flag of dots may affect next light.
2008-11-11 08:11:23 -07:00
Brian ff42991c72 gallium: fix comment again. A half-closed interval was intended.
Never saw the [a,b[ notation before.
2008-11-10 20:22:36 -07:00
Brian Paul 1dae2be1f6 dri: alloc __DRIscreen object with calloc()
Conflicts:
        src/mesa/drivers/dri/common/dri_util.c
2008-11-10 15:06:13 -07:00