Commit Graph

33763 Commits

Author SHA1 Message Date
Brian Paul a2a01853f3 gallium: replace pipe_resource::_usage with pipe_resource::usage 2010-04-20 10:00:03 -06:00
Brian Paul 36c9557cae nv50: add missing idxbias param to nv50_push_elements_instanced() 2010-04-20 09:43:45 -06:00
Brian Paul a00f4e864c llvmpipe: remove call to llvmpipe_set_texture_image_layout()
This would seem to be needed but caused some regressions.
More investigation will be done.
2010-04-20 08:42:32 -06:00
José Fonseca cc822705e5 llvmpipe: Re-enable half float formats.
They should be working now, both textures and vertex/index/buffers.

This reverts commit efc69ca61c.
2010-04-20 16:27:42 +02:00
José Fonseca ec8d9523d4 gallivm: Universal format support on lp_build_fetch_rgba_aos via util_format_description::fetch_rgba_float
This therefore adds support to half float vertex buffers.
2010-04-20 16:21:08 +02:00
José Fonseca fe5a483328 gallivm: Cleanups and bugfixes to aos format translation. 2010-04-20 15:09:02 +02:00
José Fonseca 2cb0a20f67 draw: Fallback to gallivm for translation of A8R8G8B8/B8G8R8A8/R10G10B10X2/R10G10B10X2 and other formats.
These need swizzles, and bitshifts.
2010-04-20 14:02:05 +02:00
José Fonseca e08d0cc165 gallivm: New function to fetch a pixel into a 4xfloat AoS vector. 2010-04-20 13:58:45 +02:00
José Fonseca b29fcc7b3a gallivm: Bring aos format back to life.
Useful for fetching vertices for formats that are straight arrays.

This reverts commit aa364d091e.
2010-04-20 13:41:10 +02:00
José Fonseca a55ead9d01 nvfx: Fix typo. 2010-04-20 13:26:59 +02:00
José Fonseca 373f03efe7 draw: Remove draw_vs_llvm.c.
To silence some warnings.

Super-seeded by Zack's new llvm middle end.
2010-04-20 13:26:59 +02:00
Alan Hourihane 17c560d1a4 llvmpipe: silence warning 2010-04-20 10:33:56 +01:00
José Fonseca a6171a9dd9 Merge branch 'gallium-index-bias' 2010-04-20 11:07:08 +02:00
José Fonseca 3dcdca433a draw: No need to rebase for elt_bias.
As we are rebasing to min_index + elt_bias, and the vertex buffer has no
elt_bias.

I still don't know how to exercise this code. I hope this is now right.
2010-04-20 11:06:47 +02:00
José Fonseca 4e8154e866 draw: Fix cache elt_bias implementation. 2010-04-20 10:32:06 +02:00
José Fonseca 493a1bb822 gallium/docs: Make it clear that minIndex, maxIndex is exclusively a index buffer characteristic.
Unlike the indexBias which is specific to a draw call.

This are the semantics of both D3D and GL ARB_draw_elements_base_vertex
extension.
2010-04-20 10:22:28 +02:00
José Fonseca f1d3f42c47 draw: Fix typo resulting from bad regular expression in index bias addition. 2010-04-20 10:19:42 +02:00
Vinson Lee 49ba607aba draw llvm: Move dereference of pointer after NULL check. 2010-04-20 00:00:52 -07:00
Vinson Lee 11913e9798 draw llvm: Remove unnecessary header. 2010-04-19 23:58:23 -07:00
Dan Nicholson a69ef34640 egl: Fix demos to build with user specified Xlib
Commit 88be2171e7 fixed the egl demos on the stable branch, but now
they're spread out across multiple subdirectories.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2010-04-19 20:25:17 -07:00
Dan Nicholson 02224ec4e0 Merge branch '7.8'
Conflicts:
	progs/egl/Makefile

progs/egl/Makefile is gone on master with the egl demos split into
subdirectories. Will require an additional commit.
2010-04-19 20:22:48 -07:00
Dan Nicholson 88be2171e7 egl: Pass flags to locate Xlib headers and libraries
eglplatform.h pulls in Xlib.h on X11 platforms. Likewise, the egl glx
driver and egl programs needs to link to libX11. Make sure we use the
locations the user told us about.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2010-04-19 20:21:57 -07:00
Dan Nicholson 8e5effefc7 progs: Fix linking of Xlib demos for non-autoconf builds
The Xlib demos were fixed to use $(X11_LIBS) so that configure could
detect the proper directory to link the library from, but this broke
the non-autoconf builds. Give X11_LIBS a default value to fallback on.
(cherry picked from commit e40fce13e1)
2010-04-19 20:21:57 -07:00
Dan Nicholson 4e7a4bed37 Change libX11 variables to not conflict with AC_PATH_XTRA
The variable X_LIBS from AC_PATH_XTRA contains only the -L searchdir
parameter and not the -lX11 to link to Xlib. Use X11 prefixed build vars
for linking with Xlib to avoid the conflict.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
(cherry picked from commit e725ef171b)
2010-04-19 20:21:57 -07:00
Dan Nicholson 4f8bf353bd gallium: Respect user's CFLAGS for including X headers
This can break on systems that don't have a system X installation.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
(cherry picked from commit de4ee20578)

Conflicts:

	src/gallium/winsys/xlib/Makefile
2010-04-19 20:21:57 -07:00
Jeff Smith 3b693fd93f Use X_LIBS from pkg-config, instead of libdir, for locating libX11
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
(cherry picked from commit 8d86d395dc)
2010-04-19 20:21:57 -07:00
Brian Paul 35e60aed0b glapi: GL 3.x xml file
Some of the entrypoints defined in other .xml files will need to
be removed in favor of these...
2010-04-19 20:43:00 -06:00
Brian Paul 4c93cd13ba llvmpipe: remove dead code 2010-04-19 17:16:15 -06:00
Brian Paul bd329d42e8 llvmpipe: use llvmpipe_resource_stride() 2010-04-19 17:15:25 -06:00
Brian Paul 079081222a gallivm: pass 3D texture stride as an array
This should have been included with the previous commit.
2010-04-19 17:14:57 -06:00
Brian Paul f4071e55db llvmpipe: get 3D texture image stride from an array rather than computing it
This fixes broken 3D texture indexing when the height of the 3D texture
was less than 64 (the tile size).  It's simpler to pass this as an array
(as we do with the row stride) than to compute it on the fly.
2010-04-19 17:07:25 -06:00
Brian Paul 2cad62475b llvmpipe: consolidate some code in llvmpipe_set_texture_image_layout() 2010-04-19 17:07:25 -06:00
Brian Paul 202ff7db49 llvmpipe: fix rendering to 3D textures
Treat cube faces and 3D texture slices in the same manner (they're layed
out out continuously in memory).  Additional clean-ups and improvements
coming.
2010-04-19 17:07:25 -06:00
Brian Paul ee7cf9d80f llvmpipe: checkpoint: fixes for render to 3D texture 2010-04-19 17:07:25 -06:00
Brian Paul 254dd0c23f llvmpipe: another fix for surface memory allocation
The previous patch broke cube maps.
The logic is a bit clearer now.
2010-04-19 17:07:25 -06:00
Marek Olšák f189caeed0 r300g: add is_rv350 flag 2010-04-20 00:50:39 +02:00
Jesse Barnes 35489ef285 Merge branch '7.8' 2010-04-19 14:20:58 -07:00
Jesse Barnes 0a18cdb0ed DRI2: check for swapAvailable before using swap interval protocol
This should have been part of the last change...
2010-04-19 14:20:21 -07:00
Zack Rusin 7dfde3aadc draw llvm: make sure use_llvm isn't used when not defined 2010-04-19 13:33:49 -04:00
Zack Rusin e3e5faba89 draw llvm: fix typo (boolean, not bool) 2010-04-19 13:30:36 -04:00
Brian Paul 05bf77a2da llvmpipe: fix surface memory allocation bug
We weren't always allocating the right amount of memory for image tiles
for some formats (those < 32bpp).

Fixes fd.o bug 27712.
2010-04-19 11:18:51 -06:00
Jesse Barnes 64644ec3b2 Merge branch '7.8' 2010-04-19 09:56:49 -07:00
Jesse Barnes 385e2896eb DRI2: synchronize swap interval with server at startup time
In the direct rendered case, we need to tell the server our initial swap
interval.  If we don't, the local and server values will be out of sync,
since the server and client defaults may be different (as they were
before this patch).
2010-04-19 09:56:32 -07:00
Zack Rusin 4df3e76949 draw llvm: allow runtime switching of pipelines (yes/no to llvm)
use DRAW_USE_LLVM to disable or enable (default) llvm
2010-04-19 12:53:27 -04:00
Zack Rusin 7c4208c3a0 draw llvm: fix constructor mess
use just one constructor to figure out whether to use llvm.
2010-04-19 12:53:27 -04:00
Zack Rusin deee152363 llvmpipe: enable draw llvm by default 2010-04-19 12:53:27 -04:00
Brian Paul 653c681ce8 gallium/util: specify binding type for blit src texture
Fixes fd.o bug 27711.
2010-04-19 10:32:25 -06:00
Brian Paul 96b0807253 mesa: unmap the immediate mode VB before destroying it
Fixes failed assertion from fd.o bug 27713.

The assertion was added with the new resource/transfer changes.
This patch could apply to the 7.8 branch but it's not essential.
2010-04-19 10:27:57 -06:00
José Fonseca dfadf5a579 r300g: Adapt for index bias interface change. 2010-04-19 18:18:45 +02:00
José Fonseca 7c785c0d2c nvfx: Adapt for index bias interface change. 2010-04-19 18:18:28 +02:00