Jesse Barnes
c6ef705e41
Merge branch 'master' of ssh://people.freedesktop.org/~jbarnes/mesa
...
Conflicts due to DRI1 removal:
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_screen.c
2010-01-11 15:23:29 -05:00
Chia-I Wu
cca66dbb59
st/xlib: Mark GLX functions as public.
...
Mark all functions start with glX as public.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-11 10:04:44 -05:00
Chia-I Wu
b1356df647
st: Mark functions in st_public.h and vg_tracker.h as public.
...
These functions are the API of Gallium state tracker, and are used by
EGL.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-11 10:04:41 -05:00
Chia-I Wu
108c2bf5ab
gallium: Add PUBLIC macro for function visibility.
...
As the default build has -fvisibility=hidden, add a macro to control the
visibility.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-11 10:04:37 -05:00
Chia-I Wu
5ec99c04a9
st/vega: Fix breakage from -fvisibility=hidden.
...
Mark VG and VGU functions as public.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-11 10:04:28 -05:00
José Fonseca
015a5a126b
python: Integrate with llvmpipe if possible.
...
Temporary. We should soon have the ability to integrate with any driver
via glx extensions.
2010-01-11 14:01:07 +00:00
José Fonseca
f2f1672027
python: Mask out PIPE_TEXTURE_USAGE_DISPLAY_TARGET usage.
...
As displaying surfaces directly isn't supported by the python state
tracker.
2010-01-11 14:01:07 +00:00
José Fonseca
3e8c82037f
python: Prefer PIPE_FORMAT_Z32_UNORM.
2010-01-11 14:01:07 +00:00
José Fonseca
76185ecad6
python: Set PIPE_TEXTURE_USAGE_RENDER_TARGET instead of DISPLAY_TARGET.
...
As the python state tracker is not integrated with window system an
cannot present surfaces directly.
2010-01-11 14:01:06 +00:00
Corbin Simpson
1c75edf3e8
util: Set flatshade for blitter.
...
It was bugging me. +1 FPS on softpipe.
2010-01-11 05:43:29 -08:00
Corbin Simpson
2bfb21790c
radeong: Check for DONTBLOCK before flushing, remove dead code.
2010-01-11 05:43:29 -08:00
Keith Whitwell
f9626ce10e
util/blitter: remove unused variable
2010-01-11 10:56:41 +00:00
Luca Barbieri
eea6a7639f
Fix compressed texture loads for non-minimal pitches
...
The current glCompressedTexImage support in the state tracker assumes
that compressed textures have minimal pitch.
However, in some cases this is not true, such as for mipmaps of non-POT
compressed textures on nVidia hardware.
This patch adds a check and does a memcpy for each line instead of the
whole image in that case.
Signed-off-by: Keith Whitwell <keithw@vmware.com >
Tweaks for C90 compilation.
2010-01-11 10:53:02 +00:00
Corbin Simpson
bfcafbe15d
r300g: Don't bother testing for empty scissors.
...
If somebody goes through that much effort, they probably intended it.
So humor them. :3
2010-01-10 23:38:05 -08:00
Corbin Simpson
973326027f
util: Apply Brian's suggested blit improvements.
...
copypix works just fine.
2010-01-10 23:30:01 -08:00
Dave Airlie
deaa634e02
gallium: u_blitter add overlapping blit support.
...
the xorg state tracker really wants the driver to handle overlapping
blits, and r300 uses u_blitter for blits. This patch adds overlapping
blit support via a temporary surface when its required.
2010-01-10 23:18:31 -08:00
Corbin Simpson
1e9ffb6340
r300g: Atomize scissors.
...
Argfl. Some of this code is so questionable.
2010-01-10 23:15:05 -08:00
Corbin Simpson
8ca491386d
r300g: Move TCL bypass switch to main context.
2010-01-10 23:15:05 -08:00
Corbin Simpson
47f59cfc8e
r300g: Atomize viewport.
...
Goddammit, some of these hax are really annoying.
2010-01-10 23:15:05 -08:00
Corbin Simpson
e7d760ff09
r300g: Move ROPCNTL to the top of the emit order.
...
According to the docs, this decreases stalls, and indeed we get a tiny
bit more glxgears from it.
2010-01-10 23:15:05 -08:00
Corbin Simpson
7b569bef15
r300g: Don't avoid rewriting ZTOP.
...
Simplify the code. Added a comment to keep me from doing it again.
2010-01-10 23:15:05 -08:00
Corbin Simpson
46fafdd455
r300g: Atomize rasterizer.
...
I want to stab things now.
2010-01-10 23:15:04 -08:00
Marcin Kościelnicki
d9de848de1
nouveau: Make winsys recognise the original NV50.
2010-01-11 15:16:12 +10:00
Dave Airlie
42f2880ffd
radeon: fix prediction for r100 inline vert/elt emits.
...
On r100 we emit the indices inline so we need to account
for that in the emission size.
2010-01-11 13:24:59 +10:00
Dave Airlie
554043bff7
radeon: fix bug in realloc code.
...
This bug was fixed in libdrm ages ago, port to non-kms
2010-01-11 13:24:58 +10:00
Ben Skeggs
32da02f7c1
st/dri: update dri2 drawables when viewport is changed
...
Fixes gnome-shell on nouveau, as well as window resize with various
other applications.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2010-01-11 11:44:38 +10:00
Corbin Simpson
8a2c961798
r300g: Atomize ZTOP.
...
Also do state-change checks. ZTOP's too important to not check.
2010-01-10 11:49:25 -08:00
Corbin Simpson
07ea7e6c80
r300g: Atomize DSA.
...
Also a bit of ztop.
2010-01-10 11:17:34 -08:00
Corbin Simpson
249374b853
r300g: Atomize UCP.
...
Meh.
2010-01-10 11:17:34 -08:00
Corbin Simpson
9d3db601c7
r300g: Atomize blend color.
2010-01-10 11:17:34 -08:00
Corbin Simpson
d496399156
r300g: Start using atoms.
...
No benefits yet.
2010-01-10 11:17:34 -08:00
José Fonseca
12576556e4
llvmpipe: Update instructions.
...
Explain how to build for windows. Both MSVC 9 and cross MinGW supported.
Stop documenting LLVM 2.5 as supported. It still supported at the moment
but it will soon stop being.
2010-01-10 18:37:42 +00:00
Chia-I Wu
d4c1ee0534
egl: Clean up the Makefile rules.
...
This allows libEGL to be built as a static library and removes libX11
from the dependencies.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2010-01-11 01:11:05 +08:00
Chia-I Wu
064242ae9f
egl_softpipe: Remove the unnecessary call to _eglSwapBuffers.
...
The call to _eglSwapBuffers is unnecessary, and the function is missing
when -fvisibility=hidden. Also remove the extraneous braces and indent
the block.
2010-01-11 01:06:47 +08:00
José Fonseca
cdc11056de
llvmpipe: Yet another hack to get release LLVM static libraries to link in debug builds.
2010-01-10 11:20:11 +00:00
José Fonseca
a921458c16
scons: LLVM <-> MSVC integration tweaks.
2010-01-10 10:51:42 +00:00
José Fonseca
74f520861f
gallium: Remove dead code.
2010-01-10 10:44:25 +00:00
José Fonseca
dc6bcc92ee
gallium: Provide alternative stdint.h and stdbool.h C99 headers, instead of ad-hoc definitions.
...
Everybody is using the C99's integer types. Everybody except Microsoft,
which in turns means everybody is including their own definitions of C99
integer types for MSVC, causing duplicate definitions when linking two
projects. This is the case of building Gallium and LLVM with MSVC.
Shipping alternative stdint.h and stdbool.h headers for MSVC allows us
to share a single definition. It also removes clutter from the Gallium
headers.
2010-01-10 10:39:29 +00:00
Maciej Cencora
0b7b76fb16
r300: minor accelerated blit fixes
2010-01-09 19:53:17 +01:00
Maciej Cencora
cf1748053a
r300: fallback on depth buffer blits
...
Depth buffer accelerated blits aren't implemented yet.
2010-01-09 19:52:42 +01:00
Kristian Høgsberg
7c50d29f7c
intel/DRI2: add DRI2flushExtension support with invalidate hook
...
Needed to support the SwapBuffers code properly.
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net >
2010-01-08 12:40:58 -05:00
Jesse Barnes
c642f3941b
xdemos/glsync: handle no sync method better
...
Print out count, finish rendering, etc. Makes the -sn option more useful.
2010-01-08 12:37:44 -05:00
Jesse Barnes
0269dc19b5
xdemos/glsync: check glXMakeCurrent return value
...
Since this program is used for testing, catching this case can be helpful.
2010-01-08 12:37:43 -05:00
Jesse Barnes
f860aac0d8
xdemos/glsync: Make glsync test draw a rectangle
...
Doing simple buffer clears isn't enough to actually allocate render buffers, we
need to do real drawing.
2010-01-08 12:37:43 -05:00
Jesse Barnes
f35f666f81
xdemos/glsync: Add swap interval support to glsync test
2010-01-08 12:37:43 -05:00
Jesse Barnes
7f170573ea
DRI2/GLX: add INTEL_swap_event support
...
Add event support for the GLX swap buffers event, along with DRI2 protocol
support for generating GLX swap buffers events in the direct rendered case.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org >
2010-01-08 12:37:43 -05:00
Jesse Barnes
efc82e7c70
DRI2: add SwapInterval support
...
Add support for the DRI2SwapInterval protocol request. This allows
direct rendered clients to control their swap interval per the
SGI_swap_control extension.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org >
2010-01-08 12:33:32 -05:00
Jesse Barnes
daf7fe69f7
DRI2: add OML_sync_control support
...
Add OML_sync_control support, along with a simple program for testing
it. This means adding support for the DRI2GetMSC, DRI2WaitMSC and
DRI2WaitSBC requests.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org >
2010-01-08 12:31:10 -05:00
Jesse Barnes
a35f6bb207
DRI2: add SwapBuffers support
...
Support the new DRI2 protocol request, DRI2SwapBuffers, in both direct
and indirect rendering context. This request allows the display server
to optimize back->front swaps (e.g. through page flipping) and allows us
to more easily support other GLX features like swap interval and the OML
sync extension in DRI2.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org >
2010-01-08 12:29:50 -05:00
Christoph Bumiller
99637ba80e
nv50: handle TGSI_OPCODE_UMAD,UMUL,NOT and fix SAD
2010-01-08 18:23:12 +01:00