Brian Paul
d225221e70
llvmpipe: fix out-of-bounds texture sampling
...
If we're using a wrap mode in which border color sampling is possible
it means that texcoords may be outside of the texture image bounds.
Fetching the texel may result in a segfault.
Use the 'use_border' variable to catch such texcoords and replace
the texel offset with zero (which will be in bounds).
Fixes segfault in Lightsmark demo, fd.o bug 27877.
2010-04-30 13:59:07 -06:00
Brian Paul
3a757b722d
llvmpipe: added lp_build_sample_nop() for debugging
2010-04-30 13:59:07 -06:00
Roland Scheidegger
7662e3519b
Merge commit 'origin/master' into gallium-msaa
2010-04-30 15:27:13 +02: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
Kristian Høgsberg
9339c1291d
gles: Build libGLESv1_CM.so and libGLESv2.so from glapi files
2010-04-28 14:41:21 -04:00
Kristian Høgsberg
a5107b0a5c
intel: Only register ES2 extensions for ES2 contexts
2010-04-28 14:36:45 -04:00
Kristian Høgsberg
0f68032a7c
configure.ac: Add options to enable GLES1/2 API support
2010-04-28 14:36:28 -04:00
Kristian Høgsberg
5efee4d4e6
intel: Advertise GLES1/2 for i915+ when enabled
2010-04-28 14:05:22 -04:00
Kristian Høgsberg
4b69100bdc
dri: Add DRI entrypoints to create a context for a given API
2010-04-28 14:05:21 -04:00
Kristian Høgsberg
e2fd98d794
egl_dri2: Use new DRI API to create a GLES1/2 context when asked to
2010-04-28 14:05:21 -04:00
Kristian Høgsberg
a7a9a91d7b
dri: Add DRI entrypoints to create a context for a given API
2010-04-28 14:05:21 -04:00
Kristian Høgsberg
0f5e8f7702
st/mesa: Move st_cb_drawtex.c to the mesa state tracker
2010-04-28 14:05:20 -04:00
Kristian Høgsberg
3bd6e00346
es: Drop es specific enums.c
2010-04-28 14:05:20 -04:00
Kristian Høgsberg
21ad81727c
glapi: Regenerate enums.c for all APIs
2010-04-28 14:05:20 -04:00
Kristian Høgsberg
9664f10023
glapi: Update gl_enum.py to generate enum tables for multiple APIs
2010-04-28 14:05:19 -04:00
Kristian Høgsberg
12c46b15d7
mesa: Drop unused _mesa_init_drawtex_dispatch()
2010-04-28 14:05:19 -04:00
Kristian Høgsberg
1904ba7936
mesa: Move drawtex functionality to main/
2010-04-28 14:05:19 -04:00
Kristian Høgsberg
87eb667759
mesa: Move glQueryMatrixxOES() implementation to core mesa
2010-04-28 14:05:19 -04:00
Kristian Høgsberg
a73eff645f
mesa: Move GLES1 texgen functions to texgen.c
2010-04-28 14:05:18 -04:00
Kristian Høgsberg
7179a82262
mesa: Move support for paletted textures to main/teximage.c
2010-04-28 14:05:18 -04:00
Kristian Høgsberg
08fae07f52
mesa: Handle GL_TEXTURE_GEN_STR_OES in _mesa_Enable()
2010-04-28 14:04:49 -04:00
Kristian Høgsberg
7aae8a592a
mesa: Move get_es*.c to main/
2010-04-27 19:28:11 -04:00
Kristian Høgsberg
0034339895
es: Prefix the get* functions with _es1/2 so they don't conflict
2010-04-27 19:28:11 -04:00
Kristian Høgsberg
61d94dd207
mesa: Move GL_RGB565 workaround into fbobject.c
2010-04-27 19:28:10 -04:00
Kristian Høgsberg
44f9aef9ee
mesa: Move GLES1/2 vbo entrypoints to vbo_exec_api.c
...
This let's us drop stubs.c.
2010-04-27 19:28:10 -04:00
Kristian Høgsberg
c90166fd4f
mesa: Move GLES2 shader stubs to main/shaders.c
2010-04-27 19:28:10 -04:00