Commit graph

30813 commits

Author SHA1 Message Date
Vinson Lee
507faae9e3 llvmpipe: Silence GCC 'no previous prototype' warning. 2010-02-06 00:48:18 -08:00
Vinson Lee
4e907e8bd6 i965g: Remove unnecessary headers. 2010-02-05 23:39:34 -08:00
Alan Coopersmith
8a985a988b eglplatform.h: recognize __unix as well for Solaris & other SVR4 platforms
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-02-05 19:38:16 -08:00
Zack Rusin
8109b6d313 gallium/python: support two more formats in retrace dumps
dump PIPE_FORMAT_R8G8B8A8_UNORM and PIPE_FORMAT_R16G16B16_SNORM formats.
2010-02-05 19:29:34 -05:00
Brian Paul
337d3b2b39 st/mesa: allow negative index for PROGRAM_STATE_VAR
The piglit vp-address-01 test uses negative address-relative
offsets.  In this test we're indexing into PROGRAM_STATE_VAR
which, in turn, contains references to ENV vars.

We previously fixed this issue for PROGRAM_CONSTANT.

piglit/vp-address-01 (the version from Feb 5) passes now.

(cherry picked from commit 64be837b0b)
2010-02-05 14:59:04 -07:00
Brian Paul
a636f5b4d0 mesa: debug output for ARL 2010-02-05 14:58:46 -07:00
Brian Paul
1a366701b8 docs: Fix a typo in mesa3d.org HTML.
Signed-off-by: Brian Paul <brianp@vmware.com>

(cherry picked from commit e6ee4b49c4)
2010-02-05 13:18:31 -07:00
Brian Paul
a199ccc272 osmesa: Add OSMesaColorClamp and OSMesaGetProcAddress to symbol defs.
Without this patch, the two symbols get an underscore prepended
and an "@4" appended when compiling with VC8.

Signed-off-by: Brian Paul <brianp@vmware.com>

(cherry picked from commit e65029e9b3)
2010-02-05 13:18:18 -07:00
Brian Paul
45ceabf794 progs/demos: fix typo 2010-02-05 13:16:39 -07:00
Kristian Høgsberg
077bc2fda2 egl_dri2: Use pkg-config cflags and libs from configure output
Running pkg-config in Makefiles is bad form, since it doesn't respect the
PKG_CONFIG_PATH value set at ./configure time.
2010-02-05 13:55:45 -05:00
Patrice Mandin
e423df0f0c nouveau: Fix warning for void function returning value. Add missing include for pipe_reference_init function.
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-02-05 19:42:33 +01:00
Kristian Høgsberg
da73c4d5fe glapi: Add back the reduced Noop dispatch
This got "simplified" away in e4f168a6f4.
2010-02-05 12:01:28 -05:00
Kristian Høgsberg
697e22146d glx: Don't mark the XF86DRI functions PUBLIC 2010-02-05 12:01:28 -05:00
Kristian Høgsberg
832f2d3c39 egl_dri2: Log both driver and core extensions 2010-02-05 12:01:28 -05:00
Kristian Høgsberg
9c94faeff1 egl_dri2: Audit and fix errors paths 2010-02-05 12:01:28 -05:00
Kristian Høgsberg
f27b4fadca egl_dri2: Just cast the pointer difference to an int 2010-02-05 12:01:27 -05:00
Brian Paul
f1d544d6a6 st/mesa: 'fix' point coord semantic info
This fixes the progs/glsl/pointcoord.c demo.  But this isn't a proper fix.
We really need a TGSI_SEMANTIC_POINT_COORD label so that the draw module
can determine which fragment input / vertex output slot needs to be set
up with the point coordinate info.  We've been using generic slot 0 so far.

This would also require telling the draw module about fragment shaders
(something it doesn't have at this time).
2010-02-05 10:00:00 -07:00
Brian Paul
cea2b8d656 tgsi: remove special-case code for fragment position
Since the origin_lower_left / pixel_center_origin changes, we need
to use the fragcoord info that's set up in setup_fragcoord_coeff().
The code in exec_declaration() was clobbering the the interpolated
fragment position.

Fixes progs/glsl/fragcoord.c demo.
2010-02-05 10:00:00 -07:00
Chris Li
476b668ccc allow make to build lp_test_* for llvmpipe
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-02-05 15:34:28 +00:00
José Fonseca
ad60552ca1 llvmpipe: Disable multithreading on windows. 2010-02-05 13:56:01 +00:00
José Fonseca
e95e5caee6 os: Don't assert on missing implementation of barrier init/destroy. Just usage. 2010-02-05 13:54:21 +00:00
José Fonseca
8eda504203 Merge remote branch 'origin/master' 2010-02-05 13:50:24 +00:00
José Fonseca
a1af8eec66 Merge remote branch 'origin/lp-binning'
Conflicts:
	src/gallium/auxiliary/util/u_dl.c
	src/gallium/auxiliary/util/u_time.h
	src/gallium/drivers/llvmpipe/lp_state_derived.c
	src/gallium/drivers/llvmpipe/lp_state_surface.c
	src/gallium/drivers/llvmpipe/lp_tex_cache.c
	src/gallium/drivers/llvmpipe/lp_tile_cache.c
2010-02-05 13:48:35 +00:00
Pauli Nieminen
6785a8aaf4 r200: Optimize polygon stipple emit.
Only emit polygon stipple when the state is enabled.
2010-02-05 15:26:19 +02:00
Pauli Nieminen
05b0408489 r200: Add trace logging to r200PointSize. 2010-02-05 15:26:19 +02:00
Keith Whitwell
c036d13d7d Merge commit 'fj/mesa-next' 2010-02-05 09:50:21 +00:00
Pauli Nieminen
69f20294cd r100: Add the polygon stipple state to the state list.
This fixes glean paths test case.
2010-02-05 11:31:24 +02:00
Chia-I Wu
4f47684f75 egl: Add debug messages to config validation and matching.
It might be desirable find out which attribute went wrong.
2010-02-05 14:19:54 +08:00
Chia-I Wu
a37dc17c12 egl: Clean up eglconfig.h.
Update the comments to macros/functions.  Remove unused
_eglSetConfigAttrib.
2010-02-05 13:42:02 +08:00
Chia-I Wu
1b2b08c5f3 docs: Update the developer section of egl.html.
Mainly to add a subsection about EGL_RENDER_BUFFER.
2010-02-05 12:48:49 +08:00
Chia-I Wu
5f08eff2a7 egl: Remove egl_xdri.
egl_xdri steals code from src/glx/x11/.  This makes it broken from time
to time when there is a bigger change to the GLX code.  As egl_dri2 has
been merged, which also functions as a DRI2 driver loader, remove
egl_xdri for good.
2010-02-05 12:48:49 +08:00
Chia-I Wu
cb260e1d18 egl: Update the comments to typecast macros.
Put a note that the macros define functions and should not be ended with
a semicolon when used.
2010-02-05 11:45:01 +08:00
Chia-I Wu
a35e63382e egl_dri2: Use _EGL_DRIVER_STANDARD_TYPECASTS.
It saves the driver from defining the boring typecasts itself.
2010-02-05 11:45:01 +08:00
Chia-I Wu
b31255fbfd egl: Clarify IsLinked and IsBound.
Both a link and a binding creates a reference to the resource.  Drivers
should not destroy the resource when there is a reference.  The
difference is better described in doc/egl.html.
2010-02-05 11:45:01 +08:00
Chia-I Wu
fc5ca85a63 egl_dri2: Do not destroy linked resources.
A linked resource is stil owned by the display.
2010-02-05 11:45:01 +08:00
Chia-I Wu
7e7c1ba40b egl_dri2: Fix a snprintf warning.
The subtraction between two pointers has type unsigned int (only on
x86-64?), while the format string expects an int.
2010-02-05 11:44:49 +08:00
Chia-I Wu
8d411c9a12 egl_dri2: Add a debug print for DRI2 extensions. 2010-02-05 11:44:16 +08:00
Chia-I Wu
2eb7a2fccd configure.ac: Check for xcb-dri2 to enable EGL dri2 driver.
Check that xcb-dri2 is available before including EGL dri2 driver into
EGL_DRIVERS_DIRS.
2010-02-05 11:43:54 +08:00
Kristian Høgsberg
c6e830c393 egl: Implement eglCopyBuffers for DRI2, make pixmap and pbuffers actually work 2010-02-04 21:50:23 -05:00
Brian Paul
4ac9c80e5b mesa: change ctx->Driver.ProgramStringNotify() to return GLboolean
GL_TRUE indicates that the driver accepts the program.
GL_FALSE indicates the program can't be compiled/translated by the
driver for some reason (too many resources used, etc).

Propogate this result up to the GL API: set GL_INVALID_OPERATION
error if glProgramString() was called.  Set shader program link
status to GL_FALSE if glLinkProgram() was called.

At this point, drivers still don't do any program checking and
always return GL_TRUE.
2010-02-04 16:53:27 -07:00
Pauli Nieminen
0f763c5b00 r200: Add the polygon stipple state to the state list.
This fixes glean paths test case.
2010-02-04 23:59:21 +02:00
Pauli Nieminen
77768cdd73 r200: Add logging for glPolygonStripple. 2010-02-04 23:59:20 +02:00
Pauli Nieminen
66229ea184 radeon: Make debugging automaticaly increase logging verbosity for debug build.
DEBUG preprocessor macro is set by configure script when
--enable-debug is passed for configure. Radeon then just
increase debugging verbosity if DEBUG is set in compile
time.
2010-02-04 23:59:20 +02:00
Francisco Jerez
5b6b67eb3f Nuke the nv0x-nv2x gallium pipe drivers. 2010-02-04 22:15:22 +01:00
Francisco Jerez
bfb5dc68fc Import a classic DRI driver for nv0x-nv2x. 2010-02-04 22:14:39 +01:00
Kristian Høgsberg
42fa009e64 egl: Add driver for EGL on X with DRI2 2010-02-04 15:03:45 -05:00
José Fonseca
7b6fa78d86 scons: Eliminate mixed space/tabs. 2010-02-04 19:37:56 +00:00
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