Robert Noland
8123180ea6
r600: Fix size calculation for 24 bit depth
...
size was being calculated based on 3 bytes per pixel with 24 bit depth
instead of 4 bytes. This caused corruption in the bottom 25% of objects.
This finishes fixing the menu/text corruption in compiz/kde4.
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-19 11:09:10 -04:00
Ben Skeggs
35b98e2884
nouveau: implement is_{texture,buffer}_referenced properly
2009-10-19 09:49:02 +10:00
Ben Skeggs
869d3eea37
drm/nv50: write tic/tsc setup to correct slots when skipping units
2009-10-19 09:49:02 +10:00
Corbin Simpson
16a06fea73
r300g: Fix up a bunch of warnings.
2009-10-18 16:09:01 -07:00
Corbin Simpson
d2e29b502e
r300g: Add another ZTOP condition.
...
I don't even know if texkill works right now.
2009-10-18 10:30:18 -07:00
José Fonseca
838da1d4ae
llvmpipe: Allocate texture storage for whole quads.
2009-10-18 14:31:58 +01:00
Corbin Simpson
bb567357bc
gallium: Permit surface_copy and surface_fill to be NULL.
...
Uf. Lots of files touched. Would people with working vega, xorg, dri1, etc.
please make sure you are not broken, and fix yourself up if you are.
There were only two or three places where the code did not have painful
fallbacks, so I would advise st maintainers to find less painful workarounds,
or consider overhauling util_surface_copy and util_surface_fill.
Per ymanton, darktama, and Dr_Jakob's suggestions, clear has been left as-is.
I will not add PIPE_CAP_BLITTER unless it is deemed necessary.
2009-10-17 21:32:56 -07:00
Corbin Simpson
bfd877e470
r300g: Squash format warning.
...
Won't ever be supported.
2009-10-17 20:53:19 -07:00
Corbin Simpson
11056ca86f
r300g: Use a dirty test to bring framerate back up.
...
This is just split out from the next commit, that's all.
2009-10-17 20:47:45 -07:00
Corbin Simpson
51173e4e53
r300g: Also have rs_block keyed to the current shader combo.
...
Eliminates part of the glxgears corruption here. Need to clean up PSC more,
to get rid of the rest of it.
2009-10-17 20:29:27 -07:00
Corbin Simpson
ce9ae4a483
r300g: Fix u_hash_table rename.
2009-10-17 20:05:23 -07:00
Corbin Simpson
4a98d19d1b
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
2009-10-17 19:58:23 -07:00
Patrice Mandin
114417a2f5
nouveau: nv40: Use same workaround as i915 for segfault related to vbo
2009-10-17 20:49:18 +02:00
Patrice Mandin
66aab9a1f6
nouveau: nv30: Remove duplicate case. Was a typo for X8R8G8B8, but that will never be use for front buffer.
2009-10-17 20:46:19 +02:00
Patrice Mandin
67356ae047
nouveau: nv30: Use same workaround as i915 for segfault related to vbo
2009-10-17 20:27:24 +02:00
José Fonseca
5d42e3988d
util: Rename from u_* to util_* while we're at it.
...
To be consistent with the rest.
2009-10-17 11:45:04 +01:00
Chris Wilson
60a39b6799
intel: Disallow relocations to the byte beyond the end of the buffer
2009-10-17 08:26:54 +01:00
Brian Paul
a335d334d4
mesa: fix/update some comments
2009-10-16 13:07:43 -06:00
Brian Paul
f094b86bb5
mesa: lift default symlinks target into Makefile.template
...
Driver Makefiles can still add symlink dependencies/rules if needed.
2009-10-16 13:07:43 -06:00
Brian Paul
db2046580f
mesa: use EXTRA_MODULES and SUBDIRS to build r300 compiler
...
This is a bit cleaner and avoids rebuilding the r300_dri.so library all
the time.
2009-10-16 13:07:43 -06:00
Brian Paul
d9fd207133
mesa: added SUBDIRS support in dri/Makefile.template
2009-10-16 13:07:43 -06:00
Brian Paul
f0503726bf
mesa: move a comma
2009-10-16 13:07:43 -06:00
Brian Paul
2ee7fd8d58
mesa: added MESA_GLSL=useprog debug flag
...
This logs glUseProgram() calls to stderr.
2009-10-16 13:07:43 -06:00
Maciej Cencora
3594b53c01
r300: fix vertex program parameters limits
2009-10-16 20:21:17 +02:00
Corbin Simpson
3e56bef5a5
radeon-gallium: Use debug_get_bool_option instead of getenv.
2009-10-16 09:45:07 -07:00
Corbin Simpson
fc8a156cfc
r300g: Use a hash table to look up vertex info.
...
Need to move rs_block to this, too.
Also, I'm getting massive amounts of flicker for some reason; I bet we've gotta
re-re-examine PSC and friends. :C
2009-10-16 08:43:02 -07:00
Corbin Simpson
3924d86115
util: Change function names to begin with u_.
...
Avoids link-time clashes with Mesa's internal hash table.
2009-10-16 08:43:02 -07:00
Brian Paul
946bc9aa42
docs: document GLSL float parsing bug fix
2009-10-16 07:38:39 -06:00
Brian Paul
89b31c9619
mesa: use C locale for _mesa_strtod()
...
_mesa_strtod() is used for shader/program parsing where the decimal
point character is always '.' Use strtod_l() with a "C" locale to
ensure correct string->double conversion when the actual locale uses
another character such as ',' for the decimal point.
Fixes bug 24531.
2009-10-16 07:36:50 -06:00
José Fonseca
166957abeb
progs/tests: Use rand() instead of random().
...
Forgot these on previous commit.
2009-10-16 11:42:13 +01:00
José Fonseca
699260b195
progs/tests: Use rand() instead of random().
...
More portable. Same implementation on Linux.
2009-10-16 11:39:29 +01:00
Vinson Lee
60b6c74583
prog/tests: Fix MSVC build.
2009-10-16 11:36:09 +01:00
Corbin Simpson
e4f21be13a
r300g: Set logical ID for each emitted texture/sampler.
...
multitexarray works on my r300, but texrect doesn't.
2009-10-15 16:58:26 -07:00
Patrice Mandin
a5a05fd782
nouveau: nv30: Hack to enforce same number of bits as front buffer, for render targets
2009-10-15 22:41:09 +02:00
Patrice Mandin
13580aa3d1
nouveau: nv30: refuse binding a colour buffer with a zeta buffer with different bits, till the backend can tell Mesa not to do that.
2009-10-15 21:58:44 +02:00
Zack Rusin
108273c5ed
st/xorg: refix source over
2009-10-15 15:23:04 -04:00
Brian Paul
5b7d9053a0
progs/egl: put declarations before code
2009-10-15 13:00:03 -06:00
Chia-I Wu
6c21c8862b
egl: Rework the synchronization primitives.
...
This adds error checking to the synchronization primitives. And
eglWaitGL is now implemented by eglWaitClient.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-15 12:54:00 -06:00
Chia-I Wu
57da499d7b
egl: Rework eglSwapInterval.
...
This adds error checking to eglSwapInterval and clamps the swap
interval.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-15 12:54:00 -06:00
Chia-I Wu
bbfd0e2615
egl: Rework error checking in eglSwapBuffers.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-15 12:53:58 -06:00
Chia-I Wu
aaa1253b09
egl: Update comments about eglapi.c.
...
Mention that opaque handles are looked up and checked.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-15 12:53:57 -06:00
Chia-I Wu
6190663120
egl: Rework error checking in eglGetCurrentSurface.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-15 12:53:57 -06:00
Chia-I Wu
8bb2485ed0
egl: Include GL header in eglconfigutil.h.
...
This is just a cosmetic change.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-15 12:53:56 -06:00
Chia-I Wu
29d115092e
egl: Fix GLX_USE_TLS build.
...
Remove an extraneous semicolon.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-15 12:53:56 -06:00
Chia-I Wu
2fc1614e7a
egl: Fix eglCheckConfigHandle.
...
A stupid bug by me made the check void.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-15 12:53:55 -06:00
Owen Taylor
3f30b0709b
Use the right pitch when rendering to a texture
...
We need to get the pitch from the texture level we are rendering to,
rather than just using the base texel width.
2009-10-15 11:33:08 -04:00
Robert Noland
16c6a3b71e
r600: FRAG_ATTRIB_WPOS and FRAG_ATTRIB_FOGC appear to be supported.
...
Report unsupported attributes while I'm here.
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-15 11:29:52 -04:00
Robert Noland
a176b1c5d8
r600: cleanup in r600_cs_process_relocs().
...
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-15 11:29:45 -04:00
Robert Noland
e5d6450c2c
radeon: return EINVAL for 0 length buffers.
...
Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-10-15 11:29:35 -04:00
Andre Maasikas
22a0029a68
r600: fix tfp1 bo size
...
Setting the wrong bo size resulting in an incomplete
read cache flush when reading the texture. This fixes the
compiz text corruption.
[agd5f: take hw pitch alignment into account]
2009-10-15 11:24:49 -04:00