Commit graph

34170 commits

Author SHA1 Message Date
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
Christoph Bumiller
3a5b82f335 nv50: make a working check for user memory vertex/index buffers 2010-04-20 22:08:10 +02:00
Christoph Bumiller
03e97e7f8d nv50: fix FP result counting for depth output 2010-04-20 22:08:04 +02:00
Christoph Bumiller
3c9df0bda6 nv50: support vertex index bias 2010-04-20 22:07:58 +02:00
Brian Paul
caa05ef419 llvmpipe: fix depth+stencil logic error
If both Z-test and stencil-test were enabled, we were mis-computing
the vector of updated Z buffer values.
Fixes Z testing bug in progs/demos/fbotexture.c
2010-04-20 13:51:52 -06:00
Brian Paul
48f54ecb0c llvmpipe: fix comment/typo 2010-04-20 13:51:52 -06:00
Eric Anholt
1407daf9bc i915: Map sampler indices to texture units correctly for fragment shaders.
Fixes hang with "gst-launch-0.10 videotestsrc ! video/x-raw-rgb !
glupload !  gleffects effect=heat ! glimagesink" which uses 2 samplers
pointing at GL_TEXTURE1 and GL_TEXTURE2, and piglit
glsl-fs-sampler-numbering.
2010-04-20 12:46:23 -07:00
Eric Anholt
ac3529eec4 i915: Add missing break; after handling the stub NOISE instructions.
Bug #27348
2010-04-20 12:46:23 -07:00
Brian Paul
db4ccc004a llvmpipe: fix incorrect front-facing value for fragment shader
The TGSI convention is +1 for front-facing, -1 for back-facing
Fixes glean glsl1 gl_FrontFacing tests.
2010-04-20 11:44:01 -06:00
Brian Paul
ab065b933b llvmpipe: rename mode -> interp 2010-04-20 11:23:53 -06:00
Brian Paul
3acb2b6b2f llvmpipe: remove dead code/comment 2010-04-20 10:56:01 -06:00
Brian Paul
117bf856d8 nv50: move declaration before code 2010-04-20 10:10:48 -06:00
Brian Paul
4d2804791a nv50: fixed void pointer arithment warning 2010-04-20 10:10:48 -06:00
Brian Paul
d022bddf24 gallium/util: remove bogus return statement
util_surfaces_do_detach() is a void-valued function.
2010-04-20 10:10:48 -06:00
Brian Paul
94c07b1320 progs/tests: asst. changes to antialias.c 2010-04-20 10:01:52 -06:00
Brian Paul
a2a01853f3 gallium: replace pipe_resource::_usage with pipe_resource::usage 2010-04-20 10:00:03 -06:00
Brian Paul
36c9557cae nv50: add missing idxbias param to nv50_push_elements_instanced() 2010-04-20 09:43:45 -06:00
Brian Paul
a00f4e864c llvmpipe: remove call to llvmpipe_set_texture_image_layout()
This would seem to be needed but caused some regressions.
More investigation will be done.
2010-04-20 08:42:32 -06:00
José Fonseca
cc822705e5 llvmpipe: Re-enable half float formats.
They should be working now, both textures and vertex/index/buffers.

This reverts commit efc69ca61c.
2010-04-20 16:27:42 +02:00
José Fonseca
ec8d9523d4 gallivm: Universal format support on lp_build_fetch_rgba_aos via util_format_description::fetch_rgba_float
This therefore adds support to half float vertex buffers.
2010-04-20 16:21:08 +02:00
José Fonseca
fe5a483328 gallivm: Cleanups and bugfixes to aos format translation. 2010-04-20 15:09:02 +02:00
José Fonseca
2cb0a20f67 draw: Fallback to gallivm for translation of A8R8G8B8/B8G8R8A8/R10G10B10X2/R10G10B10X2 and other formats.
These need swizzles, and bitshifts.
2010-04-20 14:02:05 +02:00
José Fonseca
e08d0cc165 gallivm: New function to fetch a pixel into a 4xfloat AoS vector. 2010-04-20 13:58:45 +02:00
José Fonseca
b29fcc7b3a gallivm: Bring aos format back to life.
Useful for fetching vertices for formats that are straight arrays.

This reverts commit aa364d091e.
2010-04-20 13:41:10 +02:00
José Fonseca
a55ead9d01 nvfx: Fix typo. 2010-04-20 13:26:59 +02:00
José Fonseca
373f03efe7 draw: Remove draw_vs_llvm.c.
To silence some warnings.

Super-seeded by Zack's new llvm middle end.
2010-04-20 13:26:59 +02:00