Commit graph

32547 commits

Author SHA1 Message Date
Chia-I Wu
66cd38f465 st/glx: Fix framebuffer validation.
When xmesa_st_framebuffer_validate was called twice with different sets
of attachments, the second call was ignored.  Add a texture_mask to
remember which textures have been requested to make sure the missing
ones get created.
2010-03-13 17:41:45 +08:00
Chia-I Wu
418b9ac299 st/glx: Correctly set buffer_mask of a visual.
Stupid typos again..
2010-03-13 17:40:05 +08:00
Chia-I Wu
f91d8c6885 st/mesa: Set revalidate in st_framebuffer_update_attachments.
There are two conditions that a validation is required.  One is when the
the framebuffer becomes invalid.  The other is when we request for
textures that we did not request before.
2010-03-13 17:01:27 +08:00
Chia-I Wu
813c58d77e st/glx: Make xmesa_create_st_api a callback of xm_driver.
Instead of guessing the API in st/glx, let the target decide how to
create st_api.
2010-03-13 16:05:09 +08:00
Chia-I Wu
fecb97aab4 st/egl: Fix eglCopyBuffers.
Use a (real) pipe context to copy between pipe surfaces.  Fix a NULL
dereference of the temporary native surface created for copying.
2010-03-13 15:14:56 +08:00
Chia-I Wu
495bfb0ad2 st/glx: Fix leaks in xmesa_st_framebuffer.
The textures and surface of a framebuffer should be unreferenced when
the framebuffer is destroyed.
2010-03-13 13:06:00 +08:00
Chia-I Wu
9222c09349 st/egl: Cache the pipe surface used in flush_frontbuffer.
It is very likely that the same surface will be flushed again and again.
Caching the surface should reduce the overhead of surface creation.
2010-03-13 13:05:21 +08:00
Alan Coopersmith
5d66fc6e3a mklib: Fix amd64 builds on Solaris when using Sun compilers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-03-12 19:04:19 -08:00
Corbin Simpson
2764a5191f r300g: Forcibly sanitize max index.
Not perfect, but the kernel should shut up now.
2010-03-12 18:13:18 -08:00
Corbin Simpson
ecfcb1466a Revert "st/mesa: Always recalculate invalid index bounds."
This reverts commit 50876ddaaf.

Per ML discussion.
2010-03-12 17:58:59 -08:00
Brian Paul
3c80e52541 gallivm: cube map sampling works now 2010-03-12 16:55:28 -07:00
Brian Paul
e910c0ba9e gallivm: fix bugs in nested if/then/else codegen
Quite a bit a hair pulling was involved...
2010-03-12 16:55:28 -07:00
Brian Paul
a6196ce8be gallivm: support non-vector float in lp_build_sgn() 2010-03-12 16:55:28 -07:00
Eric Anholt
f1d6baee0b i965: Clarify the roles of emit_pixel_xy(), emit_delta_xy(), emit_wpos_xy(). 2010-03-12 15:12:02 -08:00
Eric Anholt
f4f2737e87 i965: Clarify that DELTAXY always occurs for both X and Y. 2010-03-12 15:12:02 -08:00
Eric Anholt
46450c1f3f i965: Do FS SLT, SGT, and friends using CMP, SEL instead of CMP, MOV, MOV. 2010-03-12 15:12:01 -08:00
Eric Anholt
8ef3b1834a i965: Do VS SGT, SLT, and friends using CMP, SEL instead of CMP, MOV, MOV. 2010-03-12 15:12:01 -08:00
Eric Anholt
512d8ca2f3 i965: Fix up VS DP4 sequences to avoid dependency control.
This is recommended by the B-Spec.  I wasn't able to measure any
difference in ETQW.
2010-03-12 15:12:01 -08:00
Eric Anholt
52cea5090c i965: When doing a swizzled kill pixel, don't do redundant channel compares.
This was obvious when looking at the compiled output of ETQW's
shaders.
2010-03-12 15:12:01 -08:00
Eric Anholt
ba541b0769 i965: Use the SEL instruction to implement MIN and MAX.
Saves an instruction over doing conditional moves.
2010-03-12 15:12:01 -08:00
Michel Dänzer
13a13fcb80 svga: Fix up for context transfers. 2010-03-12 19:52:24 +01:00
Michel Dänzer
59d6f3eb4a st/xorg: Remove flushes no longer necessary thanks to context transfers. 2010-03-12 19:52:24 +01:00
Alan Coopersmith
57c378a531 glx/single2.c: Don't call __builtin_expect on non-gnu compilers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-03-12 10:28:13 -08:00
Michel Dänzer
b13e305ee1 Merge branch '7.8' 2010-03-12 19:00:47 +01:00
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
Chia-I Wu
9dae0e0ff8 st/glx: Add xm_st.c to SConscript. 2010-03-12 13:26:18 +08:00
Vinson Lee
e4d10dada0 llvmpipe: Remove unnecessary header. 2010-03-11 20:52:38 -08:00
Chia-I Wu
543a29f1a1 st/mesa: Check the format before adding depth/stencil buffers.
The format might have depth bits, stencil bits, or both.  Add the
renderbuffers as needed.
2010-03-12 11:30:46 +08:00
Chia-I Wu
3475e88442 st/glx: Return a better format in choose_depth_stencil_format.
Return a better format instead of an exact format in
choose_depth_stencil_format.  Also, prefer formats with stencil bits.
2010-03-12 11:20:57 +08:00
Chia-I Wu
72ed7eb15a st/glx: Fix an infinite recursion in flush_front.
It was a stupid typo by me when I refactored the code.
2010-03-12 10:05:39 +08:00
Chia-I Wu
576d9af505 st/glx: Use st_api.h instead of st_public.h. 2010-03-12 09:57:11 +08:00
Chia-I Wu
a924dd18c3 st/egl: Use st_api.h instead of st_public.h.
Switch from st_public.h to st_api.h.  The latter has intrinsic multiple
APIs support and allows various EGLImage extensions to be supported.
2010-03-12 09:57:07 +08:00