Commit graph

22853 commits

Author SHA1 Message Date
José Fonseca
e228433823 Merge commit 'origin/gallium-0.1' into gallium-0.2 2008-12-31 13:06:22 +00:00
José Fonseca
43d70a12d4 i915: Avoid ptr->int conversion. 2008-12-31 13:02:06 +00:00
José Fonseca
2f24bc6984 draw: Avoid integer overflow converting pointers on 64bit archs.
Not really an error, as we only care for the lower 4 bits.
2008-12-31 13:02:06 +00:00
Eric Anholt
bfebeffc00 intel: Share passthrough transform setup between glBitmap and glDrawPixels.
The DrawPixels path was missing glViewport care, so blender's toolbar icons
would go to the wrong places.

Bug #19118.
2008-12-31 00:35:17 -08:00
Eric Anholt
e1a9217554 intel: Add support for glBitmap as metaops using GL calls.
This lets us avoid software fallbacks when clients forget to turn some state
off (engine demo) or just do crazy things to test conformance (OGLC).

This should probably be brought into mesa generic code so other drivers can
make use of it.

Bug #19016.
2008-12-31 00:10:29 -08:00
Brian Paul
c789bd376f Merge commit 'origin/master' into gallium-0.2
Conflicts:

	src/mesa/main/config.h
2008-12-30 18:01:15 -07:00
Brian Paul
e8d7db31e2 mesa: fix bug in evaluation of structure fields
Fixes incorrect size information.  See bug 19273.
2008-12-30 17:50:39 -07:00
Brian Paul
c6537ac8b8 mesa: allow variable indexing into the predefined uniform variable arrays
This allows code such as "vec4 a = gl_LightSource[i].ambient;" to work.

When a built-in uniform array is indexed with a variable index we need to
"unroll" the whole array into the parameter list (aka constant buffer) because
we don't know which elements may be accessed at compile-time.  In the case of
the gl_LightSource array of size [8], we emit 64 state references into the
parameter array (8 elements times 8 vec4s per gl_LightSourceParameters
struct).

Previously, we only allowed constant-indexed references to uniform arrays
(such as gl_LightSource[2].position) which resulted in a single state reference
being added to the parameter array, not 64.  We still optimize this case.

Users should be aware that using "gl_LightSource[i].ambient" in their shaders
is a bit expensive since state validation will involve updating all 64
light source entries in the parameter list.
2008-12-30 17:11:32 -07:00
Brian Paul
ca0540e25c mesa: better error message when running out of GLSL samplers 2008-12-30 17:03:09 -07:00
Brian Paul
6f346ec0b8 mesa: comments for some state vars 2008-12-30 17:00:36 -07:00
Brian Paul
432e9fa852 mesa: increase max constants/uniforms to 256 (vec4 vectors) 2008-12-30 17:00:06 -07:00
José Fonseca
369115e4c7 gallium: Initialize var before use. 2008-12-30 19:21:30 +00:00
José Fonseca
70894676c2 glut: List new source file in sconscript. 2008-12-30 17:22:24 +00:00
José Fonseca
9972d7147b mesa: Do not specify types in bitfields.
As advised by gcc -pedantic.
2008-12-30 17:21:25 +00:00
José Fonseca
72f993b5b1 draw: Do not specify types in bitfields.
As advised by gcc -pedantic.
2008-12-30 17:21:15 +00:00
José Fonseca
0e0fb49c45 gallium: Remove unused variables. 2008-12-30 17:15:34 +00:00
José Fonseca
b3b7c757a9 gallium: Don't redefine INLINE.
INLINE is commonly used in third-party headers.
2008-12-30 17:14:48 +00:00
José Fonseca
975e58499a scons: Specify C99 throughout all the tree.
MSVC may not support full C99, but supports more than plain C90. And
-pedantic without -std=c99 generates too many spurious warnings
(specially C++ style comments) to be of any use.

Note that using certain C99 features in the cross-platform parts of Gallium
is still not possible; namely mid-of-scope variable declarations and named
structure initializers will break MSVC builds.
2008-12-30 17:13:38 +00:00
José Fonseca
42d0079002 rtasm: Remove spurious semi-colons after function bodies. 2008-12-30 17:06:51 +00:00
José Fonseca
8e63beff56 gdi: Remove accidental keypresses. 2008-12-30 16:35:46 +00:00
Brian Paul
49a3fabed8 mesa: updated compilation documentation 2008-12-30 07:57:16 -07:00
Brian Paul
c9122072fc demos: minor fixes to twoside.c glsl demo 2008-12-30 07:24:19 -07:00
Xiang, Haihao
0c4346e632 intel: disable ATI_texture_env_combine3 for i830( and related device).
Thanks to Eric for pointing it out.
2008-12-30 11:25:45 +08:00
Eric Anholt
6c01500228 dri: Fix driWaitForMSC32 when divisor >= 2 and msc < 0.
We'd come up with a negative remainder, while we were looking for the positive
version of it in the loop conditional.  And, since the "did we hit our target"
break was disabled for the target_msc == 0 ("Just make the divisor/remainder
work") path, we'd never exit.

Simplify the code by just using int64_t all over instead of trying to do it
in a u32 space.
2008-12-29 12:09:24 -08:00
Alex Deucher
c40cd2ccdd R300: missing semicolon 2008-12-29 12:28:12 -05:00
Xiang, Haihao
0674a23854 intel: enable ATI_texture_env_combine3. Fixes #17707 2008-12-29 09:32:51 +08:00
Dave Airlie
0d1f90c75e r300: remove the unknowns from the indx_buffer code 2008-12-28 16:48:36 +10:00
Brian Paul
49c40b10c7 gallium: implement TGSI_OPCODE_DP2A, add sqrt to NRM3/NRM4 2008-12-24 14:14:07 +01:00
Xiang, Haihao
129b6bc4e3 i915: separate the fog term from the specular color term.
Previously fog parameter and specular color are packed into the
same dword. Note specular color should be packed in BGRA for device,
so if fog parameter and specular color all are present, fog parameter
will dirty the alpha term of specular color. This fixes rendering
issue when playing 'Yo Frankie' on 915/945.
2008-12-24 09:26:46 +08:00
Eric Anholt
15b2e0d138 intel: Fix glBitmap clipping for DRI1. 2008-12-23 15:01:53 -08:00
Dave Airlie
b359350017 Remove third buffer support from Mesa.
This is part of the deprecated pageflipping infrastructure.
2008-12-23 15:01:53 -08:00
Keith Whitwell
fc4cea08fe tgsi: fix incomplete rename of loop counter variable 2008-12-23 18:16:49 +00:00
Alan Hourihane
53ce80e7cc egl: fix egl closure 2008-12-23 15:33:46 +00:00
Keith Whitwell
f5d4274b4a draw: allow driver-override of draw_need_pipeline() 2008-12-23 15:11:41 +00:00
Alan Hourihane
04ef91af8b egl: fix startup query version 2008-12-23 14:18:36 +00:00
Michal Krol
ed7ba03256 tgsi: Dump indirect register swizzle. 2008-12-23 15:13:59 +01:00
Alan Hourihane
9003922593 egl: support GLXFBConfigs, pbuffers and pixmaps. 2008-12-23 13:20:18 +00:00
Michal Krol
4b3c74b4d6 tgsi: Return 0.0 for negative constant register indices. 2008-12-22 21:43:07 +01:00
Michal Krol
b8e68f2e55 tgsi: Keep address register as a floating point. 2008-12-22 21:43:05 +01:00
José Fonseca
417a78bdad softpipe: Don't fill surfaces's winsys fields.
This is sometimes checked to distinguish between texture views and
(deprecated) standalone surfaces.
2008-12-22 20:23:59 +00:00
José Fonseca
fc16ba8553 softpipe: Call surface_alloc_storage to get the pipebuffer for display targets.
Otherwise blitting from display target surfaces to front screen fails in
several platforms.
2008-12-22 20:20:58 +00:00
José Fonseca
9136c9b29e Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	src/gallium/auxiliary/util/Makefile
2008-12-22 19:31:52 +00:00
José Fonseca
ce8469abeb gdi: Cleanup sconsfile. 2008-12-22 19:27:36 +00:00
Jerome Glisse
5f36c5b2c5 softpipe: initialize refcount and winsys 2008-12-22 18:56:20 +00:00
Jerome Glisse
85bc49a6f1 softpipe: convert to use texture instead of surface 2008-12-22 18:56:09 +00:00
José Fonseca
ae7e75d610 gallium: const correctness. 2008-12-22 16:55:27 +00:00
José Fonseca
229424b2d7 Ignore new tests executables. 2008-12-21 13:48:43 +00:00
José Fonseca
9127a03bcb gallium: Fix typo in define name. 2008-12-20 12:59:51 +00:00
Brian Paul
58a82ee57f Merge commit 'origin/master' into gallium-0.2 2008-12-19 16:56:56 -07:00
Brian Paul
9c8db86854 gallium: begin adapting Ian's 3D mipmap gen code to gallium utility lib
Unfinished, a big no-op for now.
2008-12-19 16:56:35 -07:00