Commit graph

28654 commits

Author SHA1 Message Date
Michel Dänzer
42db8c8cdb st/xorg: Use pipe clear hook for solid fills of whole pixmaps.
Can give a little boost e.g. for anti-aliased text rendering.
2009-11-26 16:46:13 +01:00
Keith Whitwell
b96218c656 svga: hash the whole key, not just the first four bytes 2009-11-26 15:25:42 +00:00
Michel Dänzer
3eb3bfb7c7 st/xorg: Make sure DRI2 blits use GPU copy contents even for software fallback.
Fixes 3D apps not updating with a non-GL compositing manager and Option
"2DAccel" "off".

Also clean up a little pixmap vs. drawable mess.
2009-11-26 16:00:06 +01:00
Keith Whitwell
ecfe1352cc st/xorg: fix refcounting bugs introduced in earlier commit 2009-11-26 14:23:24 +00:00
Keith Whitwell
dfb871d403 st/xorg: formatting
This directory needs indent run over it.
2009-11-26 14:23:07 +00:00
Keith Whitwell
41423c01b2 st/xorg: remove debugging flush
Accidentally committed in 7fbdbad5c0
('st/xorg: consolidate some dest surface state setting')
2009-11-26 12:53:36 +00:00
José Fonseca
c783f5cfd8 svga: Remove spurious argument to SVGA_DBG. 2009-11-26 12:02:59 +00:00
Keith Whitwell
7b0e4adaf2 st/xorg: render throttling in block handler
Similar to the classic swapbuffer throttling in GL drivers, put an
upper bound on the number of outstanding chunks of rendering the state
tracker can generate -- where calling the block handler denotes a
chunk.

Currently that number is set at around 4 "chunks", but could be
tweaked up or down.  If a better measure for the amount of outstanding
rendering is found, that would be fine too.

As it stands, this improves interactivity by preventing the X server
from queueing up arbitary amounts of rendering.
2009-11-26 11:55:47 +00:00
Keith Whitwell
8544c309d0 st/xorg: split copy operation into prepare/copy/done phases
Any high-overhead one-off tasks are moved into the prepare hook.
2009-11-26 11:23:37 +00:00
Keith Whitwell
91a5131e6b st/xorg: don't set up constant buffer for non-xv fragment shaders
These currently don't reference any constants.  Can add this back
if newer shaders need them, but in the meantime don't create
a new constant buffer every time we do a blit.
2009-11-26 11:23:36 +00:00
Keith Whitwell
fa799f81de st/xorg: split up shared Done call
The two users of composite (Composite and Solid) now call a new
xorg_composite_done() from their Done functions, while CopyDone
is directly implemented on top of xorg_renderer.c.
2009-11-26 11:23:36 +00:00
Keith Whitwell
b4ea1eb871 st/xorg: set up rasterizer state in init 2009-11-26 11:23:36 +00:00
Keith Whitwell
86ba5139a8 st/xorg: remove redundant clipping code 2009-11-26 11:23:36 +00:00
Keith Whitwell
899d20cfaa st/xorg: don't bother with cso save and restore in copy func 2009-11-26 11:23:36 +00:00
Keith Whitwell
7fbdbad5c0 st/xorg: consolidate some dest surface state setting 2009-11-26 11:23:36 +00:00
Vinson Lee
808f037660 glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore. 2009-11-26 00:35:31 -05:00
Richard Li
11dce74030 r600 : reset stack flag with one channel only. 2009-11-24 16:00:25 -05:00
Jakob Bornecrantz
45d9ea3619 vmware/xorg: Link against libkms
If the system doesn't have libkms installed it wont try to link against it.
2009-11-24 19:20:59 +01:00
Jakob Bornecrantz
77529a2cf2 vmware/xorg: Clean Makefile a bit 2009-11-24 19:16:37 +01:00
Jakob Bornecrantz
522e840a91 vmware/xorg: Don't link against libdrm_intel 2009-11-24 18:47:15 +01:00
Jakob Bornecrantz
eca5d6944a vmware/xorg: Stage driver in lib/gallium 2009-11-24 18:46:40 +01:00
Richard Li
d4c2f53ca5 r600 : fix stack depth setting bug. 2009-11-24 12:16:39 -05:00
José Fonseca
8bf4e5d617 llvmpipe: Update instructions. 2009-11-24 16:01:01 +00:00
Keith Whitwell
91a4e6d53f tgsi: rename fields of tgsi_full_src_register to reduce verbosity
SrcRegister -> Register
SrcRegisterInd -> Indirect
SrcRegisterDim -> Dimension
SrcRegisterDimInd -> DimIndirect
2009-11-24 15:13:17 +00:00
Keith Whitwell
5b0824dfe5 tgsi: rename fields of tgsi_full_dst_register to reduce verbosity
DstRegister -> Register
DstRegisterInd -> Indirect
2009-11-24 15:08:55 +00:00
Keith Whitwell
fe2b31e4a8 tgsi: rename fields of tgsi_full_declaration to reduce verbosity
DeclarationRange -> Range
2009-11-24 15:04:18 +00:00
Keith Whitwell
7d6c8f980d tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosity
InstructionPredicate -> Predicate
InstructionLabel -> Label
InstructionTexture -> Texture
FullSrcRegisters -> Src
FullDstRegisters -> Dst
2009-11-24 15:02:23 +00:00
Keith Whitwell
763426a025 tgsi: reduce repetition of structure name in its members
Rename Semantic.SemanticName to Semantic.Name.  Similar for
SemanticIndex, and the members of the tgsi_version struct.
2009-11-24 14:53:29 +00:00
José Fonseca
f3a0615fb0 svga: Handle comment tokens when dumping. 2009-11-24 14:49:21 +00:00
Keith Whitwell
42ae003069 tgsi: remove unnecessary full_token init and free functions 2009-11-24 14:45:56 +00:00
Keith Whitwell
9fbfe6b65d tgsi: remove unused Flags member from full_instruction 2009-11-24 14:44:45 +00:00
José Fonseca
d185c2fd13 svga: Use consistent names for public symbol names of shader dumping facilities. 2009-11-24 14:43:30 +00:00
José Fonseca
a71f836504 svga: Use consistent file names for dumping facilities. 2009-11-24 14:37:45 +00:00
José Fonseca
1325361abe util: Describe a few more formats. 2009-11-24 14:25:21 +00:00
José Fonseca
4ae3e88dc9 llvmpipe: Use assert instead of abort. Only verify functions on debug builds. 2009-11-24 14:25:21 +00:00
José Fonseca
066991c8d1 llvmpipe: Fix memory leak. 2009-11-24 14:25:20 +00:00
José Fonseca
2282fb7710 llvmpipe: Use the generic conversion routine for depths.
This allows for z32f depth format to work correctly.
2009-11-24 14:25:20 +00:00
José Fonseca
b375526b50 llvmpipe: Be more conservative with the supported formats.
We'll likely support much more formats, but doing this allows to run
more testsuites without immediately hit assertion failures.
2009-11-24 14:25:20 +00:00
José Fonseca
c6d663e6dc wgl: Fix copy'n'paste typo in comment. 2009-11-24 14:25:20 +00:00
José Fonseca
52df532b02 llvmpipe: Fix typo in comparison operator. 2009-11-24 14:25:20 +00:00
Keith Whitwell
56ee132f96 gallium: try and update r300 and nv drivers for tgsi changes
It would be nice if these drivers built under the linux-debug header
so that these types of interface changes can be minimally propogated
into those drivers by people without the hardware.  They don't have to
generate a working driver -- though a command-dumping winsys would be
an excellent for regression checking.
2009-11-24 14:09:24 +00:00
Jakob Bornecrantz
7fac8ce73b st/xorg: Pass mode types from the kernel to X 2009-11-24 14:53:03 +01:00
Keith Whitwell
ba1ca28cc6 gallium: simplify tgsi tokens further
Drop anonymous 'Extended' fields, have every optional token named
explicitly in its parent.  Eg. there is now an Instruction.Label flag,
etc.

Drop destination modifiers and other functionality which cannot be
generated by tgsi_ureg.c, which is now the primary way of creating
shaders.

Pull source modifiers into the source register token, drop the second
negate flag.  The source register token is now full - if we need to
expand it, probably best to move all of the modifiers to a new token
and have a single flag for it.
2009-11-24 13:41:03 +00:00
Jakob Bornecrantz
ee40b20e7a st/xorg: Add libkms integration 2009-11-24 12:57:32 +01:00
Jakob Bornecrantz
1a19b9dbc2 st/xorg: Touch up xorg_crtc.c 2009-11-24 12:57:32 +01:00
Jakob Bornecrantz
def9b0e586 st/xorg: Rename driver functions 2009-11-24 12:57:32 +01:00
Jakob Bornecrantz
431e85f894 st/xorg: Rename output functions 2009-11-24 12:57:31 +01:00
Jakob Bornecrantz
6713a83bb8 st/xorg: Rename dri2 functions 2009-11-24 12:57:31 +01:00
Jakob Bornecrantz
26f9eeddf4 st/xorg: Standardise all function names defined in xorg_tracker.h 2009-11-24 12:57:31 +01:00
Keith Whitwell
2946aea110 svga: try harder to make the cachable flag work
It doesn't though.
2009-11-25 17:14:07 +00:00