Commit graph

115447 commits

Author SHA1 Message Date
Brian
9b598df95e asst changes in bbox code, dma tags, etc 2008-01-03 08:58:51 -07:00
Brian
bb55835fc0 insert a temporary flush to fix missing triangles artifact 2008-01-03 08:58:01 -07:00
Brian
5cd96f7684 pass surface format in cell_command_framebuffer struct 2008-01-03 07:49:59 -07:00
Brian
7aee3eff18 better debug code 2008-01-03 07:49:13 -07:00
Zou Nan hai
15653b5d88 fix fd.o bug #13761
MRD computation is now changed in mesa core
2008-01-03 16:05:27 +08:00
Brian
f6b7e2d3bf make use of prim bounds box info 2008-01-02 19:31:36 -07:00
Brian
54090bd841 only fetch as much vertex data as needed 2008-01-02 19:05:34 -07:00
Brian
d55c4ec9d2 remove previous triangle test code 2008-01-02 18:58:44 -07:00
Brian
de9f8e8b71 Cell: basic triangle rendering works.
The cell "render_stage" (last in the "draw" pipeline) emits vertices into
a buffer which is pulled by the SPUs in response to a "RENDER" command.
This is pretty much temporary/scaffold code for now.
2008-01-02 18:53:33 -07:00
Eric Anholt
9e9f6f105c [965] Convert WM unit to use a cache key instead of brw_cache_data. 2008-01-02 15:51:49 -08:00
Eric Anholt
03b59edbb5 [965] Convert VS unit to use a cache key instead of brw_cache_data. 2008-01-02 15:51:48 -08:00
Eric Anholt
77e6cf8c17 [965] Convert SF unit to use a cache key instead of brw_cache_data. 2008-01-02 15:51:47 -08:00
Eric Anholt
3149119cad [965] Convert GS unit to use a cache key instead of brw_cache_data. 2008-01-02 15:51:46 -08:00
Eric Anholt
114b802e87 [965] Convert clip unit to use a cache key instead of brw_cache_data. 2008-01-02 15:51:46 -08:00
Eric Anholt
b35811e1b3 [965] Convert CC unit to use a cache key instead of brw_cache_data. 2008-01-02 15:51:45 -08:00
Eric Anholt
a95b48d55b [965] Convert surface state to use a cache key instead of brw_cache_data. 2008-01-02 15:51:44 -08:00
Eric Anholt
3e3644c6e8 [965] Convert sampler state to use a cache key instead of brw_cache_data. 2008-01-02 15:51:43 -08:00
Eric Anholt
a099461fa3 Revert "[intel] Use the memory type mask containing the caching flags."
This reverts commit 8bb9ae3693.

Validating our kernel buffers with the caching off in flags but on in mask
means that the kernel migrates the buffer to be uncached, which is undesired.
2008-01-02 15:51:27 -08:00
Eric Anholt
8bb9ae3693 [intel] Use the memory type mask containing the caching flags. 2008-01-02 09:47:07 -08:00
Keith Packard
a3c435b342 Set correct flags mask when validating buffers.
The 'mask' value used in the validation operation specifies which of the
'flags' bits are being modified. Buffer validation wants to pass the memory
type and access mode (rwx) to the kernel so that the buffer will be placed
correctly, and so that the right kind of fence will be created (read vs
write). That means we actually want a constant mask for these operations,
and not something computed from the bits coming in. The constant we want is
DRM_BO_MASK_MEM | DRM_BO_FLAG_READ | DRM_BO_FLAG_WRITE | DRM_BO_FLAG_EXE.
2008-01-02 09:47:06 -08:00
Eric Anholt
4cc02fb938 [965] Improve performance by including reloc target buffer pointers in keys.
Without this, the WM binding tables would all collide, for example.  Improves
openarena performance by around 2%.
2008-01-02 09:47:05 -08:00
Brian
de427742b8 additional stub functions 2008-01-02 07:24:07 -07:00
Brian
7d6d6652d5 additional GL_COLOR_ATTACHMENTx_EXT cases (bug 13767) 2008-01-02 07:19:31 -07:00
Ben Skeggs
732540f997 nv40: some cleanups 2008-01-02 23:44:24 +11:00
Ben Skeggs
720fd7b5e9 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2008-01-02 23:02:35 +11:00
Xiang, Haihao
60d762aa62 i915: Needn't adjust pixel centers. fix #12944 2008-01-02 11:38:51 +08:00
Brian
da92ac01e8 Plug in more infrastructure for actual rendering.
Track vertex/fragment shader state.
Plug in pipe->draw_arrays(), pipe->draw_elements().
Plug render stage (a stub) into end of 'draw' pipeline.
Specify a hard-coded vertex format for now.
2008-01-01 15:21:50 -07:00
Brian
57a711f727 hack/fix pack_color() for correct ps3 format 2008-01-01 15:21:50 -07:00
Brian
52659e3c23 Clean-up, re-org some vertex/fragment shader state code. 2008-01-01 15:18:04 -07:00
Brian
292bbd4a72 move SP_NEW_ #defines into sp_state.h 2008-01-01 15:18:04 -07:00
Dave Airlie
524304c9b8 Revert "r300: fix bug with maniadrive rendering"
this is correct, there is another issue with sw fallbacks

This reverts commit cc50edbca2.
2008-01-02 06:19:47 +10:00
Brian
520a455f55 fix vbo display list memleak upon context destruction 2008-01-01 10:21:21 -07:00
Brian
678db26b9d unref buffer after drawing, fixes rastpos mem leak 2008-01-01 10:21:21 -07:00
Brian
c37d2c9325 fix single-sided stencil test bug 2008-01-01 10:21:21 -07:00
Brian
6656864135 fix leak, fix refcount error 2008-01-01 10:21:21 -07:00
Brian
6883e02a5c fix a mem leak, document another existing leak 2008-01-01 10:21:21 -07:00
Brian
4fabee9d4d unref const buffers during context destroy 2008-01-01 10:21:21 -07:00
Brian
6128c93865 unref const buffers during context destroy 2008-01-01 10:21:21 -07:00
Brian
1631a9513d free program caches 2008-01-01 10:21:21 -07:00
Brian
f44e2f14d2 fix mem leaks 2008-01-01 10:21:21 -07:00
Brian
573b4414b9 fix mem leak (free key) 2008-01-01 10:21:21 -07:00
Brian
171a9674c4 free surface caches in softpipe_destroy() 2008-01-01 10:21:21 -07:00
Brian
aec6009ece fix a memleak 2008-01-01 10:21:21 -07:00
Brian
57a5421d65 free tgsi machine state 2008-01-01 10:21:21 -07:00
Brian
f6136f993a free tgsi machine state 2008-01-01 10:21:21 -07:00
Brian
eba2e044a0 added tgsi_exec_machine_free_data() 2008-01-01 10:21:20 -07:00
Brian
552907d8a4 free Default1D/2DArray objects 2008-01-01 10:21:20 -07:00
Brian
a5c84de3a7 remove unneeded conditional 2008-01-01 10:20:56 -07:00
Brian
f0676cc422 fix vbo display list memleak upon context destruction 2008-01-01 10:20:56 -07:00
Brian
6c0fc07d71 fix glUniform4f typo 2008-01-01 10:20:56 -07:00