Commit graph

7385 commits

Author SHA1 Message Date
Younes Manton
69c3ad3fc1 vl: Use pipe_surface instead of pipe_texture in interfaces. 2010-03-12 12:38:33 -05:00
Younes Manton
299407aaa3 vl: Get rid of pipe_video_surface. 2010-03-12 12:09:44 -05:00
Younes Manton
81badd5029 gallium: Add common video format enums. 2010-03-12 11:20:06 -05:00
Younes Manton
a8238bb08a Merge remote branch 'origin/master' into pipe-video
Conflicts:
	configure.ac
	src/gallium/auxiliary/vl/Makefile
	src/gallium/auxiliary/vl/SConscript
	src/gallium/auxiliary/vl/vl_compositor.c
	src/gallium/auxiliary/vl/vl_compositor.h
	src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
	src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.h
	src/gallium/drivers/nouveau/nouveau_winsys.h
	src/gallium/drivers/softpipe/sp_video_context.c
	src/gallium/include/pipe/p_video_state.h
	src/gallium/include/state_tracker/drm_api.h
	src/gallium/state_trackers/xorg/xvmc/surface.c
	src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
	src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.h
	src/gallium/winsys/drm/radeon/core/radeon_drm.c
	src/gallium/winsys/g3dvl/nouveau/Makefile
2010-03-12 01:37:49 -05:00
Younes Manton
8046846489 vl: Subpicture/compositing fixes. 2010-03-05 23:26:03 -05:00
Younes Manton
8580b7a0ee vl: Add some basic debug output for XvMC.
Set the XVMC_DEBUG env var to:
	0 for no extra output
	1 for error output
	2 for warning output
	3 for tracing output
2010-03-05 23:14:49 -05:00
Brian Paul
b37c541500 softpipe: minor tweaks to texture filtering code 2010-03-04 15:58:01 -07:00
Brian Paul
2b5c5c0dcf gallivm: implement texture border color, plus tweaks to some wrap modes
The progs/test/texwrap demo looks pretty good, but there are still some
tiny differences from softpipe.  There may be a sub-pixel texcoord
interpolation error somewhere.

There's some room for optimization.  Many of the wrap modes compute
intermediate values that are constant for the texture size (see the
min/max values).  These could be computed earlier and stored somewhere
for later use.
2010-03-04 15:56:55 -07:00
Brian Paul
946edea794 gallivm: added texture border_color field 2010-03-04 15:56:55 -07:00
Brian Paul
71c0568952 gallivm: added question/comment 2010-03-04 15:56:55 -07:00
Brian Paul
ad1456a444 llvmpipe: new comment 2010-03-04 15:56:55 -07:00
Brian Paul
877f2356b2 gallivm: comments 2010-03-04 15:56:55 -07:00
Corbin Simpson
566390bedf r300g: Fix indexbuf upper limits.
Wine tends to pessimistically use ~0 for its max index, but r300s
only can go up to 2^24-1, causing the kernel checker to freak out.

Civ4 is marginally improved now. Still crashes, but not as bad.
2010-03-04 12:49:44 -08:00
Brian Paul
4c0c728b2a gallivm: rework and implement more texture wrap modes
All the texture wrap modes are now implemented for linear and nearest
sampling.

However, texture border color is not yet supported so some wrap modes
will produce int coords outside the texture bounds.  We'll get garbage
values insted of the texture border color for now.
2010-03-04 10:53:27 -07:00
Brian Paul
516bad2272 gallivm: added lp_build_fract() 2010-03-04 10:53:27 -07:00
Brian Paul
6464d81e77 gallivm: added lp_build_set_sign() 2010-03-04 10:53:26 -07:00
Brian Paul
7d230dae70 gallivm: added lp_build_negate() 2010-03-04 10:53:26 -07:00
Brian Paul
38110fd1c3 gallivm: clarify unsigned vs. signed integer type construction
The lp_int_type() function was creating an unsigned type.  So rename
that function to lp_uint_type() and create new lp_int_type() that
creates a signed type.
2010-03-04 10:53:26 -07:00
Vinson Lee
f4113012e0 wgl: Fix mingw32 build.
This was missed in commit fcf438e9e0.
2010-03-03 18:20:01 -08:00
Ian Romanick
016fc30839 Remove support for GCC older than 3.3.0
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 16:26:32 -08:00
Ian Romanick
fcf438e9e0 mesa: Remove support for creating color-index visuals
Remove the rgbMode and indexBits parameters from _mesa_create_visual
and _mesa_initialize_visual.  These values are now hardcoded to
GL_TRUE and 0.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03 12:37:04 -08:00
José Fonseca
4053d33703 llvmpipe: Store the original triangle coordinates in the debug build.
For debugging purposes only.
2010-03-03 19:55:49 +00:00
José Fonseca
4d5dd82558 llvmpipe: Ensure context is flushed when destroying shaders. 2010-03-03 19:55:49 +00:00
José Fonseca
f7e403b129 gallium: Remove PIPE_FORMAT_R8G8B8X8_SNORM. 2010-03-03 13:08:23 +00:00
José Fonseca
a5b56c8153 util: Remove PIPE_FORMAT_R8G8B8X8_SNORM information. 2010-03-03 13:08:08 +00:00
José Fonseca
c51f7a48cd r300: Remove PIPE_FORMAT_R8G8B8X8_SNORM support. 2010-03-03 13:07:56 +00:00
José Fonseca
7b7b66781b llvmpipe: Linux is no longer a dependency. Llvmpipe builds and runs fine on windows too. 2010-03-03 12:07:39 +00:00
José Fonseca
9f9b44222f llvmpipe: Centralize LLVM initialization. 2010-03-03 12:02:26 +00:00
José Fonseca
a9e6da7b4c gallivm: Centralize initialization. Fix stack alignment issues on Windows. 2010-03-03 12:02:26 +00:00
José Fonseca
f58ca9b02b llvmpipe: Update for lp_bld_init.h rename. 2010-03-03 12:02:26 +00:00
José Fonseca
af36b050eb gallivm: Rename lp_bld_misc -> lp_bld_init. 2010-03-03 12:02:26 +00:00
Corbin Simpson
4cb7642ff3 r300g: Use a macro to consolidate general state handling.
My God, I've reinvented R300_STATECHANGE. Forgive me. :C
2010-03-02 19:14:09 -08:00
Christoph Bumiller
20443f969d nv50: fix RT formats after format rename fixes
Getting rid of the evil pre-processor magic, but not changing our
internal format naming convention (at least for now).
2010-03-02 19:16:39 +01:00
José Fonseca
aaa2d548ed nouveau: Rename pipe formats.
These format uses were being hiden by pre-processor magic and were
missed in the previous search'n'replace.
2010-03-02 17:26:40 +00:00
José Fonseca
2998cad9ce Merge branch 'gallium-format-cleanup' 2010-03-02 16:00:34 +00:00
Zack Rusin
faf8215bae llvmpipe: improve based on review from Jose and fix else clauses
else was broken in the outter most else statemants, plus the code
didn't need an inverted mask to compute the inverse of the current
condition.
2010-03-02 10:19:56 -05:00
Keith Whitwell
0c616da241 llvmpipe: remove some ifdefs
No longer any need to protect expensive asserts with #ifdef DEBUG.
2010-03-02 15:03:09 +00:00
Keith Whitwell
5fe2ce28b6 llvmpipe: reorganize transfer usage
Move transfer creation and mapping to the "scene" object, and out of
the rasterizer.  The rasterizer operates on already-mapped
framebuffers only, and no longer needs a screen or context pointer.

The scene object has access to a pipe_context, and this reorg prepares
for moving transfer functionality from the screen to the context.
2010-03-02 15:03:09 +00:00
Michal Krol
4ca70c489b Merge branch 'gallium-no-rhw-position'
Conflicts:
	src/gallium/drivers/r300/r300_blit.c
	src/gallium/drivers/r300/r300_emit.c
	src/gallium/drivers/r300/r300_state_derived.c
2010-03-02 13:35:30 +01:00
José Fonseca
7a31bed4b1 util: Tweak comment for D3D10-like formats. 2010-03-02 11:30:23 +00:00
José Fonseca
4028fab892 gdi: Rename pipe formats. 2010-03-02 10:21:55 +00:00
José Fonseca
907d5611b2 drm/nouveau: Rename pipe formats. 2010-03-02 10:21:55 +00:00
José Fonseca
b34d138d84 svga: Rename pipe formats. 2010-03-02 10:21:55 +00:00
José Fonseca
b7b07b0029 softpipe: Rename pipe formats. 2010-03-02 10:21:54 +00:00
José Fonseca
b5cfa6f196 r300: Rename pipe formats. 2010-03-02 10:21:21 +00:00
Marek Olšák
ff9ddf4d39 util/blitter: Fix the viewport transformation for Z coordinates
When clearing buffers, the depth is specified in the range [0, 1]
and should be passed through blitter "as is".
2010-03-02 10:27:37 +01:00
Vinson Lee
c1c7fa5192 i915g: Add assert to check for null pointer dereference. 2010-03-02 01:15:02 -08:00
Zack Rusin
80f3cc36c5 llvmpipe: implement some control-flow
implements if/else/endif constructs and lays down the code for looping
and others. we create a conditional execution mask which decides which
of the four inputs are enabled for any store. it's used only if an
execution mask is present, otherwise we go through a direct store.
2010-03-01 22:13:22 -05:00
George Sapountzis
d41ab94d35 glapi.c: misc coscmetic for FreeTSD
- move out of of the dispatch/context block to after corresponding init functions

- use more consistent naming with corresponding init functions

- XXX use _glthread_InitTSD() vs (void)_glthread_GetTSD() in _glapi_check_multithread() XXX
2010-03-01 20:54:20 +02:00
José Fonseca
c9f1db0a03 nouveau: Rename pipe formats. 2010-03-01 18:53:32 +00:00