Commit Graph

30463 Commits

Author SHA1 Message Date
José Fonseca ef67ad05cb scons: Use only the shared object name when linking progs.
Otherwise the whole path gets baked into the executable.
2010-02-04 09:23:30 +00:00
Vinson Lee 7713069ae3 st/mesa: Remove unnecessary headers. 2010-02-03 22:57:38 -08:00
Vinson Lee d1487dcb20 svga: Remove unnecessary header. 2010-02-03 22:44:50 -08:00
Vinson Lee c28dd492cd util: Remove unnecessary header. 2010-02-03 22:42:02 -08:00
Chia-I Wu 9a3de505dc egl: Convert drivers to use typecast macros.
Use macros to define the standard typecasts.  This saves lots of
typings.
2010-02-04 14:36:48 +08:00
Chia-I Wu bdb9e202de egl: Add macros to define typecast functions.
There are standard typecast functions that are common to most drivers.
They are used to typecast, for example, an _EGLSurface to a
driver-defined type.

This commits define _EGL_DRIVER_STANDARD_TYPECASTS and
_EGL_DRIVER_TYPECAST that should hopefully save some typings for driver
writers.
2010-02-04 14:36:48 +08:00
Vinson Lee 23b597cb6c identity: Remove unnecessary header. 2010-02-03 22:36:10 -08:00
Vinson Lee 18e00e5863 llvmpipe: Remove unnecessary header. 2010-02-03 22:33:58 -08:00
Pauli Nieminen 66d09e4a2a Revert "mesa: fix transform_points_3d_no_rot using undefined values in %xmm0"
This reverts commit 4c31632817.
2010-02-04 04:58:55 +02:00
Chia-I Wu 997316838d st/egl: Add missing headers to kms display.
Add stdio.h and util/u_inlines.h to native_kms.c.
2010-02-04 10:50:22 +08:00
Vinson Lee 4d01e8e26f st/egl: Add missing headers. 2010-02-03 18:36:07 -08:00
Vinson Lee 821b3e2302 winsys: Add missing headers. 2010-02-03 18:29:18 -08:00
Igor Oliveira f225042a86 egl: fix implicit declaration of pipe_texture_reference adding u_inlines.h 2010-02-04 10:10:17 +08:00
Igor Oliveira 88af76ce94 egl: fix wrong argument. Use loader_data instead of loader 2010-02-04 10:09:37 +08:00
Dave Airlie 3584a44270 gallium: fix more missing includes from various places
nouveau/ dri st / vmware
2010-02-04 10:52:43 +10:00
Dave Airlie adf4c1ae10 nouveau: include stdio.h and u_inlines.h in all context files since embedded changes
fixes nouveau build for me.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-04 10:03:39 +10:00
Brian Paul b2a30497cc mesa: increase number of texture units to MAX_COMBINED_TEXTURE_IMAGE_UNITS
We were misinterpretting GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS previously.

It's the number of texture units for which we need to keep state; not
just the total number of texture units addressable by the vertex shader
plus fragment shader.

Since sw Mesa independently supports 16 texture units in vertex shaders
and 16 texture units in fragment shaders, the max combined units is 32.

Note that the docs for glActiveTexture() indicate the max legal unit is
MAX(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, MAX_TEXTURE_COORDS) - 1.

A new piglit test (texunits.c) tests the various texture unit limits.

I'm pretty sure I've got this all right now, but additional reviews
are welcome...
2010-02-03 15:48:42 -07:00
Brian Paul ea81daf954 mesa: re-dimension RasterTexCoords and CoordReplace
These are limited to the number of texture coordinate units.
2010-02-03 15:48:42 -07:00
Brian Paul 89c8ff3382 mesa: added texcoord unit assertion 2010-02-03 15:48:42 -07:00
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