Commit graph

29467 commits

Author SHA1 Message Date
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
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
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
Alan Hourihane
17c560d1a4 llvmpipe: silence warning 2010-04-20 10:33:56 +01:00
José Fonseca
a6171a9dd9 Merge branch 'gallium-index-bias' 2010-04-20 11:07:08 +02:00
José Fonseca
3dcdca433a draw: No need to rebase for elt_bias.
As we are rebasing to min_index + elt_bias, and the vertex buffer has no
elt_bias.

I still don't know how to exercise this code. I hope this is now right.
2010-04-20 11:06:47 +02:00
José Fonseca
4e8154e866 draw: Fix cache elt_bias implementation. 2010-04-20 10:32:06 +02:00
José Fonseca
493a1bb822 gallium/docs: Make it clear that minIndex, maxIndex is exclusively a index buffer characteristic.
Unlike the indexBias which is specific to a draw call.

This are the semantics of both D3D and GL ARB_draw_elements_base_vertex
extension.
2010-04-20 10:22:28 +02:00
José Fonseca
f1d3f42c47 draw: Fix typo resulting from bad regular expression in index bias addition. 2010-04-20 10:19:42 +02:00
Vinson Lee
49ba607aba draw llvm: Move dereference of pointer after NULL check. 2010-04-20 00:00:52 -07:00
Vinson Lee
11913e9798 draw llvm: Remove unnecessary header. 2010-04-19 23:58:23 -07:00
Dan Nicholson
02224ec4e0 Merge branch '7.8'
Conflicts:
	progs/egl/Makefile

progs/egl/Makefile is gone on master with the egl demos split into
subdirectories. Will require an additional commit.
2010-04-19 20:22:48 -07:00
Dan Nicholson
88be2171e7 egl: Pass flags to locate Xlib headers and libraries
eglplatform.h pulls in Xlib.h on X11 platforms. Likewise, the egl glx
driver and egl programs needs to link to libX11. Make sure we use the
locations the user told us about.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2010-04-19 20:21:57 -07:00