Commit graph

13317 commits

Author SHA1 Message Date
José Fonseca
cdb48e20d6 gallium: Remove draw_vertex_fetch::lookup.
It is not being used, and would be dangerous to use given the possibility of constants.
2008-02-15 13:50:25 +11:00
Michal Krol
fc36399f23 gallium: Fix build on WinXP. 2008-02-15 13:50:25 +11:00
Ben Skeggs
a5273f0fac nouveau: 0xdeadc0de 2008-02-15 13:50:25 +11:00
Brian
2b47b5b413 Cell: use _pack_rgba8() from pack_rgba8.h to do float[4]->uint color conversion
texcyl.c is twice as fast now in non-texture mode
2008-02-15 13:50:25 +11:00
Keith Whitwell
b63f994ec7 gallium: weaken assert slightly 2008-02-15 13:50:25 +11:00
Keith Whitwell
d7d3c75236 gallium: streamline various unfilled & stippled paths 2008-02-15 13:50:25 +11:00
Keith Whitwell
88469bf544 gallium: don't rely on assert(0) for error handling - may be disabled 2008-02-15 13:50:25 +11:00
José Fonseca
2da0724e99 gallium: Emit point size as a constant. 2008-02-15 13:50:24 +11:00
José Fonseca
c74f4a10f9 gallium: Emit constants. 2008-02-15 13:50:24 +11:00
José Fonseca
8a88f5e40f gallium: Allow draw_vf usage to be controlled at runtime. 2008-02-15 13:50:24 +11:00
José Fonseca
7710b36d28 gallium: Add extern keyword to global. 2008-02-15 13:50:24 +11:00
Brian
1c65928d84 Cell: add OPT_FLAGS var 2008-02-15 13:50:24 +11:00
Brian
e308dc4465 Cell: move cmd_render() into new spu_render.c file 2008-02-15 13:50:24 +11:00
Brian
c474e0d6ed Cell: add a few null texture tests 2008-02-15 13:50:24 +11:00
Brian
7012dd9b76 Cell: compute min index referenced in draw command, use it to reduce size of vertex data payload 2008-02-15 13:50:24 +11:00
Brian
5f54cfaba1 Cell: minor optimization for flat shading 2008-02-15 13:50:24 +11:00
Brian
948dc8ad24 Cell: basic texture mapping
Texture images are tiled in PPU code.  SPUs use a texture cache for getting
texels from textures.
This is very rough code, but demos/texcyl.c works.
2008-02-15 13:50:24 +11:00
Brian
2f868411a2 Cell: initial texture cache/sampling code 2008-02-15 13:50:24 +11:00
Brian
7c596b8011 Cell: emit state in cell_clear_surface() if dirty.
Without this a program that does nothing but glClear() doesn't work.  We need
the framebuffer state.
2008-02-15 13:50:24 +11:00
Brian
deaa895fe2 Cell: re-enable bounding boxes
The geometry bounding box is used to restrict rasterization to just those
tiles that are relevant.
Note another dummy field had to be added to the cell_command_render struct.
Apparently, every 4th word in a struct is susceptible to corruption in some
circumstances.  Might be a compiler bug.
2008-02-15 13:50:24 +11:00
José Fonseca
d6667171dc gallium: Use GALLIUM_ prefix for env vars. 2008-02-15 13:50:24 +11:00
José Fonseca
d5dd52aea8 gallium: Use CALLOC for pb_buffer to ensure that all fields of pipe_buffer are initiallized. 2008-02-15 13:50:23 +11:00
José Fonseca
5ec70aa03b gallium: Remove direct dependencies to mesa internals.
_mesa_exec_free is still being called. More invasive refactoring is necessary to clean it out.
2008-02-15 13:50:23 +11:00
Keith Whitwell
eb08501403 gallium: remove dead vars, code 2008-02-15 13:50:23 +11:00
Keith Whitwell
3c9e26e0fa gallium: fix typos in hardwired fetch path 2008-02-15 13:50:23 +11:00
Brian
0abef84995 push out far clip plane to 200 2008-02-15 13:50:23 +11:00
Brian
ab36a9346c Added d/D keys to change viewing distance, 'a' to toggle animation 2008-02-15 13:50:23 +11:00
Brian
5b4d14bf1c Cell: additional assertions 2008-02-15 13:50:23 +11:00
Brian
ca85eed771 Cell: make sure state commands aren't split across batches 2008-02-15 13:50:23 +11:00
Brian
1cbe803922 Cell: remove unneeded flush(), dead code 2008-02-15 13:50:23 +11:00
Brian
c4ef36dec0 Cell: clean-up of render path
Finally removed a number of unneeded flush commands.  Vertex buffers are
allocated from the general buffer pool, freed by SPUs when done.
Still an occasional failed assertion (invalid batch buffer command)...
2008-02-15 13:50:23 +11:00
Brian
9abbaacea6 Cell: checkpoint commit: always inline prim indexes into batch buffer
Also, explicit release-vertex-buffer command.
Lots of debug/stale code still in place...
2008-02-15 13:50:23 +11:00
Brian
4f0906a18a Cell: If flushing for swapbuffers, wait for frame completion 2008-02-15 13:50:23 +11:00
Brian
87c8f9c583 Cell: additional debug code, misc clean-up 2008-02-15 13:50:23 +11:00
Brian
5c7c0675a7 Cell: generalize the batch buffer code for vertex buffers... 2008-02-15 13:50:23 +11:00
Brian
72b671bd39 gallium: check if surface has defined status in check_clear_depth_with_quad()
This was part of Keith's patch from Friday.
2008-02-15 13:50:23 +11:00
Keith Whitwell
af2ccd4c0c gallium: handle flatshading explicitly in clipper stage
We can do a better job in the clip stage than just relying on the
brute-force approach of copying colors to all incoming vertices applied
in the flatshade stage.

At very least, it is only necessary to do this in the clipper when a
primitive is actually being clipped.
2008-02-15 13:50:23 +11:00
Keith Whitwell
bb37e7f591 gallium: add a couple of hardwired vertex fetch functions 2008-02-15 13:50:22 +11:00
Keith Whitwell
f7e64c323f gallium: only call vertex/prim queue flush when there is something to flush 2008-02-15 13:50:22 +11:00
Keith Whitwell
85d7e7ceee gallium: explictly cast double to float in vertex fetch 2008-02-15 13:50:22 +11:00
Keith Whitwell
01ab6472cc gallium: fill in missing formats for vertex_fetch 2008-02-15 13:50:22 +11:00
Keith Whitwell
25d2ffc669 gallium: remove dead code from draw_vf* 2008-02-15 13:50:22 +11:00
José Fonseca
169a74196f First stab at hooking draw_vbuf & vf.
Emit disabled for now. Tested with softpipe. Only one vertex at a time for now (slow).
2008-02-15 13:50:22 +11:00
José Fonseca
a7872d4c41 Clone vf module. 2008-02-15 13:50:22 +11:00
Stephane Marchesin
903521a6c0 nouveau: oops and make nouveau winsys build by default 2008-02-15 02:41:34 +01:00
Stephane Marchesin
583f424d61 nouveau: add nv30. 2008-02-15 02:36:28 +01:00
Stephane Marchesin
e538dc52c1 nouveau: hook in nv30. 2008-02-15 02:26:03 +01:00
Stephane Marchesin
e713cb26c9 nouveau: Update to latest header. 2008-02-15 02:26:03 +01:00
Stephane Marchesin
73b3a29b16 Hook nv30 into the build. 2008-02-15 02:26:03 +01:00
Maarten Maathuis
2effa9b36c nv40: Avoid a nasty array overflow leading to a corrupt memory pointer. 2008-02-13 22:57:09 +01:00