Commit graph

22853 commits

Author SHA1 Message Date
Ben Skeggs
8337c78d91 nv50: change some magic reg, makes more things work
No real idea what this does.. but a lot of things that misrendered and
made the GPU throw a DATA_ERROR now work..  I'm wondering what side-effects
we'll see from this :)
2009-01-13 13:57:22 +10:00
Ben Skeggs
e8b0088692 nv50: add DXTn formats 2009-01-13 13:57:22 +10:00
Ben Skeggs
68bb26b62d nv50: shadow mapping 2009-01-13 13:57:22 +10:00
Ben Skeggs
f7c2010525 nv50: aniso 2009-01-13 13:57:22 +10:00
Ben Skeggs
918fc55e5f nv50: occlusion queries
Not quite working, but the general idea is right I think.
2009-01-13 13:57:22 +10:00
Ben Skeggs
d2442016af nv50: implement KIL enough for progs/fp/kil to work 2009-01-13 13:57:22 +10:00
Jonathan Adamczewski
068107b5ad cell: Add missing suffix to SHUFFLE macro 2009-01-13 14:02:18 +11:00
Jonathan Adamczewski
402e6752b5 cell: allocate batch buffers w/ 16-byte alignment
Replace cell_batch{align,alloc)*() with cell_batch_alloc16(), allocating
multiples of 16 bytes that are 16 byte aligned.

Opcodes are stored in preferred slot of SPU machine word.

Various structures are explicitly padded to 16 byte multiples.

Added STATIC_ASSERT().
2009-01-12 16:25:28 -07:00
Brian Paul
eeeed45c2c i965: fix glDrawPixels Z coordinate in intel_texture_drawpixels().
As for glBitmap, it needs to be an NDC coord in [-1,1].
2009-01-12 15:47:57 -07:00
Brian Paul
3a5463d158 i965: fix broken glBitmap + depth test
When we use the do_blit_bitmap() function, it seems the fragment Z is always
1.0.  If depth testing is on, that means that bitmap fragments are often
occluded by other rendering.  So, the bitmap doesn't appear even if
rasterpos.Z==0.
The fix is to use the intel_texture_bitmap() path when depth testing is on.
Also, fix the incorrect Z coordinate.  It needs to be an NDC value in [-1,1].
2009-01-12 15:43:54 -07:00
Brian Paul
de35989cde i965: fix broken ARB fp fog options
Just call _mesa_append_fog_code() if the fragment program's FogOption is
not GL_NONE.
This allows us to remove some unnecessary i965 fog code.
Note, the arbfplight.c demo can be used to test this (see DO_FRAGMENT_FOG).
2009-01-12 14:24:45 -07:00
Keith Whitwell
a2d5031b1e dri: make dri_display_surface static 2009-01-12 19:38:39 +00:00
Keith Whitwell
3e492acc57 dri: pull dri_swapbuffers.c into dri_drawable.c 2009-01-12 19:33:44 +00:00
Dan Nicholson
29f603a270 autoconf: Only _GNU_SOURCE feature test macro needed on gnu systems
According to feature_test_macros(7), _GNU_SOURCE encompasses all the
other feature macros we were setting, so we can just dispose of them.
2009-01-12 11:10:31 -08:00
Julien Cristau
7f7fc3e3af mesa: match against *-gnu* instead of *-gnu in configure.ac
Fixes build on arm-linux-gnueabi
2009-01-12 11:08:02 -08:00
Thomas Henn
a0318d7f8e windows: updated VC8 project files 2009-01-12 10:56:42 -07:00
Brian Paul
06fdb6a74c glsl: better fix for for-loop scope issue (commit 6333005f7a) 2009-01-12 08:52:54 -07:00
Brian Paul
88fdddcbbe windows: added new sources for 7.3 (may be more, needs testing) 2009-01-12 08:36:21 -07:00
Brian Paul
1598be5083 mesa: add osmesa.pc.in to tarball list 2009-01-12 08:36:21 -07:00
Michel Dänzer
45604ffac7 gallivm: Make sure the bitcode buffer is followed by a 0 byte.
May fail to parse otherwise.
2009-01-12 15:05:05 +01:00
Keith Whitwell
3425257e14 dri: rename dri1 directory 2009-01-12 11:52:13 +00:00
Keith Whitwell
782eae916d dri: sketch of new device-independent glx/dri state tracker 2009-01-12 11:51:57 +00:00
Michel Dänzer
f43e621e22 gallivm: Print error message from ParseBitcodeFile() in case it fails. 2009-01-12 12:39:31 +01:00
Michel Dänzer
359bbe7432 gallivm: Explicitly specify the LLVM components we need. 2009-01-12 12:37:13 +01:00
Michel Dänzer
f586c31fa6 gallivm: Adapt to header file move in LLVM 2.4. 2009-01-12 12:34:27 +01:00
Ben Skeggs
7a90ace9c8 nv50: make rtt work again 2009-01-12 16:59:35 +10:00
Ben Skeggs
ac6516101b nv50: fix handling of depth textures 2009-01-12 16:59:35 +10:00
Ben Skeggs
39bcc39717 nv50: another typo.. 2009-01-12 16:59:35 +10:00
Ben Skeggs
ecb2eb4c99 nouveau: fix warning 2009-01-12 16:59:34 +10:00
Ben Skeggs
73f1857aee nv50: fix assertion failure 2009-01-12 16:59:34 +10:00
Ben Skeggs
f935f35287 nv50: remove previous hack to manage tiled surfaces 2009-01-12 16:59:34 +10:00
Ben Skeggs
515c3d9bc1 nv50: fix a typo and a thinko 2009-01-12 16:59:34 +10:00
Ben Skeggs
ed8f0b753b nv50: enable npot textures 2009-01-12 16:59:34 +10:00
Ben Skeggs
b01d0077af nv50: disable shader debug 2009-01-12 16:59:34 +10:00
Ben Skeggs
08b6534bc8 nv50: any cpu access to a texture is done on its backing images
Still a little dodgy:
	- RTT will hit an assertion (hopefully!) and fail
	- 3D textures with depth >= 32 will cause bad things to happen
2009-01-12 16:59:33 +10:00
Ben Skeggs
103020f264 nv50: create buffers for each image that makes up a texture 2009-01-12 16:59:33 +10:00
Ben Skeggs
df266471b1 nouveau: return buffer map to something sane.
Sorry, but no, we're not doing this..  Correctness always takes precedence
over speed.  Implement this higher up where you know it's safe to do so,
and doesn't break other things in the process.
2009-01-12 16:59:33 +10:00
Ben Skeggs
7b6fb34e9d nouveau: use usage, not uninitialised flags value... 2009-01-12 16:59:33 +10:00
Matthieu Herrb
436024561a Build fixes for gcc 2.95 2009-01-11 16:56:34 -07:00
Matthieu Herrb
0f0922f93c Big endian fixes. 2009-01-11 16:44:54 -07:00
Matthieu Herrb
33f6dc3c33 build fix on big endian OpenBSD architectures. 2009-01-11 16:44:52 -07:00
Matthieu Herrb
356428d4e4 replace nearbyint() by rint() for now. 2009-01-11 16:44:50 -07:00
Owain G. Ainsworth
b4866f8a52 Fix build with GCC 2.95. 2009-01-11 16:44:40 -07:00
Matthieu Herrb
297a9606ea __builtin_expect is a gcc 3.x feature. define it out for gcc 2.95.
Patch suggested by miod@. Thanks.
2009-01-11 16:44:36 -07:00
Brian Paul
516dd9b361 cell: optimize unpack_colors() function, saving 12 cycles 2009-01-11 15:28:38 -07:00
Brian Paul
6324c77e01 cell: move color unpacking code into separate function 2009-01-11 15:18:28 -07:00
Brian Paul
b27eb7cb4f cell: re-order the z/stencil fetch/extract/convert instructions for better perf
The new instruction order is 10 cycles faster.
2009-01-11 15:11:00 -07:00
Brian Paul
c4a782041b cell: datatype clean-ups in SPE rtasm 2009-01-11 14:22:00 -07:00
Brian Paul
c73b8c4131 cell: simplify the 'optional register' code 2009-01-11 14:06:39 -07:00
Brian Paul
91fac69537 cell: asst datatype clean-ups 2009-01-11 13:52:58 -07:00