Michal Krol
5285de7c0f
vega: Update shader headers.
...
Drop the 1.1 version suffix.
2009-11-27 10:13:53 +01:00
Michal Krol
9a4e4e035c
python/tests: Update shader headers.
...
Drop the 1.1 version suffix.
2009-11-27 10:13:19 +01:00
Michal Krol
456b5bd5d0
svga: Update text shader header.
2009-11-27 10:11:18 +01:00
Michal Krol
72420daa21
vl: Do not emit tgsi_version token.
2009-11-27 10:07:07 +01:00
Michal Krol
e6133564bf
tgsi: Remove tgsi_version token.
2009-11-27 10:06:41 +01:00
Michal Krol
5455e88f1c
gallium: Remove tgsi_version token.
...
Not really needed, never served its purpose.
2009-11-27 09:19:01 +01:00
Michal Krol
e13add8cae
tgsi: Fix token builder.
2009-11-25 16:08:36 +01:00
Michal Krol
ea6b36ca3f
tgsi: Update raw token dumper after token definition changes.
2009-11-25 15:56:10 +01: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
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
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
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
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
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
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
Jakob Bornecrantz
86710c3334
svga: Scrub Makefiles a bit
...
Remove x86 specific hacks. Not that they will ever be used on
none x86 arches, but they are built by default. And the way the
flags where added was a hack.
2009-11-23 20:09:00 +01:00
Michal Krol
18384af749
slang: Check return value from emit_instruction().
2009-11-23 13:22:04 +01:00
Michal Krol
c511e0b844
tgsi: Clamp the source argument in micro_exp2() to avoid Inf.
2009-11-23 11:32:58 +01:00
Michal Krol
eacdd8fa75
tgsi: Remove code that actually had no effect.
2009-11-23 11:29:29 +01:00
Michal Krol
cc93fa3527
softpipe: Initialise TGSI machine's Face.
2009-11-23 10:51:07 +01:00
Michal Krol
cc35a454da
tgsi: Fix POSITION and FACE fragment shader inputs.
2009-11-23 10:49:41 +01:00
Michal Krol
b7590cde4a
tgsi: Bring BGNFOR/ENDFOR implementation up to spec.
2009-11-23 10:40:05 +01:00
Michal Krol
cde758a2b5
tgsi: Fake TXD implementation in exec.
2009-11-23 10:29:08 +01:00
Michal Krol
f359ac5486
tgsi: Add execution debugging facilities to exec.
2009-11-23 10:29:07 +01:00
Michal Krol
f61865799d
slang: Be more robust with memory in concat_shaders().
2009-11-23 10:29:05 +01:00
Vinson Lee
67125c7f9a
mesa: Initialize variable in _mesa_get_texel_fetch_func.
2009-11-23 01:52:59 -05:00
Vinson Lee
4b0b250aae
glx: Prevent potential null pointer deference in driCreateContext.
2009-11-23 01:30:32 -05:00
Vinson Lee
5b925b7daa
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
2009-11-23 01:09:06 -05:00
Vinson Lee
b611f639b4
glu/sgi: Fix memory leak in gluScaleImage3D.
2009-11-23 00:57:37 -05:00
Richard Li
a12b468d00
r600 : add support for shader instruction trunc and discard.
2009-11-22 21:37:44 -05:00
Dave Airlie
c3c8c40cab
r600: hopefully fix segfault.
2009-11-23 06:44:29 +10:00
Dave Airlie
f9b0f1dfa1
r600: fix inline issues
2009-11-23 06:31:29 +10:00