Brian Paul
fb1834cdfd
gallium/docs: clean up texture usage text, added texture geom info
2010-02-24 08:52:33 -07:00
José Fonseca
085810542f
llvmpipe: Fix breakeage.
...
Due to the u_format.csv changes the unrolled code generator was being used
for formats it didn't support.
Bring some bugfixes from u_format_access.py too.
2010-02-24 15:45:28 +00:00
José Fonseca
1dbb5f02ae
util: Refactor some code.
2010-02-24 15:45:28 +00:00
José Fonseca
3c45c4bc44
util: Cope with the fact that formats in u_format.csv are not ordered.
2010-02-24 15:45:28 +00:00
José Fonseca
943314f38f
util: Factor out the code to shorten a format name.
2010-02-24 15:45:28 +00:00
José Fonseca
a9395360f2
llvmpipe: Handle correctly 24bit formats.
2010-02-24 15:45:28 +00:00
José Fonseca
395b335fa4
util: Handle correctly 24bit formats.
2010-02-24 15:45:28 +00:00
José Fonseca
5caa004829
util: Minor tweaks to ambigous/unused format descriptions.
2010-02-24 15:45:28 +00:00
José Fonseca
55f02ba364
util: Fix swizzles for SRGB formats.
...
Based on Marek Olšák's fix 8-bits-per-channel formats swizzles, with the
exception that the notation for several formats (the vector formats)
is actually reversed so they should be left alone.
2010-02-24 15:45:28 +00:00
José Fonseca
ba7ce0ccd4
util: Organize formats in groups. Add comments.
2010-02-24 15:45:28 +00:00
José Fonseca
b57d80da77
util: Allow '#' comments in u_format.csv.
2010-02-24 15:45:28 +00:00
Brian Paul
78f72d73ee
mesa: disable unreachable meta mipmap gen code
...
More work is needed to support 3D mipmap generation. Disable unreachable
code until then.
See bug 26722.
2010-02-24 08:14:33 -07:00
José Fonseca
573a8002d5
util: Kill unused UTIL_FORMAT_LAYOUT_SCALAR.
2010-02-24 12:15:13 +00:00
José Fonseca
4e526b42b0
llvmpipe: Kill unused UTIL_FORMAT_LAYOUT_SCALAR.
2010-02-24 12:15:13 +00:00
José Fonseca
5dce9b252b
util: Store more derived data in the the format description.
2010-02-24 12:15:13 +00:00
Dave Airlie
3f5bac8960
radeon/r200: fix the state emission before kernel clear
...
this moves the emission outside the lock and adds r200 support.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-24 19:13:07 +10:00
Vinson Lee
e16f0c14f3
r600: Assert that array index is not negative.
2010-02-24 00:24:51 -08:00
Dave Airlie
b75d407369
radeon: fix bad state emission causes kernel to do bad depth clear
...
The kernel lets you clear depth without getting a depth offset
from userspace, mesa used to emit state before clear, but that got
lost in the refactoring, which made the kernel bug show up. Fix
mesa driver to emit the state properly now.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-24 17:19:09 +10:00
Kristian Høgsberg
db9c151d77
intel: Call intel_prepare_render() in intelMakeCurrent()
...
This restores old behaviour, where we end up doing a DRI2GetBuffers()
call from intelMakeCurrent(). The idea was that we could do this
lazily, just before we start rendering. However, if we don't do the
DRI2GetBuffers() round-trip we don't get the drawable size and higher
level mesa ends up short-cutting a number of GL calls, such as glClear().
2010-02-23 23:20:07 -05:00
Brian Paul
402f54b0d1
gallivm: added clamp and int_to_float functions
2010-02-23 21:16:18 -07:00
Brian Paul
1eec90d660
llvmpipe: add lp_tile_image.c to sources
2010-02-23 21:14:48 -07:00
Brian Paul
5e321280c1
llvmpipe: whole image tile/untile functions
2010-02-23 21:14:48 -07:00
Brian Paul
b628950662
st/mesa: whitespace fixes
2010-02-23 19:02:25 -07:00
Brian Paul
cd25e436ef
llvmpipe: remove Z16 format override hack
2010-02-23 18:57:18 -07:00
Brian Paul
0e7c22ff3c
llvmpipe: Z16 format is not supported
2010-02-23 18:57:18 -07:00
Brian Paul
a84575cdc0
st/glx: improved depth/stencil format selection code
...
Actually ask the gallium screen what Z/stencil format is supported.
This will let us remove some hacks in the llvmpipe driver.
2010-02-23 18:57:18 -07:00
Brian Paul
f7830dc391
st/glx: added PIPE_FORMAT_Z24S8_UNORM code
2010-02-23 18:57:18 -07:00
Brian Paul
049b4c3405
llvmpipe: added assertions to verify that scene is empty
2010-02-23 18:57:18 -07:00
Brian Paul
c8aaa24f2d
llvmpipe: added some assertions
2010-02-23 18:57:17 -07:00
George Sapountzis
295a02549d
glapi: fix es after mv
2010-02-24 02:11:31 +02:00
George Sapountzis
ad520aaa87
glapi: fix code generation Makefile after mv
2010-02-24 02:11:31 +02:00
George Sapountzis
f437a67377
glapi: mv code generation to subdir
...
This just moves files, code generation Makefile will be fixed in next commit for easier review.
2010-02-24 02:11:30 +02:00
Marek Olšák
232f6e1761
r300g: fix texture swizzling for the SRGB formats
2010-02-24 01:00:34 +01:00
kleinerm
251bf298bf
glx: Fix some typos in pointer checking for OML_sync_control entry points.
...
Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-23 13:35:05 -07:00
Luca Barbieri
2f5beb4b53
pipebuffer: slab: if size < alignment, use alignment to find bucket
...
If the size is lower than the alignment, we must use the alignment to
select the bucket.
Otherwise, the selected bucket won't be able to satisfy our request
and will fail.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-02-23 19:50:24 +00:00
Luca Barbieri
c36b912e09
pipebuffer: fix inverted signalled checking
...
A return of 0 means the fence is signalled.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-02-23 19:50:24 +00:00
Luca Barbieri
9f4f87893b
pipebuffer: avoid assert due to increasing a zeroed refcnt
...
The cache manager stores buffers with a reference count that dropped to 0.
pipe_reference asserts in this case on debug builds,
so use pipe_reference_init instead.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-02-23 19:50:24 +00:00
Eric Anholt
c41cf31da8
i965: Enable GL_ARB_fragment_coord_conventions now that the GLSL is fixed.
...
Tested with piglit glsl-arb-fragment-coord-conventions.
2010-02-23 11:16:31 -08:00
Chia-I Wu
7d1237bc71
egl: Remove unused _EGL_SKIP_HANDLE_CHECK.
...
It was added to skip checking EGLDisplay, EGLSurface, and etc. It is
never defined and the spec does not allow the checks to be skipped.
Remove it for good.
2010-02-23 22:42:46 +08:00
Chia-I Wu
58a72cd65e
st/egl: Unify surface creation.
...
Add a new function egl_g3d_create_surface and use it to create window,
pixmap, buffer, and screen surfaces.
2010-02-23 22:42:41 +08:00
Vinson Lee
abcb6b6d01
mesa: Assert that array index is not negative.
2010-02-23 00:19:30 -08:00
Vinson Lee
83a5b7e468
glsl/apps: Assert that ftell does not return an error.
2010-02-22 23:49:50 -08:00
Vinson Lee
a0fe36a39b
i965g: Add fallthrough comments in switch statement.
...
Silences warnings about missing break statements in static analysis.
2010-02-22 23:32:43 -08:00
Vinson Lee
6da07e45b3
draw: Remove dead code.
2010-02-22 23:23:57 -08:00
Marek Olšák
902ccfcb40
r300g: fix draw_elements for "start" != 0
...
Reported-by: Andre Maasikas <amaasikas@gmail.com>
2010-02-23 03:33:24 +01:00
José Fonseca
b330928549
svga: Upload user buffers only once.
2010-02-22 21:47:22 +00:00
José Fonseca
8ea7d8412c
svga: Fix the guest offset of piecewise buffer DMAs.
...
It was being erroneously set equal to the host offset, but it should be
zero.
2010-02-22 21:47:19 +00:00
José Fonseca
066fd70639
svga: Emit a scalar rcp in shadow maps.
...
Small improvement in Lightsmark 2008.
2010-02-22 21:47:18 +00:00
José Fonseca
7384cdf651
svga: Don't emit zero writemasks.
...
This fixes a regression with Lightsmark, where more compact TGSI from Mesa
was causing a zero mask MOV to be emitted for shadow map compare, causing
problems in some backends.
Add a few more assertions to catch cases like this.
2010-02-22 21:47:15 +00:00
José Fonseca
28e80aa0b8
tgsi: Report an error when a destination has an empty writemask.
2010-02-22 21:47:07 +00:00