Brian Paul
85edffd5ff
added GLX_NV_float_buffer
2005-01-04 14:48:14 +00:00
Brian Paul
932dee87e3
use HIDDEN macro to export fewer symbols (bug 2210)
2005-01-04 14:33:47 +00:00
Brian Paul
bdbdab837e
directfb changes (Claudio Ciccani)
2005-01-04 14:19:25 +00:00
Keith Whitwell
6650264802
Add GL_EXT_fog_coord
2005-01-04 12:57:02 +00:00
Keith Whitwell
31c25f2edc
Add GL_EXT_secondary_color
2005-01-04 12:56:17 +00:00
Keith Whitwell
e024cae14b
Turn specular lighting state on/off appropriately.
2005-01-04 12:53:41 +00:00
Keith Whitwell
b6ab7a1bf1
Change to use the t_vertex.c mechanisms for building vertices,
...
including Felix's ptex code.
Re-enable some assembly for performance.
2005-01-04 12:18:05 +00:00
Brian Paul
f72e4424d9
Use the GLX 1.3 pbuffer/fbconfig functions in preference to the SGIX ones.
...
Added more functions to pbutil.[ch] to better isolate API differences.
2005-01-04 00:58:29 +00:00
Felix Kuehling
e3748eb19b
Added support for floating point depth buffers on Savage4-based
...
hardware. By also reversing the depth range this can compensate the loss
of accuracy of far objects caused by the projective transformation.
Software fallbacks work but are slightly slower since floats in a custom
(non IEEE) format have to be encoded and decoded. I havn't done anything
about polygon offsets yet. There doesn't seem to be an easy way do get
it right except making the offset unit as big as the lowest resolution
of depth values. For now float depth is disabled by default but can be
enabled through driconf (though I have seen only positive effects so
far).
2005-01-03 22:24:44 +00:00
Felix Kuehling
87889aeab4
Added a boolean option for a floating-point depth buffer.
2005-01-03 22:15:41 +00:00
Ian Romanick
3276c192b7
The opcode and command length fields of RenderLarge commands were
...
mistakenly emitted in the wrong order.
2005-01-03 21:03:03 +00:00
Brian Paul
dd1a817c50
latest updates
2005-01-03 15:55:51 +00:00
Vladimir Dergachev
a5039af357
Add structs describing vertex and pixel shader state to r300_state.
...
Take apart program_pipeline() and move it into appropriate pieces within the driver.
Test the framework on run_flat_render()
2005-01-03 15:45:10 +00:00
Brian Paul
8e73b14228
bump version to 6.3, etc.
2005-01-03 15:36:27 +00:00
Brian Paul
81ca616e7e
DirectFB driver (Claudio Ciccani)
2005-01-03 15:35:00 +00:00
Brian Paul
6563c16e38
updates from Jouk
2005-01-03 15:01:26 +00:00
Vladimir Dergachev
25faa2d56e
Turns out I left flat primitives in vertex buffer mode. Switch them back to immediate which works correctly..
2005-01-03 06:53:38 +00:00
Vladimir Dergachev
63473a8e76
Enable code to compute other constants that were used by R200 code.
...
Add fprintf to print these constants.
Correct t->size computation, so it works now.
2005-01-03 06:48:50 +00:00
Vladimir Dergachev
2fc9351ee7
Port texture allocation code from R200.
...
Hook it up, so lesson06 displays red colored textures.
2005-01-03 05:44:20 +00:00
Vladimir Dergachev
63fd67e561
Add texture units registers
2005-01-02 21:53:53 +00:00
Vladimir Dergachev
f50a1964d1
Cleanup !
...
I can not trigger any lockups now..
2005-01-02 06:16:44 +00:00
Vladimir Dergachev
d6be8dd651
I think I fixed the lockups issue.
2005-01-02 05:57:15 +00:00
Vladimir Dergachev
9a04b25c60
Get textures to work with NeHe lesson06.
...
The code is still disabled since we are displaying random image data instead of actual texture and because I had to put a sleep(1) in lesson06 drawing loop to prevent lockups.
2005-01-02 04:46:25 +00:00
Adam Jackson
3c80f5c56b
linux-dri-x86 build fix from Andreas Stenglein.
2005-01-02 03:36:53 +00:00
Felix Kuehling
7a231da442
Improved the performance of software fallbacks by not waiting for idle
...
in every single span function. Instead flush and wait in the
SpanRenderStart hook and in wrappers around _swrast_Copy/Draw/ReadPixels.
Misc. cleanups in savagespan.c while I'm there.
2005-01-02 01:22:10 +00:00
Felix Kuehling
1067ce0cea
Removed all direct hardware access (MMIO, BCI) from the Savage DRI
...
driver. It uses the new DRM version 2.0.x now, which has just been
committed to DRM CVS.
2005-01-01 20:40:14 +00:00
Felix Kuehling
467d64a177
Use DRM headers from $(DRM_SOURCE_PATH)/shared-core instead of .../shared.
2005-01-01 20:33:45 +00:00
Vladimir Dergachev
404d925b58
Add a convenience function to issue CP delays.
2005-01-01 18:41:43 +00:00
Vladimir Dergachev
e443d1ec47
Qualify the magic 20B0 register as SE_VTE_CNTL similar to R200. Looks like disabling Z offset and scaling displays gears properly, not sure why. Perhaps the meaning of the bits has changed ?
...
Cleanup code a bit.
2004-12-31 21:28:36 +00:00
Vladimir Dergachev
92d47e79f1
Sync with master copy.
2004-12-31 20:57:48 +00:00
Vladimir Dergachev
11374bdb86
Add texture drawing code. Note: it is broken at the moment and is disabled in CVS. However, all hooks are there.
...
Fix vertex buffer drawing code.
2004-12-31 19:39:03 +00:00
Vladimir Dergachev
24b5e49141
Rework slightly r300_get_primitive_type - make it clearer and more compact..
2004-12-30 20:24:30 +00:00
Keith Whitwell
179cc373f1
Get scissor test working again. Passes glean scissor test.
2004-12-30 17:47:08 +00:00
Keith Whitwell
c664f0c515
Calculate DEPTH_SCALE correctly for polygon offset.
2004-12-30 16:30:26 +00:00
Keith Whitwell
8be4747fd6
Simplify viaBlit a bit more.
...
Implement masked clears.
2004-12-30 16:13:35 +00:00
Vladimir Dergachev
4a04f002db
Add missing files.
2004-12-30 16:06:37 +00:00
Keith Whitwell
8f1ba083ba
Initialize depth pointer correctly.
2004-12-30 16:05:07 +00:00
Keith Whitwell
58cc2e9124
Don't need to adjust for drawXoff in fallback clipping.
2004-12-30 15:58:45 +00:00
Keith Whitwell
18551e75ea
fix regression with fallbacks from recent commits
2004-12-30 14:32:19 +00:00
Keith Whitwell
6fcc6c4965
Fix MagFilter state for texunit 0
2004-12-30 14:21:46 +00:00
Vladimir Dergachev
bcd1a9ed68
Update vertex buffer code (still does not work properly..)
2004-12-30 11:43:04 +00:00
Vladimir Dergachev
2269445f6d
Update to recent r300_lib.
...
Cleanup code that is not relevant anymore.
Play with unknown2 parameter.
2004-12-30 11:17:42 +00:00
Vladimir Dergachev
b53030a94c
Hooked up projection matrix - the gears actually rotate !
2004-12-30 10:27:04 +00:00
Vladimir Dergachev
a656dc251e
Restructure code.
...
Add drawing code that uses vertex buffers - does not lockup, but does not draw correctly either.. Perhaps something to do with vertices being overwritten ?
Start using hardware state retained by the driver and cut back on direct register writes significantly.
2004-12-30 10:11:39 +00:00
Vladimir Dergachev
51050efe0e
Change default RS settings so that glxgears will display something..
2004-12-30 07:50:15 +00:00
Vladimir Dergachev
7d8c1fb03a
Clarify some of the unkXXXX atoms.
2004-12-30 07:11:28 +00:00
Vladimir Dergachev
74bf43051c
Port viewport setting code from R200.
...
Take it outside R300ResetHwState.
2004-12-30 06:06:54 +00:00
Keith Whitwell
5be14fd59a
Fix some wrapping bugs in the last commit. Probably there are more
...
remaining.
2004-12-29 21:17:06 +00:00
Keith Whitwell
490e764d7a
Simplfy clear() and swapbuffers() code.
...
Fix various mishandling of cliprects.
Allow multiple primitives to be emitted to a single dma buffer, which
was largely impossible previously.
Re-enable the fast unclipped render stage.
2004-12-29 20:46:27 +00:00
Keith Whitwell
ef494c06b6
Use Point._Size in calculation
2004-12-29 14:38:17 +00:00