Ben Skeggs
2946a5a012
nv40: kill some warnings
2008-04-04 20:32:06 +10:00
Ben Skeggs
e902d9091c
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
2008-04-04 20:30:29 +10:00
Keith Whitwell
7a7bce7b24
gallium: make msvc less unhappy
2008-04-04 11:13:10 +01:00
Michel Dänzer
c07d3f6a9e
gallium: Always allocate new const buffers instead of modifying existing ones.
2008-04-04 09:06:13 +01:00
Ben Skeggs
bc67533f29
nouveau: create swizzled surface + scaled image objects
2008-04-04 16:18:58 +10:00
Ben Skeggs
a45a12e757
nv40: have test for hw idxbuf in single place
2008-04-04 13:02:37 +10:00
Ben Skeggs
fbb6cc7842
nouveau: in some cases don't create the buffer in local mem initially.
2008-04-04 12:55:57 +10:00
Brian
a7504ad587
cell: added some comments/ideas about better texture sampling
2008-04-03 19:43:10 -06:00
Brian
217d379407
cell: minor texture improvements
...
Precompute tiles_per_row. Use ushort multiplies in a few places. New comments.
2008-04-03 19:43:10 -06:00
Ben Skeggs
0b57662fa6
nv40: remove redundant state_emit() calls
2008-04-04 11:17:28 +10:00
Ben Skeggs
6fbc50e013
nv40: static attribs -> stateobj
2008-04-04 11:17:28 +10:00
Ben Skeggs
7e9b83ac0a
nv40: convert the inline idxbuf paths also
2008-04-04 11:17:27 +10:00
Ben Skeggs
73322bba5c
nv40: need to resubmit buffers if pushbuf gets flushed during draw
2008-04-04 11:17:27 +10:00
Brian
1307eebfa0
gallium: test if PIPE_FORMAT_YCBCR[_REV] is supported and enable GL_MESA_ycbcr_texture
...
Update texture format selection code too.
2008-04-03 16:37:30 -06:00
Brian
766f3a545e
gallium: implement ycbcr->rgba tile conversion
2008-04-03 16:36:07 -06:00
Brian
124e1345c9
gallium: set rasterizer.gl_rasterization_rules = 1 in a few more places
2008-04-03 13:16:37 -06:00
Brian Paul
ce5c867cbb
gallium: streamline viewport/raster/shader state for clearing with quads
...
Move init of these items to new st_init_clear().
2008-04-03 12:54:32 -06:00
Brian Paul
e8823bb7df
gallium: include st_cb_bitmap.h to silence warning
2008-04-03 12:52:55 -06:00
Brian Paul
c4f8c8b304
gallium: remove the temporary/test TEST_DRAW_PASSTHROUGH code
2008-04-03 12:44:58 -06:00
Brian Paul
4f67a3f7d3
gallium: use identity viewport fix broken clear_with_quad() path
...
Since bypass_clipping is set and we're specifying quad vertexes in window
coords, setup identity viewport.
2008-04-03 12:42:26 -06:00
Brian Paul
0bc2e2c9cd
gallium: call st_flush_bitmap_cache()
2008-04-03 12:01:53 -06:00
Brian Paul
f07fe3c728
gallium: set gl_rasterization_rules
2008-04-03 12:01:17 -06:00
Michel Dänzer
333df9656a
gallium: Only build softpipe driver by default for xlib winsys with scons.
2008-04-03 13:19:38 +01:00
Keith Whitwell
d2cb4ba0bb
draw: add passthrough path to the pipeline
...
This handles the case where bypass_vs is set, but vertices need to go
through the pipeline for some reason - eg unfilled polygon mode.
Demonstrates how to drive the pipeline from inside one of these things.
2008-04-03 12:21:30 +01:00
Stephane Marchesin
8ed894bd17
nv10: emit dummy zeta size when no zbuffer is used.
2008-04-03 04:20:22 +02:00
Stephane Marchesin
7f21b63a98
nv10: fix more vertex stuff
2008-04-03 04:07:16 +02:00
Stephane Marchesin
d3340cda9c
don't push "pouets"
2008-04-02 18:28:44 +02:00
Stephane Marchesin
fb19b3393f
nv10: fix some more state, work on the vertex emission code.
2008-04-02 18:26:49 +02:00
Stephane Marchesin
8f26e975ca
nv10: set rasterizer state.
2008-04-02 15:09:32 +02:00
Keith Whitwell
add46fbc8c
draw: add missing break statement
2008-04-02 12:05:55 +01:00
Keith Whitwell
ae3c91e98c
draw: Set the backend prim in the pt 'prepare' operation
...
Leaving it until 'run' is bad as the primitive is pretty much state
for some drivers and so needs to get set early. In some drivers
this is used to determine things like vertex format, etc -- by the
time we get to 'run', it's too late to change this.
2008-04-02 12:02:32 +01:00
Keith Whitwell
8e33194837
gallium: add a flag to turn on gl rasterization rules
...
Use this to set up hardware rasterization (if your hardware can
do it) or otherwise turn on various tweaks in the draw module.
Currently only hooked up to point biasing code.
2008-04-02 11:38:33 +01:00
Keith Whitwell
bc739440c2
gallium: add temporary facility for rasterization-time clamping of point sizes
2008-04-02 10:44:04 +01:00
Ben Skeggs
81f34e222a
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
2008-04-02 13:29:17 +10:00
Stephane Marchesin
901700888e
Merge branch 'gallium-0.1' of git+ssh://marcheu@git.freedesktop.org/git/nouveau/mesa into gallium-0.1
2008-04-02 05:10:52 +02:00
Stephane Marchesin
b1a361ba7a
nv10: fix stuff and things.
2008-04-02 05:10:18 +02:00
Ben Skeggs
ae87909d0d
nv40: only update draw module state when using swtnl
2008-04-02 13:04:06 +10:00
Ben Skeggs
bdf5b23bfd
nv40: shorten zsa state lines
2008-04-02 12:54:37 +10:00
Brian
7f40115a52
mesa: added a cast to avoid int overflow, plus rename texels->pixels
2008-04-01 16:20:29 -06:00
Brian
792d524aed
mesa: measure fill rate for drawing a large quad with basic shading/texture modes
2008-04-01 16:07:09 -06:00
Brian
bccd3f138c
cell: more multi-texture fixes (mostly working now)
2008-04-01 15:42:42 -06:00
Brian
8bef18f47b
mesa: destroy window upon exit
2008-04-01 14:56:10 -06:00
Brian
9d1444092f
cell: turn off some debug output
2008-04-01 14:55:31 -06:00
Brian
9e7b730eb2
cell: pass tex unit to get_texel()
2008-04-01 14:52:25 -06:00
Brian
2d02ee8509
cell: fix bug in texture tiling function (non-square textures work now)
2008-04-01 14:52:04 -06:00
Brian
e7b23d36df
cell: checkpoint: more multi-texture work
2008-04-01 11:35:53 -06:00
Brian
c14da8f524
cell: assert num samplers/textures <= CELL_MAX_SAMPLERS
2008-04-01 11:30:17 -06:00
Brian
6ddd2df1ae
cell: return CELL_MAX_SAMPLERS to indicate number of texture units
2008-04-01 11:28:27 -06:00
Brian
9d287a1841
gallium: init ctx->Const.MaxTextureUnits
2008-04-01 11:28:01 -06:00
Brian
f8c09464f8
cell: enable #define CACHE_STATS to print a cache report upon exit
2008-04-01 11:05:32 -06:00