Zhenyu Wang
845d651cf6
i965: Use MI_FLUSH_DW for blt ring flush on sandybridge
...
Old MI_FLUSH command is deprecated on sandybridge blt.
2010-12-23 17:29:46 +08:00
Vinson Lee
1e7bfcc707
st/mesa: Remove unnecessary header.
2010-12-23 01:03:32 -08:00
Vinson Lee
492afbce18
gallivm: Disable MMX-disabling code on llvm-2.9.
...
The disable-mmx option was removed in llvm-2.9svn by revisions 122188
and 122189.
Fixes FDO bug 32564.
2010-12-22 19:56:10 -08:00
Vinson Lee
adaa310e39
gallivm: Fix 'cast from pointer to integer of different size' warning.
...
Fixes this GCC warning.
lp_bld_const.h: In function 'lp_build_const_int_pointer':
lp_bld_const.h:137: warning: cast from pointer to integer of different size
2010-12-22 16:48:19 -08:00
Vinson Lee
38c8b034e2
i915g: Remove unnecessary header.
2010-12-22 00:57:52 -08:00
Vinson Lee
442fcd0620
llvmpipe: Remove unnecessary headers.
2010-12-22 00:55:41 -08:00
Vinson Lee
013fc33462
r300g: Remove unnecessary headers.
2010-12-22 00:52:05 -08:00
Vinson Lee
f39d0c791a
svga: Remove unnecessary header.
2010-12-22 00:42:23 -08:00
Vinson Lee
a91128030e
st/vega: Remove unnecessary headers.
2010-12-22 00:38:42 -08:00
Henri Verbeet
ca8b4ca478
r600g: Remove the unused "pframebuffer" field from r600_pipe_context.
2010-12-22 09:19:48 +01:00
Henri Verbeet
2fd718d560
r600g: r600_new() and r600_delete() are unused.
2010-12-22 09:19:48 +01:00
Zhenyu Wang
4374703a9b
i965: explicit tell header present for fb write on sandybridge
...
Determine header present for fb write by msg length is not right
for SIMD16 dispatch, and if there're more output attributes, header
present is not easy to tell from msg length. This explicitly adds
new param for fb write to say header present or not.
Fixes many cases' hang and failure in GL conformance test.
2010-12-22 11:08:51 -05:00
Chia-I Wu
445cb9e53b
st/egl: Assorted fixes for dri2_display_get_configs.
...
Set window_bit only when the visual id is greater than zero. Correct
visual types. Skip slow configs as they are not relevant. Finally, do
not return duplicated configs.
2010-12-22 16:05:27 +08:00
Alex Deucher
341d048e45
r600g: remove useless switch statements
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-12-22 01:30:41 -05:00
Chia-I Wu
a31e2e3312
st/egl: Fix eglCopyBuffers.
...
Flush before presenting.
2010-12-22 14:21:47 +08:00
Chia-I Wu
18bc427ade
st/egl: Plug pbuffer leaks.
...
Unreference validated resources or remove unnecessary validations.
2010-12-22 14:12:33 +08:00
Chia-I Wu
0fb2dcc98f
st/egl: Allow single-buffered pixmaps.
...
All single-buffered configs were ignored before to make sure
EGL_RENDER_BUFFER is settable for window surfaces. It is better to
allow single-buffered configs and set EGL_WINDOW_BIT only for
double-buffered ones. This way there can be single-buffered pixmaps.
2010-12-22 14:12:33 +08:00
Dave Airlie
f431e0452b
r600g: drop unused code in evergreen.
...
this code was pretty much duplicated, thanks to Henri Verbeet on irc for
pointing it out.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-12-22 15:58:29 +10:00
Chia-I Wu
975b7ef92a
st/egl: Remove native_config::samples.
...
Multisample buffers are never requested.
2010-12-22 13:22:36 +08:00
Chia-I Wu
3a93c34828
st/egl: Remove native_config::slow_config.
...
In direct rendering scenario, it is not needed until an EGLDisplay can
support both HW and SW pipe screens.
2010-12-22 13:22:36 +08:00
Chia-I Wu
0364c08d7f
st/egl: Remove unnecessary egl_g3d_find_pixmap_config.
...
It was used to find a compatible config for a given pixmap. Now that a
config is optional for pixmap surface creation, the function is not
needed.
2010-12-22 13:22:36 +08:00
Chia-I Wu
af767ee113
st/egl: Make config optional for create_pixmap_surface.
...
eglCopyBuffers or EGL_KHR_image_pixmap require creating a pixmap surface
without a config. Make it just work without relying on
is_pixmap_supported.
2010-12-22 13:22:36 +08:00
Dave Airlie
2dd189a824
r600g: fix evergreen segfaults.
...
evergreen was crashing running even gears here.
This is a 7.10 candidate if its broken the same.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-12-22 14:54:17 +10:00
Marek Olšák
cb4f367b26
r300g: fix precision issues with B10G10R10A2
2010-12-22 03:39:37 +01:00
Marek Olšák
2a95542088
r300g: support B10G10R10A2 render targets only with DRM 2.8.0 or later versions
2010-12-22 03:39:37 +01:00
Eric Anholt
4fe78d3e12
i965: Avoid using float type for raw moves, to work around SNB issue.
...
The SNB alt-mode math does the denorm and inf reduction even for a
"raw MOV" like we do for g0 message header setup, where we are moving
values that aren't actually floats. Just use UD type, where raw MOVs
really are raw MOVs.
Fixes glxgears since c52adfc2e1 , but no
piglit tests had regressed(!)
2010-12-21 13:06:15 -08:00
Jerome Glisse
fa62cf7450
r600g: avoid segfault
...
Candidates 7.10
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-21 10:51:32 -05:00
Chris Wilson
8b9570e685
intel: Check for unsupported texture when finishing using as a render target
...
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32541
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-21 11:58:35 +00:00
Vinson Lee
c1f0f90a97
st/mesa: Clean up header file inclusion in st_format.h.
2010-12-21 01:25:04 -08:00
Vinson Lee
3d03b4d839
st/mesa: Clean up header file inclusion in st_draw.h.
2010-12-21 01:17:37 -08:00
Ben Skeggs
5c102dd94f
nouveau: fix includes for latest libdrm
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-12-21 06:28:08 +10:00
Tom Fogal
cd9ed3da68
Regenerate gl_mangle.h.
...
NOTE: This is a candidate for the 7.10 branch.
2010-12-20 19:29:48 -07:00
Jerome Glisse
abe9ffc25c
r600g: properly unset vertex buffer
...
Fix bug http://bugs.freedesktop.org/show_bug.cgi?id=32455
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-20 15:33:28 -05:00
Vinson Lee
a14f79f801
st/python: remove unused 'buf' parameter in pipe_buffer_unmap
...
This is a follow-up to commit ec51092a72 .
Fixes SCons build.
2010-12-20 11:40:54 -08:00
Marek Olšák
ec51092a72
gallium: remove unused 'buf' parameter in pipe_buffer_unmap
2010-12-20 17:42:55 +01:00
Vinson Lee
c451aade88
st/mesa: Remove comment cruft from st_context.h.
...
This was unintentionally added by commit
1525fb4afe .
2010-12-20 01:24:26 -08:00
Vinson Lee
2dd788663a
st/mesa: Clean up header file inclusion in st_cb_texture.h.
2010-12-20 01:15:04 -08:00
Vinson Lee
10eb0c39d5
st/mesa: Clean up header file inclusion in st_cb_readpixels.h.
2010-12-20 01:00:26 -08:00
Marek Olšák
237880463d
r300g: optimize the fallback for misaligned ushort indices
2010-12-19 04:05:34 +01:00
Vinson Lee
c87f82bc40
st/mesa: Clean up header file inclusion in st_cb_program.h.
2010-12-18 01:44:52 -08:00
Vinson Lee
ac09685d2a
st/mesa: Clean up header file inclusion in st_cb_accum.h.
2010-12-18 01:28:18 -08:00
Vinson Lee
488e994ba9
mesa: Clean up header file inclusion in prog_statevars.h.
2010-12-18 01:16:53 -08:00
Dave Airlie
aa4d311873
mesa: fix queryobj whitespace.
...
Had done this before pushing but forgot to amend, doh.
2010-12-18 17:48:21 +10:00
Dave Airlie
ff7aa554a1
mesa/swrast/st: add ARB_occlusion_query2 support.
...
This gets my vote for most pointless extension of all time, I'm guessing
some driver could possibly optimise for this instead of counting it might
just get a true/false, but I'm not really sure.
need this to eventually advertise 3.3 despite its total uselessness.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-12-18 17:33:25 +10:00
Chia-I Wu
7048095513
mapi: Clean up sources.mk.
...
Rename MAPI_GLAPI_SOURCES to MAPI_UTIL_SOURCES. Rename macro
MAPI_GLAPI_CURRENT to MAPI_MODE_UTIL. Update the comments to make it
clear that mapi may be used in two ways and how.
2010-12-18 15:05:58 +08:00
Chia-I Wu
c17d4999f1
mapi: Clean up u_current interface.
...
Try not to use macros to make u_current.h appear to be glapi.h. Use
u_current.h to implement glapi.h instead whenever possible.
2010-12-18 15:05:52 +08:00
Chia-I Wu
c7119e281b
mapi: Add ABI-tag note.
...
TLS requires kernel >= 2.4.20. Per glapi.
2010-12-18 14:46:10 +08:00
Kenneth Graunke
a954dbeb8c
Refresh autogenerated file builtin_function.cpp.
...
NOTE: The 7.9 and 7.10 branches will need their builtins refreshed too.
Rather than cherry-picking this commit, run 'make builtins'.
2010-12-17 19:40:56 -08:00
Kenneth Graunke
d7423a6531
glsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).
...
These mistakenly computed 't' instead of t * t * (3.0 - 2.0 * t).
Also, properly vectorize the smoothstep(float, float, vec) variants.
NOTE: This is a candidate for the 7.9 and 7.10 branches.
2010-12-17 19:29:22 -08:00
José Fonseca
3f94d96fce
gallivm: Cleanup util_format_xxx_fetch_xxx call generation.
...
No need to register function prototypes in the module now that we call
the C function pointer directly -- less LLVM objects lying around.
Limited testing with lp_test_format.
2010-12-17 20:14:31 +00:00