Commit graph

115447 commits

Author SHA1 Message Date
Xiang, Haihao
89faa648a5 i965: adjust the byte order of clear color. fix #14165 2008-02-05 15:17:58 +08:00
Eric Anholt
fd776e10b3 Replace usage of DRM_BO_FLAG_MEM_TT in intel_regions.c with local/cached.
In addition to potentially binding when it was about to be mapped anyway,
failure to use CACHED_MAPPED means eating a full wbinvd on validate.  Thanks to
airlied for catching this.
2008-02-04 18:24:16 -08:00
Eric Anholt
745df749cc Include glext.h in the cva test so that it actually uses CVAs. 2008-02-04 18:24:16 -08:00
Eric Anholt
5857e988be Allow first != 0 in mesa CVA handling, and add more error checking. 2008-02-04 18:24:16 -08:00
Eric Anholt
2abcc512a3 [965] Convert brw_draw_upload to managing dri_bos, not gl_buffer_objects.
This helps us avoid a bunch of mess with gl_client_arrays that we filled
with unused data and confused readers.
2008-02-04 18:24:16 -08:00
Eric Anholt
0907c639c8 [965] Remove dead structure in brw_draw_upload.c. 2008-02-04 18:24:16 -08:00
Eric Anholt
7b8892f504 [965] Move temporary vbo array storage into the function using it. 2008-02-04 18:24:16 -08:00
Eric Anholt
c86ec87830 [965] Remove dead brw_vertex_element members. 2008-02-04 18:24:16 -08:00
Eric Anholt
4e13067d0f [965] Add a wrapper around interleaved copy_array_to_vbo_array for profiling.
If compiled with optimization, it shouldn't appear at all, and helps me for
now.
2008-02-04 18:24:16 -08:00
Eric Anholt
df44fefced [965] Avoid overloaded use of the term 'input' for clarity. 2008-02-04 18:24:16 -08:00
Eric Anholt
931685e243 [965] Replace VEP/VBP state structures with inline batch emits. 2008-02-04 18:24:15 -08:00
Brian
5db1593c78 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-04 18:05:37 -07:00
Brian
684d320ea2 Cell: don't use VEC_LITERAL macro, doesn't work w/ SDK 3.0 2008-02-04 18:03:05 -07:00
Brian
7cbe5cf212 Cell: don't use VEC_LITERAL macro, doesn't work w/ SDK 3.0 2008-02-04 18:02:21 -07:00
Brian
93d061b217 Cell: move float4 typedef (temporary datatype) 2008-02-04 16:48:36 -07:00
Brian
1a75464cdc Cell: fix small sampling error in sample_texture_bilinear() 2008-02-04 16:48:00 -07:00
Brian
efa8e03a6f Cell: texture sampler functions always return vector float now
Texture colors look the same now, regardless of X display/pixel format
2008-02-04 16:06:51 -07:00
Brian
5068b573c4 Cell: added spu_unpack_A8R8G8B8() 2008-02-04 16:05:13 -07:00
Brian
76c1a10eb1 Cell: fix typo 2008-02-04 16:04:50 -07:00
Brian
bc1ad6bcbd Cell: some basic blending code 2008-02-04 15:17:50 -07:00
Brian
168247d1ca Cell: replace float 4 with vector float in eval_coeff() 2008-02-04 15:10:35 -07:00
Brian
7a1d01f2a0 Cell: emit blend state to SPUs 2008-02-04 15:06:10 -07:00
Brian
8f924e4df0 Cell: choose bilinear vs. nearest filtering according to sampler state 2008-02-04 13:23:07 -07:00
Brian
ca1d2fc5f6 Cell: improved bilinear filtering
avoid calling get_tex_tile() if all texels are in same tile
2008-02-04 13:16:10 -07:00
Brian
0a45f75948 Cell: implement basic bilinear texture sampler 2008-02-04 12:50:42 -07:00
Brian
9a5074217f Cell: added spu_unpack_color(), spu_pack_R8G8B8A8() 2008-02-04 12:50:16 -07:00
Brian
703a869155 Cell: SIMD-ize more of texture sampling 2008-02-04 11:02:47 -07:00
Brian
18105195a8 Cell: checkpoint: start to SIMD-ize texture sampling 2008-02-04 09:54:21 -07:00
Stephane Marchesin
f71400876b nouveau: update to latest header. 2008-02-04 17:31:45 +01:00
Brian
e967a5c746 Cell: move tile clear code to flush_spans() 2008-02-04 08:53:18 -07:00
Brian
6023311c7c Cell: clamp txmax, tymax in tile_bounding_box()
Also, added some debug printfs
2008-02-04 08:46:44 -07:00
Brian
69cc19751d Cell: insert some draw_flush() calls 2008-02-04 08:45:33 -07:00
Dave Airlie
4dfcb09960 r300: fix isosurf on rs690 2008-02-04 21:59:26 +11:00
Stephane Marchesin
5351e7270f Add NV63. 2008-02-03 23:08:06 +01:00
Ben Skeggs
63923b8c95 nv40: the 0x4497 version of curie doesn't support index buffers. 2008-02-04 01:37:07 +11:00
Xiang, Haihao
e36857d841 i965: fix potential NULL pointer dereference. The third region
isn't created at all for 965
2008-02-03 20:36:17 +08:00
Ben Skeggs
f87a8cace2 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-03 12:08:49 +11:00
Ben Skeggs
edbeec2b91 nouveau: implement a bo_set_status() 2008-02-02 14:22:24 +11:00
Eric Anholt
30c9d96ebf [965] Fix indentation. 2008-02-01 16:05:10 -08:00
Eric Anholt
f85d34e425 Revert "intel: don't apply the relocation optimization if a target"
This reverts commit e2cb905bc6.

It was a reversion of an optimization hidden as otherwise.
pre_target_buf_handle was always NULL, so the optimization was never enabled,
rather than fixing the important optimization (resulting in 25-50% performance
loss).
2008-02-01 16:02:37 -08:00
Eric Anholt
7eca6be25f [965] Replace XXX comment about constant swizzle with an assert. 2008-02-01 16:02:37 -08:00
Eric Anholt
61760105df [965] Fix some indentation in brw_vs_tnl.c. 2008-02-01 16:02:36 -08:00
Brian
aa761b1605 Cell: comment about emit_quad() mask 2008-02-01 16:54:46 -07:00
Brian
44d3269356 Cell: move some tile get/clear code
Also, we weren't marking the ztile as dirty after ztesting, fixes gears glitches.
2008-02-01 16:42:09 -07:00
Brian
8bd566a9cb Cell: use global color_shuffle to remove a switch stmnt 2008-02-01 16:25:42 -07:00
Brian
d7c2eb0df4 Cell: New color packing functions (A8R8G8B8 and B8G8R8A8) 2008-02-01 15:45:02 -07:00
Brian
42201d7574 Cell: rename/move global vars
Put tile-related globals into spu_global struct.
Rename c/ztile fields to be more consistant.
2008-02-01 15:33:53 -07:00
Brian
17305489f0 Cell: deprecate some use of struct cell_command - it should go away completely
Also, remove ALIGN16_ATTRIB from structs that no longer need it.
2008-02-01 15:24:00 -07:00
Brian
b1a472bfb7 Cell: remove commands from top-level while loop which should only appear in batch buffers 2008-02-01 15:20:07 -07:00
Brian
0e9a370ae2 Cell: move ztest before color interp/packing 2008-02-01 14:04:56 -07:00