Brian Paul
9b22427911
Merge branch 'mesa_7_7_branch'
...
Conflicts:
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_swapbuffers.c
src/mesa/drivers/dri/r300/r300_emit.c
src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_tex.c
src/mesa/drivers/dri/r300/r300_texstate.c
2010-01-25 14:46:17 -07:00
Alex Deucher
7e7f8815fb
r300: rv350+ support FLT16_2/4 vertex formats
2010-01-25 16:19:19 -05:00
Corbin Simpson
5fe71949d9
r300g: Finish and enable immediate mode.
...
Based on Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson
1571602153
radeong: Make sure that we're not emitting relocations for local buffers.
...
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson
c486bfb463
radeong: Make is_r3xx inline to avoid warnings.
...
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson
67149051be
radeong: Clean up domain usages.
...
Split from Marek's immd-mode patch.
2010-01-25 11:30:39 -08:00
Corbin Simpson
72778a9d25
Revert "r300g,radeong: finish and enable the immediate mode"
...
This reverts commit 112239e9a6
.
2010-01-25 11:30:38 -08:00
Jakob Bornecrantz
6749310d3f
st/xorg: Fix crash on resize with libkms
2010-01-25 20:12:59 +01:00
Igor Oliveira
0d051af612
vega: fix incorrect samplers, textures indexes in blend_bind_samplers()
...
Fixes fd.o bug 25863.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-25 09:53:53 -07:00
Luca Barbieri
9328f3a670
Fix compressed texture loads for non-minimal pitches again
...
My commit eea6a7639f
does a memcpy of height
lines, but that's wrong because the texture has a block layout and we
must thus use the number of vertical blocks instead of the height.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-25 08:11:49 -07:00
Chia-I Wu
2204447de3
winsys/drm: Correctly install EGL drivers.
...
Remove extraneous quotes that prevent some drivers to be installed when
there are more than one display in EGL_DISPLAYS.
2010-01-25 23:06:05 +08:00
José Fonseca
cb64ca5066
pipebuffer: Reapply the mesa_7_7_branch's changes.
...
After the last mesa_7_7_branch merge the old master code remained,
instead of the newer mesa_7_7_branch's code. This commit makes both
branches match, modulo interface changes.
Note: future mesa_7_7_branch -> master merges will most likely hit
conflicts in these files. Unless otherwise stated, the mesa_7_7_branch
is the reference.
2010-01-25 13:17:47 +00:00
José Fonseca
4c082faa7e
llvmpipe: Remove lp_tex_sample_c.c again.
...
Popped back to life in some merge. Not necessary even as a reference,
since it is identical to softpipe's sp_tex_sample.c with renamed symbols.
2010-01-25 11:54:54 +00:00
Jakob Bornecrantz
6877c5de3c
vmware/xorg: Do buffer round-robin logic differently
2010-01-25 12:27:47 +01:00
Jakob Bornecrantz
0b482c4fbe
st/xorg: Improve options and print them to log
...
Set 2D acceleration to off by default
Get fallback debugging from the Xorg config
Also print if 3D acceleration is enabled
2010-01-25 11:24:56 +01:00
Jakob Bornecrantz
a3b783ea29
vmware/xorg: Export pci_probe function for ugly chain-loading
2010-01-25 11:24:55 +01:00
Jakob Bornecrantz
36fd55f9f0
st/xorg: Export helper function for detecting modesetting
2010-01-25 11:24:55 +01:00
Jakob Bornecrantz
16cf7e14a6
st/xorg: Fix warning
2010-01-25 11:24:55 +01:00
Corbin Simpson
8cf1af4507
gallium-docs: Add note on scissor.
2010-01-25 01:12:30 -08:00
Marek Olšák
112239e9a6
r300g,radeong: finish and enable the immediate mode
...
Nearly 100% performance increase in glxgears.
2010-01-24 23:03:29 -08:00
Marek Olšák
9f8ec53312
r300g: fix zero-area scissor
2010-01-24 23:03:29 -08:00
Marek Olšák
b7a002df1e
r300g,radeong: set tiling flags in libdrm
2010-01-24 23:03:29 -08:00
Marek Olšák
8505996430
radeong: do not emit a zero-sized command stream
...
Fixing a hardlock introduced in fcbd285e42
and
reproducible with piglit/bugs/fdo23489.
2010-01-24 23:03:29 -08:00
Chia-I Wu
4aed0944f4
egl: Native types are renamed in EGL 1.3.
...
Rename Native*Type to EGLNative*Type.
2010-01-25 11:59:12 +08:00
Chia-I Wu
dbb866ab33
egl: Make resource void pointer in _eglCheckResource.
...
This emphasizes the fact that the resource to be checked could really be
invalid and have an unknown type.
2010-01-25 11:44:13 +08:00
Chia-I Wu
3f932a4440
egl: Install EGL headers.
...
Install EGL (and KHR) headers along with the library.
2010-01-25 11:34:59 +08:00
Chia-I Wu
a1c4a8a3c8
egl: Add support for EGL_KHR_image.
...
Individual drivers still need to implement the API hooks.
2010-01-25 11:28:27 +08:00
Chia-I Wu
95f8f75ad8
egl: Update headers.
...
Update to the current versions found at
http://www.khronos.org/registry/egl/ . There is one modification in
khrplatform.h for GCC visibility.
2010-01-25 11:28:27 +08:00
Igor Oliveira
daea9270f8
egl: check if driver_name is null
2010-01-25 10:30:51 +08:00
Brian Paul
47d30b0c2c
st/mesa: fix int->uint conversion for negative scissor bound values
...
Based on a patch by Xavier Chantry <chantry.xavier@gmail.com>:
If x+width or y+height is negative, then maxx or maxy will get a bogus value
when converting that to unsigned. Fix this by setting 0 as minimal value.
This was also triggered by teeworlds, but only with some combination of
resolution and map section. For example upper part of dm2 at 1280x1024.
2010-01-24 18:18:17 -07:00
Brian Paul
e88d6fe299
mesa: move _mesa_debug() call earlier in _mesa_Scissor
...
Part of a patch from Xavier Chantry <chantry.xavier@gmail.com>
2010-01-24 17:54:47 -07:00
Xavier Chantry
fdfa4c8529
st/mesa: fix unsigned/signed breakage in scissor
...
commit 53174afeeb
introduced a portability change that converted GLint x,y
to GLuint. That breaks when x and y are negative, which seems to be allowed,
and which at least one game uses : teeworlds.
Rather than simply reverting the change, it seems possible to convert the
16bit unsigned to GLint so that comparisons are made between signed integers
instead. This hopefully does not break anything while keeping MSVC happy.
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-24 16:45:49 -07:00
Marcin Slusarz
9e1550dbaf
nv50: fix uninitialized variable in nv50_revdep_reorder
...
"unsafe" is never initialized, but used
(found by valgrind)
2010-01-25 09:45:23 +10:00
Marcin Slusarz
0ef781c1ae
nv50: fix crash in nv50_pre_pipebuffer_map (nv50_screen->cur_ctx)
...
nv50_pre_pipebuffer_map references screen->cur_ctx which points
to freed memory after the context is destroyed.
This crash is easily triggerable by progs/xdemos/glxcontexts.
2010-01-25 09:44:34 +10:00
Marcin Slusarz
74989972ba
nouveau/winsys: be nice and close the device on destroy
2010-01-25 09:43:59 +10:00
Marcin Slusarz
283b21d02b
nouveau: fix winsys object leak
2010-01-25 09:43:33 +10:00
Christoph Bumiller
833acea8f6
nv50: fix handling of FragCoord input
2010-01-24 15:17:57 +01:00
Christoph Bumiller
49dde55b96
nv50: only flush texture caches on st request
2010-01-24 15:17:53 +01:00
Christoph Bumiller
d6fd31a8d4
nv50: implement render_condition
...
Still not handling queries on multiple contexts though.
2010-01-24 15:13:17 +01:00
Chia-I Wu
21b2c0a6e5
egl: Add and use make_library_path.
...
Add a platform specific function to turn a library name to a library
path. It is used to convert EGL_DRIVER or the default driver to a
library path that can be loaded.
2010-01-24 21:27:52 +08:00
Chia-I Wu
cecc33cd4f
egl: Remove _eglFindAPIs.
...
This function is not used and should have been removed by last commit.
My mistake.
2010-01-24 20:55:17 +08:00
Chia-I Wu
cf7c1ea4f1
egl: Remove unused helper functions.
...
_eglFillInConfigs and _eglFindAPIs have no user in Mesa and are unlikely
to find one soon. It should be fine to remove them.
2010-01-24 20:52:30 +08:00
Chia-I Wu
56b93a25ea
egl: Remove unused casting functions.
...
_eglUIntToPointer and _eglPointerToUInt are no longer used.
2010-01-24 20:38:16 +08:00
Chia-I Wu
ecb3b3102a
egl: Make surfaces and contexts resources.
...
Turn _EGLSurface and _EGLContext into _EGLResource so that they can be
managed uniformly.
2010-01-24 20:38:16 +08:00
Chia-I Wu
7abf42626f
egl: Add _EGLResource and _EGLResourceType.
...
Resources are objects managed by a display. They can be linked to or
unlinked from a display. It is also possible to check if a resource is
valid.
2010-01-24 20:38:15 +08:00
Chia-I Wu
b4d2c97a2d
egl: Move surface functions in egldisplay.[ch] to eglsurface.[ch]
...
Move functions to where they should be. There should be no real change
here.
2010-01-24 20:38:15 +08:00
Chia-I Wu
5e66d18932
egl: Move context functions in egldisplay.[ch] to eglcontext.[ch].
...
Move functions to where they should be. There should be no real change
here.
2010-01-24 20:38:15 +08:00
Chia-I Wu
7be4d6b5f7
mesa/es: Improve Makefile rules.
...
Make sure glapi headers are cleaned when "make clean". Make sure all
sources depend on subdirs-stamp-tmp so that sources/headers are
generated first.
subdirs-stamp-tmp will be removed after a successful build. It might be
a problem when a build fails. But it is much better than where we
currently are: glapi headers are never cleaned or re-generated.
2010-01-24 20:15:25 +08:00
Vinson Lee
e85cb98a16
r200: Silence fprintf format warning.
2010-01-24 00:17:00 -08:00
Vinson Lee
e02dc13952
x86: Do not build read_rgba_span_x86.S on Mac OS X.
...
read_rgba_span_x86.S uses the pseudo-ops .hidden and .type which are
not recognized on Mac OS X.
2010-01-23 23:18:33 -08:00