Marek Olšák
2f5fcce933
r300g: make a local copy of framebuffer state
...
The previous more direct approach was simply incorrect.
piglit/levelclamp passes again.
2010-02-06 23:25:29 -08:00
Marek Olšák
c8b34616b3
r300g: fix color channel masks
...
glean/maskedClear passes again.
2010-02-06 23:25:29 -08:00
Marek Olšák
93b9d91124
r300g: remove useless GA_COLOR_CONTROL emit
...
Already emitted in r300_emit_draw_xxx.
2010-02-06 23:25:29 -08:00
Marek Olšák
f02aec35e7
r300g: add L8_SRGB and A8L8_SRGB texture formats
2010-02-06 23:25:29 -08:00
Pauli Nieminen
198e810a20
r200: Add some debug output to texture function.
2010-02-06 19:25:14 +02:00
Pauli Nieminen
db3460e31c
r300: Fix emit size prediction to know about primitive splitting.
...
Fixes ut2004 warnings about overflowing command buffer.
2010-02-06 19:25:13 +02:00
Pauli Nieminen
cdb0a51e8a
radeon: Add some debug output to texture function.\n
2010-02-06 19:25:13 +02:00
Pauli Nieminen
e6f2819e7a
radeon: Use _mesa_next_pow_two_32 instead of own implementation.
2010-02-06 19:25:13 +02:00
Pauli Nieminen
d41740e969
mesa/main: Add function to find next higher power of two.
...
With gcc implementation uses __builtin_clr which counts number of
leading zeros.
Fallback implementation uses bit manipulation. First it duplicates
the highest bit to all lower bits and then adds one to get the power
of two number.
2010-02-06 19:24:44 +02:00
Pauli Nieminen
f8969dd24f
radeon: Add some debug output to miptree code.
2010-02-06 19:14:21 +02:00
Pauli Nieminen
9d5f882503
radeon: Remove the loop from stride size calculation.
...
Changed stride size calculation to do the math by rounding
the value instead of loop. r600 minimum stride is 256 which
might might cause up to about 60 rounds of the loop.
2010-02-06 19:14:20 +02:00
Alan Coopersmith
78572ebcb3
Gallium: Add Solaris atomic function definitions to u_atomic.h
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-02-06 08:54:44 -08:00
Damien Lespiau
fd2378e4b0
intel: Allow L8 PBO blit uploads.
...
Bug #32810
2010-02-06 16:43:58 +01:00
Eric Anholt
c8433af711
i965: Keep the CURBE BO mapped and memcpy instead of subdataing.
...
For the tiny bis of data we generally upload through the CURBEs, the
overhead of the kernel's pagetable trickery is actually rather high.
This improves cairo-gl gnome-terminal-vim performance by 3.8%.
2010-02-06 14:10:07 +01:00
Eric Anholt
3e498207d1
i965: Reset the "need new CURBE BO" flag when we make a new CURBE bo.
...
Improves cairo-gl gnome-terminal-vim times by 11%.
2010-02-06 14:10:07 +01:00
Eric Anholt
67e5fd7397
intel: Check aperture size when doing a blit glClear.
...
Fixes failure in cairo-gl firefox-planet-gnome.
2010-02-06 14:10:07 +01:00
Eric Anholt
12d0721ae1
intel: Allow PBO acceleration for GL_RGBA8 MESA_FORMAT_ARGB8888.
...
This improves firefox-talos-svg runtimes on cairo-gl by 14%.
2010-02-06 14:10:07 +01:00
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