Commit graph

13418 commits

Author SHA1 Message Date
Brian
64ca0678ee gallium: change pipe->texture_create() to operate like the CSO functions
Now, pass in a template object and return a new object.
2008-02-15 13:50:32 +11:00
Brian
20f16a6ae4 clean-ups in guess_and_alloc_texture() 2008-02-15 13:50:32 +11:00
Brian
30c9e12f8d plug in ctx->Driver.GenerateMipmap function 2008-02-15 13:50:32 +11:00
Brian
08ffa00d15 Added ctx->Driver.GenerateMipmap() driver hook 2008-02-15 13:50:32 +11:00
Brian
20aa31a244 clean-ups 2008-02-15 13:50:32 +11:00
Brian
1ad145a950 added comment 2008-02-15 13:50:32 +11:00
Brian
e232b3ffc1 comments, clean-ups, consts 2008-02-15 13:50:32 +11:00
Brian
35caa43e68 clean-up 2008-02-15 13:50:31 +11:00
Brian
61e59234d0 gallium: add bitmap/drawpixels texcoord bias support
The state tracker will call pipe->get_paramf(PIPE_CAP_BITMAP_TEXCOORD_BIAS)
to get a bias factor for adjusting the texcoords used in bitmap/drawpixels.
This allows us to compensate for small differences in rasterization from
one device to another.
2008-02-15 13:50:31 +11:00
José Fonseca
bf3101afdc gallium: Bring latest fixes. 2008-02-15 13:50:31 +11:00
José Fonseca
560416b263 gallium: Use p_debug.h instead of non-portable stdio.h/assert.h functions. 2008-02-15 13:50:31 +11:00
José Fonseca
7ff0b6782a gallium: Add forgotten return type. 2008-02-15 13:50:31 +11:00
José Fonseca
d432583d69 gallium: Update scons instructions. Propagate user environment. 2008-02-15 13:50:31 +11:00
José Fonseca
25c29080f7 gallium: Cross-platform debugging helpers. 2008-02-15 13:50:31 +11:00
José Fonseca
152ea0b424 gallium: Portability guidelines. 2008-02-15 13:50:31 +11:00
Brian
d154f6a24b Cell: remove accidentally added OPT_FLAGS lines 2008-02-15 13:50:31 +11:00
Brian
14f1f2523b Cell: SIMD-ize tri_linear_coeff(), use vector float for vertex attributes in struct vertex_header 2008-02-15 13:50:31 +11:00
Brian
df2ab198eb Cell: re-enable inlined vertex buffers
Vertex data must be on a 16-byte address/offset so SIMD operations will work
properly in the SPU code.
2008-02-15 13:50:31 +11:00
Brian
2ec5ae5e50 Cell: remove dummy fields, update/add some comments 2008-02-15 13:50:31 +11:00
Brian
48aad03939 Cell: added cell_batch_alloc_aligned() 2008-02-15 13:50:31 +11:00
Ian Romanick
ac07631d85 Use _transpose_matrix4x4 from Cell SDK instead of my own version 2008-02-15 13:50:31 +11:00
Ian Romanick
76702d5fcd Add some debug messages 2008-02-15 13:50:30 +11:00
Ian Romanick
f33c8119ab More semi-trivial vectorization in the shader VM 2008-02-15 13:50:30 +11:00
Ian Romanick
40147bd835 Vectorize vertex puller 2008-02-15 13:50:30 +11:00
Ian Romanick
d8642b8309 Vectorize all micro ops
Fold single instruction micro ops inline.  Remove unused micro ops.
2008-02-15 13:50:30 +11:00
Ben Skeggs
e9147bfab4 nv40: cleanup state handling a bit 2008-02-15 13:50:30 +11:00
Michal Krol
7a1b2f4078 gallium: Use align_free to free aligned memory. 2008-02-15 13:50:30 +11:00
Brian
535abe4037 Cell: fix some alignment issues by aligning commands to 8-byte boundaries
Contributed by Ian Romanick.
Also, temporarily disable inlined vertex buffers.  They need to be 16-byte
aligned...
2008-02-15 13:50:30 +11:00
Brian
6a3f1ea91d Cell: don't use VEC_LITERAL macro, doesn't work w/ SDK 3.0 2008-02-15 13:50:30 +11:00
Brian
f603652c30 Cell: don't use VEC_LITERAL macro, doesn't work w/ SDK 3.0 2008-02-15 13:50:30 +11:00
Brian
4540e01978 Cell: move float4 typedef (temporary datatype) 2008-02-15 13:50:30 +11:00
Brian
d17e336259 Cell: fix small sampling error in sample_texture_bilinear() 2008-02-15 13:50:30 +11:00
Brian
790eec9666 Cell: texture sampler functions always return vector float now
Texture colors look the same now, regardless of X display/pixel format
2008-02-15 13:50:30 +11:00
Brian
71e6cd0b66 Cell: added spu_unpack_A8R8G8B8() 2008-02-15 13:50:30 +11:00
Brian
2f8268aa02 Cell: fix typo 2008-02-15 13:50:30 +11:00
Brian
21461014b2 Cell: some basic blending code 2008-02-15 13:50:30 +11:00
Brian
b4f5575add Cell: replace float 4 with vector float in eval_coeff() 2008-02-15 13:50:29 +11:00
Brian
ab9b705c67 Cell: emit blend state to SPUs 2008-02-15 13:50:29 +11:00
Brian
4080fef473 Cell: choose bilinear vs. nearest filtering according to sampler state 2008-02-15 13:50:29 +11:00
Brian
1bd182889b Cell: improved bilinear filtering
avoid calling get_tex_tile() if all texels are in same tile
2008-02-15 13:50:29 +11:00
Brian
e3ff185eae Cell: implement basic bilinear texture sampler 2008-02-15 13:50:29 +11:00
Brian
382651a4fa Cell: added spu_unpack_color(), spu_pack_R8G8B8A8() 2008-02-15 13:50:29 +11:00
Brian
09edd2e29e Cell: SIMD-ize more of texture sampling 2008-02-15 13:50:29 +11:00
Brian
f94e0396ed Cell: checkpoint: start to SIMD-ize texture sampling 2008-02-15 13:50:29 +11:00
Brian
d83dedc937 Cell: move tile clear code to flush_spans() 2008-02-15 13:50:29 +11:00
Brian
a0c35df4a0 Cell: clamp txmax, tymax in tile_bounding_box()
Also, added some debug printfs
2008-02-15 13:50:29 +11:00
Brian
4605b7df0a Cell: insert some draw_flush() calls 2008-02-15 13:50:29 +11:00
Ben Skeggs
b111d266a0 nv40: the 0x4497 version of curie doesn't support index buffers. 2008-02-15 13:50:29 +11:00
Ben Skeggs
705022f98c nouveau: avoid relocations where possible.
Potential relocations are emitted as NOPs where they're needed.  In the
event a buffer moves, the pushbuf code will emit the relevant state
changes into the NOPs.

Just a start, more work is needed to get this looking how I want it to.
2008-02-15 13:50:29 +11:00
Ben Skeggs
8bbedc3f4b nouveau: implement a bo_set_status() 2008-02-15 13:50:28 +11:00