summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_render.c
AgeCommit message (Collapse)Author
2005-02-16get two textures to workreist
2005-02-15Share routing code between immd/vb. Fix breakage of vertex programs in vb mode.Ben Skeggs
2005-02-14Support for blend color(not tested), "proper line width/point size" clamps ↵Aapo Tahkola
and fix for glxinfo problem.
2005-02-12Enabled vertex buffer mode as default.Ben Skeggs
2005-02-11Port of r200 VB code. VB path should be as fast as the immediate path now, ↵Ben Skeggs
tuxracer should render correctly. Immediate path was left enabled.
2005-02-10Updating master copy of r300_reg.h and turning immediate mode back onAapo Tahkola
2005-02-10Removing some regs that are wrong and adding some comments to r300_reg.h .Aapo Tahkola
2005-02-09Enabled user-defined point size, enabled zbiases for rest of the primitives ↵Aapo Tahkola
and fixed bad vertex number checks triggered by nurb.
2005-02-08Fix the bug and get zbias back into shape. There might still be some ↵Aapo Tahkola
problems with initial zbias...
2005-02-08BIG FAT NOTE: Theres a nasty bug somewhere thats causing vb color buffer ↵Aapo Tahkola
clears and other things not to work. This bug can be triggered by extending struct r300_hw_state by two struct r300_state_atom's from its current size. Everything zbs and unk42B4 related is now covered with HAVE_ZBS and GA ifdefs. Who wants to fix it? Not i. :)
2005-02-08Better fix to get tuxracer working.Aapo Tahkola
2005-02-08fog + immediate mode = bad thingsAapo Tahkola
2005-02-08Implemented checks that prevent r300 from locking up when bad number of ↵Aapo Tahkola
verts are given. Also tweaked WARN_ONCE a bit to handle va-args.
2005-02-08To cut the long and boring story short, polygon offsets should now work. vb ↵Aapo Tahkola
mode colorbuffer clears are still mysticly broken by offsets... Maybe we need to merge zbs and unk42B4 together?
2005-02-03Removing some trash and disabling fog fallback as it seem its causing more ↵Aapo Tahkola
harm than good. Tuxracer should now work at least with vbs. Fix for vb colorbuffer clear bug is underway...
2005-02-03Changing vb code to handle inputs correctly.Aapo Tahkola
2005-02-03Get vertex programs supplied by the user work properly with immediate mode - ↵Vladimir Dergachev
vertex buffer mode worked by accident. Fix alu_offset in SINGLE_TEXTURE_PIPELINE.
2005-02-03Get Polygon offset fill to work.Vladimir Dergachev
Make WARN_ONCE message more informative.
2005-02-02Changed parts of r300_setup_routing to use WARN_ONCE.Aapo Tahkola
2005-02-01Vertex programs work now with some restrictions. I expect arbvptorus to workAapo Tahkola
correctly when normals are delivered. Please note that some programs only start in vb mode as there is something wrong in immediate mode vb code.
2005-02-01Make WARN_ONCE messages more informative.Vladimir Dergachev
2005-01-31Add magic sequence to prevent ClearBuffer from locking up.Vladimir Dergachev
Change Polygon.OffsetFill from fallback to warn once. Quake demo now works, modulo texture rendering issues due to absent pixel shader pipeline.
2005-01-31Use SecondaryColorPtr, not ColorPtr[1] (the latter is NULL).Vladimir Dergachev
This fixes segfault in tuxracer-demo. It locks up after this though.
2005-01-28Add basic sceleton for vertex programs + some other fixesAapo Tahkola
2005-01-22Properly configure routing - based on advice by Keith Whitwell.Vladimir Dergachev
2005-01-15On the way to getting stencil working.Vladimir Dergachev
2005-01-15On the way to getting stencil and texture formats working.Vladimir Dergachev
Looks like the matter of texture formats is a lot simpler, with the wrong display in quake explained by the fact that we are not handling texture combine modes.
2005-01-11Mipmapping and other texture filters now work.Aapo Tahkola
Beaware that R300_TX_MIN_FILTER_MASK might be incorrect because i havent been able to confirm that all filters operate correctly. Because of this its also pretty pointless trying to get other features that use filter field to work. Lod bias should also work but have been unable to test it because lodbias test doesnt work.
2005-01-11Switch back to using immediate mode code - use of AGP space is interfering ↵Vladimir Dergachev
with texture management. Ideally, r300_render is ready to be rewritten to use standard Mesa include files, but I don't think I'll get around to it.
2005-01-11Move the few definitions from r300_lib.h still in use to r300_emit.h.Vladimir Dergachev
Rework *vb* function to not use AOS_ARRAY structure, but rather work directly with r300->state.aos. Remove references to r300_lib.h and r300_lib.c Remove r300_lib.[c,h].
2005-01-10Bring vertex buffer code up to date..Vladimir Dergachev
2005-01-10For some reason we need r300Flush when using textures. Perhaps the problem isVladimir Dergachev
with BITBLT_MULTI call ?
2005-01-10Clean up the code and make it unnecessary to issue extra calls to Setup*ShadersVladimir Dergachev
in the r300_run_immediate_render function. Bumps up glxgears fps count by about 100 points.
2005-01-09Port EmitPixelShader from cmdbuf.c to SetupPixelShader in state.c.Vladimir Dergachev
2005-01-09Implement a more elaborate hashing scheme for texture formats. Still not ↵Vladimir Dergachev
perfect. Transform EmitVertexShader in cmdbuf.c to SetupVertexShader in state.c. The latter is only temporary and is to be rewritten to auto-generate shaders based on current GL context.
2005-01-06Added GL_POLYGON primitive. Single primitive between glBegin()/glEnd() now ↵Ben Skeggs
works.
2005-01-05Reduce the amount of debug output, while still printing important messages.Vladimir Dergachev
Make guessing texture formats easier.
2005-01-05Play a little bit with texture formats.Vladimir Dergachev
Get NeHe demos 06, 07 and 19 working.
2005-01-04Port code from r200 that implements color blending. Seems to work.Vladimir Dergachev
This can be tested with lesson19 from NeHe. This has also shown that the alpha code does not work - we pick up a red tint for transparent pixels somewhere.
2005-01-04Unify rendering of textured and non-textured primitives.Vladimir Dergachev
2005-01-04Major code restructuring:Vladimir Dergachev
* move proven code into the r300_state.c * update ClearBuffer to cope with more dynamic state * cleanup !
2005-01-03Add structs describing vertex and pixel shader state to r300_state.Vladimir Dergachev
Take apart program_pipeline() and move it into appropriate pieces within the driver. Test the framework on run_flat_render()
2005-01-03Turns out I left flat primitives in vertex buffer mode. Switch them back to ↵Vladimir Dergachev
immediate which works correctly..
2005-01-03Enable code to compute other constants that were used by R200 code.Vladimir Dergachev
Add fprintf to print these constants. Correct t->size computation, so it works now.
2005-01-03Port texture allocation code from R200.Vladimir Dergachev
Hook it up, so lesson06 displays red colored textures.
2005-01-02Cleanup !Vladimir Dergachev
I can not trigger any lockups now..
2005-01-02I think I fixed the lockups issue.Vladimir Dergachev
2005-01-02Get textures to work with NeHe lesson06.Vladimir Dergachev
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.
2004-12-31Qualify the magic 20B0 register as SE_VTE_CNTL similar to R200. Looks like ↵Vladimir Dergachev
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-31Add texture drawing code. Note: it is broken at the moment and is disabled ↵Vladimir Dergachev
in CVS. However, all hooks are there. Fix vertex buffer drawing code.