Brian Paul
82a2d3564a
mesa: use Elements() instead of MAX_TEXTURE_COORD_UNITS
2010-02-03 15:48:42 -07:00
Brian Paul
a32e7c487c
mesa: added tex unit assert, use Elements() macro
2010-02-03 15:48:42 -07:00
Brian Paul
cd130b0319
mesa: check for invalid texture coord unit in glGet queries
2010-02-03 15:48:42 -07:00
Brian Paul
60527ff32a
mesa: check/clamp texture/program matrix accesses
...
Further testing should reveal if any these assertions are hit...
2010-02-03 15:48:42 -07:00
Brian Paul
d82c371344
mesa: add error check for querying invalid texture matrix
2010-02-03 15:48:42 -07:00
Brian Paul
a06575aed6
mesa: use Elements() as limit in loops over texture/program matrix stacks
2010-02-03 15:48:42 -07:00
Brian Paul
376ae23c3a
mesa: add out of bounds assertions for accessing texture matrix stack
2010-02-03 15:48:41 -07:00
José Fonseca
7bd949734c
util: Cast to match the MSVC intrinsics.
...
The cast is not optional in C++.
2010-02-03 22:16:39 +00:00
José Fonseca
e0da333d6b
util: Don't include system headers inside extern "C" { ... }
...
That breaks when some of the system headers have C++ code.
2010-02-03 22:15:53 +00:00
José Fonseca
45dac0d82a
Merge branch 'gallium-embedded'
2010-02-03 18:54:13 +00:00
José Fonseca
976afaf98f
gallium/docs: Document the OS module.
2010-02-03 15:56:36 +00:00
Brian Paul
f8d824e09a
tgsi: added debugging code to catch divide by zero
2010-02-03 08:50:32 -07:00
Brian Paul
9ca6cf0f54
tgsi: convert CHECK_INF_OR_NAN to inline function
...
And disable with if (0). Inf/NaN can occur normally during program
execution. Only enable the check code when needed during debugging.
2010-02-03 08:47:09 -07:00
Francisco Jerez
2ec50d256d
mesa: Factor out the fb initialization details from _mesa_new_framebuffer.
...
This should make things easier for drivers wanting to work with a
"subclass" of gl_framebuffer.
The complementary "_mesa_initialize_framebuffer" function is now
called "_mesa_initialize_window_framebuffer" for the sake of
symmetry.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-03 08:30:09 -07:00
José Fonseca
b724694f3a
os: Also add the aligned memory prototypes to the embedded section.
2010-02-03 12:57:49 +00:00
José Fonseca
6b424a0550
util: Reimplement all utility functions in terms of the new OS abstraction.
2010-02-03 12:13:06 +00:00
José Fonseca
0b0e705712
os: New OS abstraction module.
2010-02-03 12:11:58 +00:00
Keith Whitwell
64da2aeebc
vbo: fix void * arithmetic warning
2010-02-03 11:52:14 +00:00
Francisco Jerez
db0eb3a437
vbo: Fix up in-place splitting for non-contiguous/indexed primitives.
...
The in-place splitting code wasn't dealing with index buffers at all
(and it was being called from vbo_split_prims for too big index
buffers, causing some occasional corruption).
Additionally, it wasn't taking into account primitives arrays with
non-contiguous indices (e.g. given prim[0].start = 0 and prim[1].start
= max_verts, it would happily call back the driver with (max_index -
min_index) still greater than max_verts, causing infinite recursion).
It still doesn't handle too large indexed vertex buffers: use
vbo_split_copy for that.
2010-02-03 11:38:38 +00:00
José Fonseca
630c375fe9
trace: Include the appropriate header instead of defining prototypes.
...
Avoids header when the header was included before.
2010-02-03 11:06:23 +00:00
Keith Whitwell
9f1ee5a864
progs/fpglsl: couple more tests
2010-02-03 10:36:55 +00:00
Keith Whitwell
d7b1610ced
progs/fpglsl: fp-tris for glsl
2010-02-03 10:36:55 +00:00
Keith Whitwell
84d41f3c7f
svga: fix TXD and TXL opcode translation
2010-02-03 10:36:55 +00:00
Keith Whitwell
0748fc4f03
svga: deriv insns not valid in dynamic flow control either
2010-02-03 10:36:55 +00:00
Keith Whitwell
a9cdae2ae0
svga: texture from lod zero inside dynamic branching
...
Texture derivatives are potentially undefined inside dynamic branches,
so hardwire lod zero in this case. Treating all if/endif and loop
constructs as dynamic branches.
2010-02-03 10:36:55 +00:00
Keith Whitwell
fc3efccdc6
svga: better method for generating white fs color outputs
2010-02-03 10:36:55 +00:00
Keith Whitwell
9b23e1f9a3
mesa/st: bump the gallium version number
...
This is a very informal version number, but there have been enough
changes that a bump is appropriate at this time.
2010-02-03 10:36:55 +00:00
Keith Whitwell
aac76dcea9
st/mesa: remove some floating point divides in viewport calculation
...
Compiler can't usually turn x/2.0f into x * 0.5f, though we're happy
with either.
2010-02-03 10:36:55 +00:00
José Fonseca
bd03025621
gallium-docs: Fix typo.
2010-02-03 09:04:46 +00:00
Dave Airlie
f9d734c309
r300: fix compiler bugs introduced with MRT changes.
...
the first looks like a definite bug, the second I'm not so confident
of but it works.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-03 18:58:11 +10:00
Chia-I Wu
0d089cbb48
egl: Rename _eglPreloadForEach callbacks.
...
Rename _eglPreloadFile to _eglLoaderFile, and _eglPreloadFile to
_eglLoaderFile. There are several _eglPreload* functions. The
callbacks do not belong to them and it should be better to give them a
different prefix.
2010-02-03 14:16:16 +08:00
Chia-I Wu
8e6a964411
egl: Fix a potential segfault in driver suffix matching.
...
The driver suffix might be NULL on some platforms. Perform the matching
only when there is a suffix.
2010-02-03 14:16:16 +08:00
Chia-I Wu
2287f4c52a
egl: Remove unnecessary #ifdef's.
...
There were some refactorings with the addition of EGL_DRIVERS_PATH.
They made some platform #ifdef's unnecessary.
2010-02-03 14:16:15 +08:00
Chia-I Wu
6fd8b6a9e2
egl: Ignore certain environment variables when setuid/setgid.
...
Specifically, ignore EGL_DRIVERS_PATH when an application is
setuid/setgid. And ignore EGL_DRIVER when there is a slash in it.
2010-02-03 14:16:15 +08:00
Chia-I Wu
5d8646c41f
egl: Add EGL_DRIVERS_PATH environment variable.
...
EGL_DRIVERS_PATH gives a list of colon-separated directories. The given
directories will be searched when preloading drivers.
This is based on Mike Stroyan's patch, which honors the variable in
_eglPreloadDisplayDrivers. It is extended to honor the variable also in
_eglPreloadUserDriver and _eglPreloadDefaultDriver in this version.
2010-02-03 14:16:15 +08:00
Brian Paul
6f2e9651a1
draw: remove old hard-coded shader length limits
2010-02-02 21:34:06 -07:00
Brian Paul
439036739d
tgsi: added tgsi_alloc_tokens()
2010-02-02 21:23:23 -07:00
Brian Paul
c173eb990a
draw: re-implement free_bit() with ffs()
2010-02-02 21:17:56 -07:00
Brian Paul
3d5e26ebec
draw: comments and var renaming
2010-02-02 21:16:25 -07:00
Brian Paul
5670b44f82
tgsi: fix comment
2010-02-02 18:54:53 -07:00
Brian Paul
256f7f5ab2
draw: add const qualifiers, fix return types
2010-02-02 18:54:53 -07:00
Brian Paul
d6e55520e4
softpipe: remove unnecessary #include
2010-02-02 18:54:53 -07:00
Brian Paul
c740a7da61
draw: new, updated comments
...
Try to avoid future confusion between different, but similar functions.
2010-02-02 18:54:53 -07:00
Brian Paul
60b815604e
llvmpipe: fix (potentially) broken AA points, AA lines
...
This patch duplicates the softpipe fix seen in the preceeding commit.
2010-02-02 18:54:53 -07:00
Brian Paul
54d7ec8e76
softpipe: fix broken AA points, AA lines
...
This fixes a regression when the geometry shaders branch was merged
to master with commit 89d8577fb3 .
progs/demos/pointblast and progs/redbook/anti work again.
2010-02-02 18:54:53 -07:00
Corbin Simpson
797dcc04e5
gallium/docs: Opcode refs.
...
There is a very real possibility that I may be enjoying this too much.
2010-02-02 17:07:26 -08:00
Corbin Simpson
17c2a44761
gallium/docs: TGSI notes on replication to dst, and also cleanups.
...
Slowly, surely, I'm making this better.
2010-02-02 17:03:42 -08:00
Corbin Simpson
62ca7b85ae
gallium/docs: Start turning notes into docs.
...
Yeah, what's that? You can read it? It's got, hmm, *readability*? Nice,
ain't it. :3
2010-02-02 17:03:41 -08:00
Corbin Simpson
8580522b14
gallium/docs: Add opcode formatting.
2010-02-02 17:03:41 -08:00
Brian Paul
3e572eb25e
gallium/docs: default Z texture tuple is (z,z,z,1) for OpenGL
2010-02-02 16:27:07 -07:00