Corbin Simpson
287bdd8e75
util: Fix bad code.
...
Uf. How embarrassing.
2009-11-28 10:45:17 -08:00
Corbin Simpson
c93dcbfea7
util: Improve bitcount.
...
Sorry for not pushing this before, it got lost in stashes.
2009-11-28 10:14:42 -08:00
Christoph Bumiller
cad14c2542
nv50: do conversion of last insn to 64 bit format first
...
Simplifies things since the second to last one will then
be converted in the subsequent pass that ensures alignment
automatically.
2009-11-27 21:29:38 +01:00
Christoph Bumiller
510fd280b5
nv50: bswap32 the polygon stipple pattern
...
The hardware wants the pattern the same way it is
passed to glPolygonStipple.
2009-11-27 21:29:22 +01:00
Christoph Bumiller
e65258abf5
gallium/util: added util_bswap32()
2009-11-27 21:28:56 +01:00
Roland Scheidegger
7fa1bcc05a
svga: fix for not using texture width/height/depth arrays
2009-11-27 17:41:42 +01:00
Roland Scheidegger
b748a9f574
r300g,llvmpipe: fix some more merge problems
2009-11-27 17:40:24 +01:00
Roland Scheidegger
c95cbd45c6
Merge branch 'width0'
...
Conflicts:
src/gallium/drivers/r300/r300_texture.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/mesa/state_tracker/st_cb_texture.c
2009-11-27 17:15:47 +01:00
Roland Scheidegger
d509f84543
gallium: fix more statetrackers/drivers for not using texture width/height/depth arrays
2009-11-26 22:51:45 +01:00
Michal Krol
884007546c
tgsi/exec: Fix orientation of DDY.
2009-11-26 20:41:46 +01:00
Michal Krol
a2c101029d
tgsi/exec: Force return from a subroutine at ENDSUB.
2009-11-26 20:41:43 +01:00
Keith Whitwell
3bae72e204
draw: Fix max_index check.
...
We want to fallback to draw splitting when vertex element indices
might be too high for atomic draw path (currently limited to 4095).
2009-11-26 20:41:41 +01:00
Michal Krol
75df599e30
tgsi/ureg: Add forgotten goto in ureg_DECL_constant().
2009-11-26 20:41:38 +01:00
José Fonseca
953b74d116
llvmpipe: Fake missing SSSE3 when simulation less capabable machines.
...
SSE3 != SSSE3 and so far we only use the later.
2009-11-26 11:16:35 +00:00
José Fonseca
da1c40260d
llvmpipe: Update/correct CPU requirements.
...
There are no hard requirements at the moment.
We don't really emit any sse3 yet. Just some ssse3.
Thanks to Roland for spotting these incorrections.
2009-11-26 11:16:34 +00:00
Roland Scheidegger
4dcdf3b9c6
Merge commit 'origin/st-shader-varients'
...
Conflicts:
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_program.c
2009-11-26 01:15:25 +01:00
José Fonseca
9e3728c858
scons: Make it work with MinGW build of LLVM 2.6.
...
LLVM 2.5 is no longer supported on windows.
2009-11-25 18:07:27 +00:00
Dave Airlie
ce56a867f7
r600: add ARB_texture_non_power_of_two support.
...
This makes the miptree rounds up to the near POT for each level for
all radeons, however since mipmaps aren't support with NPOT on previous
radeons this calculation shouldn't cause any problems. If it does
we can just make it r600 only.
I tested a few mipmap demos on r500 and they all seem to work.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-25 15:45:31 +10:00
Richard Li
11dce74030
r600 : reset stack flag with one channel only.
2009-11-24 16:00:25 -05: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
José Fonseca
f3a0615fb0
svga: Handle comment tokens when dumping.
2009-11-24 14:49:21 +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
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