Commit graph

28115 commits

Author SHA1 Message Date
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
Zack Rusin
c712f33746 st/xorg: accelerate src luminance 2009-11-25 10:20:08 -05:00
Zack Rusin
d228e3cc8e util: also print out memory statistics 2009-11-25 10:20:08 -05:00
Keith Whitwell
55b0157860 svga: revert packing of surface key
Over-ambitious packing of values broke my cursor.
2009-11-25 11:45:20 +00:00
Dave Airlie
92c6a26a8a radeon: fix context destroy needing lock for flushing.
Thanks to Intel code which I've just stolen pretty much as usual.

This fixes fdo bug 22851 which is a dri1 regression since rewrite.

Tested by: fpiobaf (Fabio) on #radeon
Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-25 20:40:15 +10:00
Vinson Lee
94bcb9f1a4 glu/sgi: Fix memory leak in gluBuild1DMipmapLevelsCore. 2009-11-25 00:39:37 -05:00
Vinson Lee
0d89f3dc7f glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore. 2009-11-25 00:28:56 -05:00
Vinson Lee
f895abbd97 glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore. 2009-11-25 00:18:49 -05:00
Keith Whitwell
f1ce37f74a svga: cache textures as well as buffers 2009-11-24 21:15:35 +00:00
Keith Whitwell
4509f3cbad st/xorg: use surface_copy for blits if available
Even if its not available, we really want to be coalescing blit
operations better.
2009-11-24 21:15:35 +00:00
Michal Krol
3c46bbee1b tgsi: Document Declaration Semantic token and FACE semantic name. 2009-11-24 11:58:01 +01:00
Michal Krol
bae9ece685 slang: Fix allocation size.
We don't need 16K+ to store a single pointer.
2009-11-24 11:22:03 +01:00
Michal Krol
53d9b7d361 mesa: Fix pointer arithmetic. 2009-11-24 11:17:16 +01:00
Michal Krol
0c54d76f37 tgsi: Implement predicated instructions in exec. 2009-11-24 09:05:31 +01:00
Michal Krol
59a70c364d tgsi: Add ureg_DECL_loop(). 2009-11-24 09:05:29 +01:00
Michal Krol
5ee0d9f632 tgsi: Account for gallium shader token representation changes. 2009-11-24 09:05:28 +01:00
Michal Krol
57221c5438 gallium: Refactor the instruction predicate TGSI token.
Rename it to tgsi_instruction_predicate -- it's no longer an extended
token. Its presence is indicated by a new flag in tgsi_instruction that
indicates whether an instruction is predicated.

Also, change predicate index representation to match the other
tokens that specify register indices.
2009-11-24 09:05:26 +01:00
Ian Romanick
b12ca6b87b i915: Initialize Length and Offset fields when mapping a buffer object
This fixes an assertion failure in _mesa_MapBufferARB.

Fixes bugzilla #25253.
2009-11-23 23:14:49 -08:00
Ian Romanick
da0883114b shaderutil: Fix detection of shaders
Check for versions >= 2.0 (because some drivers return 3.0), and return
GL_FALSE if shaders are not detected.
2009-11-23 18:33:50 -08:00
Dave Airlie
2176b3ed9a r300: fix swtcl bo leak problem.
We can get a lot of swtcl bo allocations - need to probably abstract
this a bit further.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-24 11:56:45 +10:00
Dave Airlie
bd13e6e5e2 radeon/r200/r300/r600: make bo mapping be explicit
This moves the bo mapping outside the DMA layer and makes it explicit,
this should in theory make it simpler to split the clean up the dma/cmdbuf
linkage that I created before that is broken.

Tested on: r600, rv380 (tcl/no-tcl), rv200 (tcl/no-tcl)

Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-24 11:38:36 +10:00
Brian Paul
863ad9a683 mesa: use gcc __builtin_popcount() 2009-11-23 18:09:46 -07:00
Brian Paul
8d80b5400a r300g: use util_bitcount() 2009-11-23 18:06:19 -07:00
Brian Paul
0a27c7b963 egl: use util_bitcount() 2009-11-23 18:04:47 -07:00
Brian Paul
15740eb03c gallium/util: added util_bitcount() 2009-11-23 18:04:22 -07:00
Jakob Bornecrantz
acc51ac0ac svga: Filter out pendantic and ansi flags
Rather have the driver compile without the flags then
having to disable them.
2009-11-24 01:16:17 +01:00
Vinson Lee
326b66d724 glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore. 2009-11-24 01:23:12 -05:00
Vinson Lee
364070b1f2 dri: Fix potential null pointer deference in dri_put_drawable. 2009-11-24 00:57:55 -05:00
Maciej Cencora
5173d14cb5 Merge commit 'origin/mesa_7_7_branch' 2009-11-23 22:14:48 +01:00
Maciej Cencora
960464e42d radeon: fix errors in miptree related function
- typo
- memory leak
- off by one (spotted by airlied)
2009-11-23 21:59:08 +01:00
Maciej Cencora
635823d267 Merge branch 'mesa_7_7_branch' of http://anongit.freedesktop.org/git/mesa/mesa into mesa_7_7_branch 2009-11-23 21:28:22 +01:00