Commit Graph

30482 Commits

Author SHA1 Message Date
José Fonseca 9f151f93e6 scons: Only override scons CC selection in the embedded platform. 2010-02-04 19:37:30 +00:00
José Fonseca 838d9884be trace: util_stream -> os_stream 2010-02-04 18:45:25 +00:00
José Fonseca c75d64490e auxiliary: util_stream -> os_stream 2010-02-04 18:44:51 +00:00
José Fonseca 0eb8e77ffb os: Ensure header includes are outside extern "C" {}. 2010-02-04 18:24:57 +00:00
José Fonseca 5ee324ad3c util: Reimplement u_time on top of os_time. 2010-02-04 18:24:36 +00:00
José Fonseca b7b7ea9532 gallium: Add a define for deprecated function attribute. 2010-02-04 18:24:17 +00:00
José Fonseca 2ef6d311b7 os: Time abstractions.
Simplified version of u_time.[ch]
2010-02-04 18:23:49 +00:00
José Fonseca 24ea02553e os/os_memory_aligned.h: fix memory allocation alignment for 64 bits
Based on Andreia Gaita <shana@jitted.com>'s patch.
2010-02-04 18:07:22 +00:00
Brian Paul 3aba0a2875 i965g: include u_inlines.h 2010-02-04 10:07:08 -07:00
Alex Deucher 339d42b4e6 r600: reduce number of cache flushes
We don't need to flush so often. Next step
would be to move the flushing to the drm and only
flush after each command buffer rather than each
draw.
2010-02-04 10:46:36 -05:00
José Fonseca f769ab0fa6 util: Disable u_time.c implementation for embedded.
This needs to go into OS module.
2010-02-04 14:39:30 +00:00
José Fonseca d015dfb45a trace: Use u_time. 2010-02-04 14:39:30 +00:00
José Fonseca 47a080df15 gallium: Don't try to auto-detect the OS when embedded os is already pre-defined. 2010-02-04 14:39:30 +00:00
José Fonseca 9cd2abdf8b llvmpipe: Disable unit tests on embedded platforms. 2010-02-04 14:39:30 +00:00
José Fonseca 5cf88a4787 scons: Promote EMBEDDED from subsystem to full os. 2010-02-04 14:39:30 +00:00
José Fonseca 063f1238d1 util: Add missing include. 2010-02-04 14:39:30 +00:00
José Fonseca 1207098dee os: Add missing dummy threading definitions. 2010-02-04 14:39:30 +00:00
Pauli Nieminen f1b07f0220 swrast/sse: Fix _mesa_sse_transform_pointsX_3d_no_rot
PXOR user in code were causing the lowest SP float register to have NaN
values which made all math operations in that slot fail. Correct istruction
to clear float registers is XORPS which handles single precission floats
correctly.

Fixes progs/tests/fog in swrast SSE mode.

Now the correct commit instead of 66d09e4a2a which is not even close
of correct fix for the bug.
2010-02-04 13:13:52 +02:00
José Fonseca 5a743d9c51 scons: Have MinGW target MSVCRT 7.0
Necessary for _aligned_malloc/free().
2010-02-04 10:38:35 +00:00
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