Brian Paul
e648d4a1d1
st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures
...
Previously, when we created a gallium texture for a corresponding Mesa
texture we'd only allocate space for mipmap levels >= BaseLevel.
This patch undoes that mechanism. This fixes a render-to-texture bug
when rendering to level 0 when BaseLevel=1.
Also, it makes sense to allocate the whole texture object memory when
BaseLevel > 0 since a common use of GL_TEXTURE_BASE_LEVEL is to
progressively load/render mipmaps. Eventually, the app almost always
fills in the level=0 mipmap image.
Finally, the texture image code is bit easier to understand now.
2010-04-30 12:33:40 -06:00
José Fonseca
e9bf09a98a
draw: Fix memory leaks in llvm code.
2010-04-30 19:32:20 +01:00
Adam Jackson
124ef03223
x86-64: Make assembly routines .hidden like on x86
2010-04-30 14:09:57 -04:00
Vinson Lee
32f344f443
i965g: Remove unnecessary header.
2010-04-20 17:02:03 -07:00
Vinson Lee
a5460dc6d7
llvmpipe: Change return type of declaration to match code.
...
Commit 2142108e0e changed the return type
of llvmpipe_get_texture_image_address function but didn't change the
declaration.
Fixes build.
2010-04-20 16:40:55 -07:00
Brian Paul
2142108e0e
llvmpipe: code consolidation
2010-04-20 17:28:33 -06:00
Brian Paul
1cb80d31d3
llvmpipe: remove debug code and simplify
2010-04-20 17:19:30 -06:00
Brian Paul
7688a4749e
llvmpipe: fix cube face addressing bug
...
Fixes fd.o bug 27760 (pigit fbo-cubemap).
2010-04-20 17:15:33 -06:00
Brian Paul
c668a97ad5
llvmpipe: whitespace fix
2010-04-20 17:15:33 -06:00
Jakob Bornecrantz
71901594ed
gallium: Fix copy typo
2010-04-20 23:59:38 +01:00
Jakob Bornecrantz
b88ba89397
svga: Minor clean up of winsys
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
997969b067
radeong: Minor clean up of winsys
...
Also try to wrap trace around driver on non-debug builds, its free.
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
1d98ce511d
nouveau: Minor clean up of winsys
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
c408942c9c
i965g: Minor clean up of winsys
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
1c68d1aa4c
i915g: Minor clean up of winsys
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
fa2d84d2f7
st/egl: No need to use drm_api argument struct
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
71595a5f3f
st/egl: Use correct driver_name field to get kernel driver name
2010-04-20 23:53:59 +01:00
Jakob Bornecrantz
8a0c99b379
st/egl: Check for null destroy callback on api struct
2010-04-20 23:53:58 +01:00
Brian Paul
395cec966b
mesa: better, smaller error handling code for glGet*()
...
get.o is about 17% smaller.
2010-04-20 16:17:09 -06:00
Brian Paul
f4dcb5de4e
mesa: better, smaller error handling code for glEnable/Disable/IsEnabled()
...
Use a goto instead of replicating the _mesa_error() call many times.
enable.o is about 15% smaller.
2010-04-20 16:17:09 -06:00
Brian Paul
f86d7af4a0
mesa: raise GL_INVALID_OPERATION for glReadPixels(GL_COLOR_INDEX)
...
We no longer support CI-mode color buffers so this is always an error.
2010-04-20 16:17:08 -06:00
Jakob Bornecrantz
ed94c26ce8
svga: Init surface functions
2010-04-20 23:16:20 +01:00
Jakob Bornecrantz
f86def5e74
util: Add missing break statement in u_caps.c
...
Thanks Vinson.
2010-04-30 14:46:18 +01:00
Brian Paul
7c769bef05
st/mesa: remove unused/disabled code
2010-04-29 15:50:30 -06:00
Brian Paul
421e9aa71c
mesa: added _mesa_print_framebuffer() for debugging
2010-04-29 15:50:30 -06:00
Eric Anholt
ee29b86129
i965: Reject shaders with uninlined function calls instead of hanging.
...
Most of the failure from using uninlined function calls ends up being
just bad rendering, but nested function calls in the VS currently hang
the GPU, so reject them and explain why.
2010-04-29 13:37:27 -07:00
Eric Anholt
07a248a366
mesa: Don't overwrite a driver's shader infolog with generic failure message.
2010-04-29 13:37:27 -07:00
Jakob Bornecrantz
f7cf8b4658
util: Update caps after helpfull input
...
In no particular order:
* Make list const
* Add function comments
* Clearly state that demo lists are not complete
* Fix whitespace
* Use __FUNCTION__ instead of __func__
* Add unimplemented check which always fail
Thanks Brian and Keith.
2010-04-29 17:59:47 +01:00
Jakob Bornecrantz
110a956a64
util: Add small caps checker helper
2010-04-29 17:00:21 +01:00
Jakob Bornecrantz
3865e3abd4
util: Format error format string as the rest of the pipe formats
2010-04-29 17:00:21 +01:00
Jakob Bornecrantz
c4e89d130f
softpipe & llvmpipe: Enable SM3 cap
2010-04-29 17:00:21 +01:00
Zack Rusin
b7618c89b1
draw llvm: stay in bounds even if fetch_count % 4 != 0
...
if fetch_count % 4 != 0 then on the last iteration we fetch garbage.
this patch makes sure we stay within bounds
2010-04-29 11:53:32 -04:00
Brian Paul
4ccee74725
cso: remove commented-out code, update function docs
2010-04-29 09:39:17 -06:00
Brian Paul
60a6bfefd1
gallivm: add some assertions in special-case sampler code
2010-04-29 09:39:17 -06:00
Eric Anholt
7d8f0fc282
i965: Fix cube map layouts on Ironlake.
...
We were doubling up the offsets for the mipmap levels for CPU access.
Instead of reimplementing i945_miptree_layout_2d with 6 cube images
separated by qpitch, share that function and provide the level offsets
later.
Fixes piglit cubemap and fbo-cubemap.
2010-04-29 08:34:15 -07:00
Eric Anholt
d05c35914d
i965: Implement VS MAX in a more obvious way.
...
This should be functionally equivalent, with the possible exception of
NaN handling.
2010-04-29 08:34:14 -07:00
Eric Anholt
084d8fdd36
i965: Use immediate float operands for some VS instructions.
...
We could use this to reduce constant register pressure, but for now it
makes the resulting program assembly much more readable.
2010-04-29 08:34:14 -07:00
Brian Paul
ba6d8448e1
llvmpipe: fix texture/display target memory leak
2010-04-29 09:10:05 -06:00
Michel Dänzer
7327a84b18
gallium/draw: Fix PPC compiler warning.
2010-04-29 10:05:49 +02:00
Michel Dänzer
63d1134c86
gallium/draw: Fix PPC build failure.
2010-04-29 10:05:48 +02:00
Marek Olšák
9be226c8b5
r300g: fix compiler error
...
Ouch.
2010-04-29 07:32:56 +02:00
Marek Olšák
18a5da7a65
r300g: use the enum for color swizzles in the rasterizer
2010-04-29 07:18:37 +02:00
Marek Olšák
04c1536bf7
r300g: rasterizer debug logging
2010-04-29 06:57:08 +02:00
Marek Olšák
9dd06b8da4
r300g: fix tests/yuvrect and possibly even rendering to YUV textures
2010-04-29 05:26:41 +02:00
Marek Olšák
2ba0c64c26
r300g: enable the RGBA16F renderbuffer too
2010-04-29 05:07:23 +02:00
Marek Olšák
195160f8e9
r300g: enable float textures
...
We still need to wait for state tracker support.
2010-04-29 05:00:17 +02:00
Marek Olšák
3b667700a5
r300g: compose swizzles from texture formats and sampler views
2010-04-29 04:39:19 +02:00
Marek Olšák
95bfc8f325
r300g: init s3tc fetching functions
2010-04-29 03:18:42 +02:00
Jakob Bornecrantz
cebfd1a0cf
targets: Use a valid winsys include path in Makefile.dri
2010-04-20 22:49:51 +01:00
Corbin Simpson
73c0f9f0f4
r300g: Spill a bit more info about implementation errors in surface_copy.
...
compiz appears to hit this. Weird.
2010-04-20 13:10:27 -07:00