Commit graph

32413 commits

Author SHA1 Message Date
Michel Dänzer
8561bec0ac vmwgfx/dri: Fix SCons build. 2010-03-12 18:54:23 +01:00
Michel Dänzer
51a51899d0 st/dri: Always try to set up R5G6B5 configs.
Allows compiz to work in depth 16.

The DRI2 getBuffersWithFormat hook is only required for 16/32 bit depth
buffers, for colour buffers the only requirement is that the format matches
the drawable depth, which we can't check here.

(cherry picked from commit c50477c255)
2010-03-12 18:52:07 +01:00
Alex Deucher
d1ca1599f0 r100/r200/r300/r300: only enable accelerated pixel ops with kms
fixes fdo bug 27043
2010-03-12 11:19:36 -05:00
Luc Verhaegen
4b598ce226 dri/r700: include shader/programopt.h instead of programopt.c.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:57:55 -07:00
Jeff Smith
9b81103b1a Add programs to .gitignore in redbook
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:57:34 -07:00
Jeff Smith
3aa8692883 Add programs to .gitignore in xdemos
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:57:06 -07:00
Jeff Smith
9787060423 Add -L$(libdir) for xdemos and egl so that the right libX11 is found
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:56:06 -07:00
Jeff Smith
fab1f07d6a Grammar and spelling fixes
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:55:05 -07:00
Michal Krol
faa1481885 cso: Remove set/save/restore_vertex_sampler_textures(). 2010-03-12 14:43:11 +01:00
Michal Krol
b8030c6561 st/mesa: Associate a sampler view with an st texture object.
Lazily create a sampler view when the texture is being bound
for the first time.
2010-03-12 14:38:23 +01:00
Michal Krol
08f89988c8 cso: Add entry points for vertex/fragment sampler views. 2010-03-12 14:38:23 +01:00
Keith Whitwell
475ab3b5af st/xorg: context transfers 2010-03-12 12:15:09 +00:00
Marek Olšák
c16d04bd29 gallium: fix BGRA vertex color swizzles
The mapping for vertex_array_bgra:
(gl -> st -> translate)
GL_RGBA -> PIPE_FORMAT_R8G8B8A8 (RGBA) -> no swizzle (XYZW)
GL_BGRA -> PIPE_FORMAT_A8R8G8B8 (ARGB) -> ZYXW (BGRA again??)

Iẗ́'s pretty clear that PIPE_FORMAT_A8R8G8B8 here is wrong. This commit
fixes the pipe format and removes obvious workarounds in util/translate.

Tested with: softpipe, llvmpipe, r300g.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-03-12 12:00:27 +00:00
Corbin Simpson
50876ddaaf st/mesa: Always recalculate invalid index bounds.
These should always be sanitized before heading towards the pipe driver,
and if the calling function explicitly marked them as invalid, we need
to regenerate them.

Allows r300g to properly pass a bit more of Wine's d3d9 testing without
dropping stuff on the floor.
2010-03-12 02:54:10 -08:00
Corbin Simpson
a48e17ccb0 st/mesa: Update debug infos.
Still commented out, of course.
2010-03-12 02:54:10 -08:00
Corbin Simpson
e42b2f7685 r300g: Properly clamp index limits.
Make the kernel even less likely to barf on us.
2010-03-12 02:54:10 -08:00
Keith Whitwell
915b3529b9 Merge commit 'origin/gallium-context-transfers-2' 2010-03-12 09:08:40 +00:00
Keith Whitwell
51bff09f72 mesa: fix linux-dri and autogen builds since sw-api-2 merge 2010-03-12 09:05:59 +00:00
Vinson Lee
39c2d3ecd9 radeon: Fix memory leaks from early return. 2010-03-11 21:55:44 -08:00
Vinson Lee
e4d10dada0 llvmpipe: Remove unnecessary header. 2010-03-11 20:52:38 -08:00
Brian Paul
e574b79485 gallivm: checkpoint WIP cubemap code 2010-03-11 16:26:52 -07:00
Brian Paul
0b3bb6318e gallivm: added lp_build_sum_vector() 2010-03-11 16:26:12 -07:00
Brian Paul
c72a3b4f2f softpipe: further tighen up sample_cube()
The code can fairly easily be translated to llvm...
2010-03-11 16:23:37 -07:00
Brian Paul
9ffdc78d1a softpipe: tighten up the code in sample_cube() 2010-03-11 15:37:35 -07:00
Brian Paul
5d5c524cbe st/mesa: s/BUFFER_FRONT_LEFT/surfIndex/ 2010-03-11 14:51:02 -07:00
Brian Paul
26ae4aab6a gallivm: enable 3D texture sampling 2010-03-11 14:49:01 -07:00
Brian Paul
e9f654d2fb progs/demos: added 'f' key to toggle filtering mode in stex3d.c 2010-03-11 14:49:01 -07:00
Brian Paul
53efb634a0 gallivm/llvmpipe: replace 'int stride' with 'int row_stride[MAX_LEVELS]'
The stride depends on the mipmap level.  Rename to row_stride to
distinguish from img_stride for 3D textures.

Fixes incorrect texel addressing in small mipmap levels.
2010-03-11 14:49:01 -07:00
Brian Paul
272f399434 llvmpipe: fix comment typo 2010-03-11 14:49:00 -07:00
Brian Paul
489af2a3ba gallivm/llvmpipe: include os_llvm.h instead of llvm-c/Core.h 2010-03-11 14:49:00 -07:00
Brian Paul
4833b0f199 gallium/os: wrapper for llvm-c/Core.h and #define HAVE_LLVM if needed 2010-03-11 14:49:00 -07:00
Brian Paul
c472ce5302 st/mesa: fix st_set_framebuffer_surface() state validation
Set the _NEW_BUFFERS flag and remove the code which updated the
parent framebuffer size.  Normal Mesa state validation will do that.

Fixes issues with Warsow on r300g and possibly other bugs.
2010-03-11 13:44:53 -07:00
Jakob Bornecrantz
683a099954 st/xorg: Fixup configure
Make sure we always test for XEXT version.
Make sure that the user has a recent version of libkms and libdrm installed.

Note that the st/xorg code requires so new versions to work but these are
needed to make a proper vmwgfx_drv.so driver which is the only real user.

Cherry picked from 46cf606cd3
Conflicts:

	configure.ac
2010-03-11 19:30:16 +00:00
Alex Deucher
644a05c6cb r200: support additional blit formats
swizzle in the pixel shader
2010-03-11 13:49:57 -05:00
Brian Paul
d645119098 gallivm: fix some bugs on the 1D texture paths 2010-03-11 11:17:37 -07:00
Roland Scheidegger
ed1c69710c st/mesa: don't enable extensions which aren't actually supported
don't enable APPLE_client_storage, TDFX_texture_compression_FXT1,
EXT_cull_vertex, NV_vertex_program, NV_vertex_program1_1 -
the latter two might work somewhat with some luck.
Also don't enable ARB_imaging.
2010-03-11 18:54:14 +01:00
Roland Scheidegger
dfeab49a96 cell: adapt to context texture transfers (untested) 2010-03-11 18:40:25 +01:00
Christoph Bumiller
a671a9eed0 nv50: take format from sampler view, not the referenced texture 2010-03-11 17:31:51 +01:00
Christoph Bumiller
9e9839bd04 nv50: put correct value into the TIC MAX_LEVEL field 2010-03-11 17:31:49 +01:00
Christoph Bumiller
4da5d369fb nv50: fix damage from merging master into sampler-view
Fixed the state array sizes at 3 (instead of PIPE_SHADER_TYPES)
because we'll never have domain and hull shaders on nv50; also
the numbering doesn't correspond to the hw numbering.
2010-03-11 17:27:12 +01:00
Keith Whitwell
d35ecca5ee gallium: remove pipe_context member from pipe_transfer
There was very little use for this beyond permitting the
pipe_context::tex_transfer_destroy() function to omit the pipe_context
argument.

This change adds the pipe_context argument into tex_transfer_destroy()
so that it looks like other pipe_context functions, and removes the
pipe_context pointer from pipe_transfer.
2010-03-11 16:18:50 +00:00
Karl Schultz
560d375006 windows: Add new file to project file. 2010-03-11 09:17:30 -07:00
Brian Paul
bff128ff9c ARB prog parser: added (float) casts and regenerate files 2010-03-11 09:08:58 -07:00
Brian Paul
2410125d07 gallivm: include tgsi_dump.h to silence warning 2010-03-11 08:52:03 -07:00
Brian Paul
7b42379b71 gallivm: move declarations to silence unused var warnings 2010-03-11 08:51:44 -07:00
Brian Paul
0c92dfe7f3 gallium/util: use memset() to initialize vars to avoid warnings 2010-03-11 08:51:18 -07:00
Brian Paul
25ba04c891 svga: use memset() to initialize u to avoid warnings 2010-03-11 08:50:39 -07:00
José Fonseca
e24e5324ed gallivm: Use bitmasks for scalar masks.
We could use single 1 bit conditions for scalar masks, but a lot of code
expects masks. The compiler easily optimzes away masks
extensions/truncations so consistency is preferable.

We can revisit this when LLVM backends have more support for vector
conditions.
2010-03-11 15:42:41 +00:00
José Fonseca
99f11f6530 gallivm: Handle scalar types in lp_build_*_type. 2010-03-11 15:42:41 +00:00
Chia-I Wu
021cdd698b mesa/es: Validate the state in st_DrawTex.
Without the validation, the function might draw with outdated textures.
2010-03-11 23:31:18 +08:00