Commit Graph

28164 Commits

Author SHA1 Message Date
Zack Rusin ac33e7752d gallivm: properly test the if condition and branch to the proper label
makes loops work
2010-03-10 16:56:42 -05:00
Zack Rusin 18d406e8a8 gallivm: implement loops 2010-03-10 16:56:42 -05:00
Maciej Cencora 3198cd4a65 radeon: fallback to sw ReadPixels if color logicop is enabled
Fixes glean/logicOp (regressed after introducing hw accelerated support for ReadPixels)
2010-03-10 22:33:40 +01:00
Maciej Cencora addedd091e r300: enable depth test only if depth buffer is available
Fixes #23532 and piglit/fbo-nodepth-test piglit/fbo-nostencil-test
2010-03-10 22:33:29 +01:00
Maciej Cencora a68e8a4eaa radeon: fix glCopyTex(Sub)Image if user FBO is bound
Fixes piglit/fbo-blit and wine d3d9 unit test.
2010-03-10 22:33:29 +01:00
José Fonseca a75519cb43 llvmpipe: Finally found a way to do vector comparisons without using intrinsics.
Only works well with LLVM >= 2.7
2010-03-10 20:50:01 +00:00
Brian Paul 7069dff80f softpipe: fix memcpy params to avoid static analysis warnings
See fd.o bug 26970.  Also added sanity check assertions.
2010-03-10 13:09:03 -07:00
Eric Anholt 48dca99feb i965: Add support for the CMP opcode in the GLSL path.
This would be triggered by use of sqrt() along with control flow.
Fixes piglit-fs-sqrt-branch and a bug in Yo Frankie!.
2010-03-10 11:18:21 -08:00
Eric Anholt f77c1cd7df i965: Print the opcode name for unrecognized opcodes in the GLSL path. 2010-03-10 11:18:21 -08:00
Eric Anholt f6d210c284 i965: Fix the response len of masked sampler messages for 8-wide dispatch.
The bad response length would hang the GPU with a masked sample in a
shader using control flow.  For 8-wide, the response length is always
4, and masked slots are just not written to.  brw_wm_glsl.c already
allocates registers in the right locations.

Fixes piglit glsl-fs-bug25902 (fd.o bug #25902).
2010-03-10 10:44:08 -08:00
Eric Anholt c8ef7a0966 i965: Print the offset for IFF in disasm 2010-03-10 10:44:08 -08:00
Brian Paul 7a2e32d684 mesa: raise an error when trying to bind non-existant texture to FBO
If the user calls glRenderBufferTexture(texture=N) but texture N
doesn't name an existing texture, raise GL_INVALID_ENUM.

Plus, add a comment about some questionable error checking code in
framebuffer_texture().  Ian?
2010-03-10 10:54:29 -07:00
Brian Paul b318039e9a mesa: added new function comments 2010-03-10 10:53:21 -07:00
Brian Paul 06c44e852f st/mesa: set strb->format field in st_render_texture()
This fixes a problem in glReadPixels when reading from an FBO's texture
attachment.  We have a better chance at hitting a fast path for
glReadPixels now.
2010-03-10 10:50:19 -07:00
Brian Paul 9543b0a1ea st/mesa: add some comments in glReadPixels code 2010-03-10 10:49:18 -07:00
Brian Paul a2fe774e09 st/mesa: consolidate duplicated texture allocation code 2010-03-10 10:48:10 -07:00
Brian Paul f60524938e Merge branch '7.8' 2010-03-10 10:44:12 -07:00
Brian Paul b60aa251e4 st/mesa: fix incorrect glCopyPixels between window/FBO
There was a DrawBuffer/ReadBuffer typo and we were neglecting to invert
the texture coords when copying from a window to an FBO.

Plus, add some surface dump/debug code (disabled).

(cherry picked from commit 34f02071618624263eba839b5aeb930d0e794078)
2010-03-10 10:42:22 -07:00
Brian Paul c78ac7fcfa st/mesa: fix incorrect glDrawPixels into FBO
We weren't inverting the textured quad when drawing into an fbo.

(cherry picked from commit 8d3f629a13afb0d6acafc7a007972fdc5efe6847)
2010-03-10 10:41:22 -07:00
Michel Dänzer a56da1005d Merge branch '7.8' 2010-03-10 18:33:17 +01:00
Michel Dänzer 766d90f1a2 st/xorg: Work around cursor reference counting bugs in older X servers.
Could result in use of freed memory and consequently random crashes, e.g. on
screen resize.
(cherry picked from commit 21c91b410a2a2cbf8eb677e59e3322f86320f2b0)

Conflicts:

	src/gallium/state_trackers/xorg/xorg_tracker.h
2010-03-10 18:26:25 +01:00
Alex Deucher a840bf4146 r200: add additional blit formats 2010-03-10 11:58:07 -05:00
Alex Deucher cc1464cce9 r100: add additional blit formats 2010-03-10 11:58:07 -05:00
Alex Deucher e167403e58 radeon/r200/r600: enable HW accelerated gl(Read/Copy/Draw)Pixels 2010-03-10 11:58:07 -05:00
George Sapountzis 7cd8f0ef9d glapi: fix bug with tls and relocs
add_dispatch (driver) and maybe get_proc_address (client) may be called before
set_dispatch is called, which results in generate_entrypoint using an unreloced
function template.
2010-03-10 18:44:47 +02:00
George Sapountzis bae3135515 glapi: these two should be ok for add_dispatch ...
- a function cannot be both static and extension, right ?

- we should be setting the offset only if not already set, right ?
2010-03-10 18:44:47 +02:00
George Sapountzis 0d1dde5b01 glapi: comments for _glapi_add_dispatch 2010-03-10 18:44:46 +02:00
George Sapountzis c4b630efdb glapi: minor cosmetic for _glapi_add_dispatch 2010-03-10 18:44:46 +02:00
George Sapountzis 3833a76eef glapi: add function set_entry_info 2010-03-10 18:44:46 +02:00
George Sapountzis cae4fdda8d glapi: parameter checking, failure paths, ... for add_function_name 2010-03-10 18:44:45 +02:00
George Sapountzis ddabf0a151 glapi: cosmetic for _glapi_add_dispatch
- static vs. extension
- indent
- s/new_offset/static_offset/
- ...
2010-03-10 18:44:45 +02:00
George Sapountzis f9cc6b3ee7 glapi: use get_extension_proc in _glapi_add_dispatch 2010-03-10 18:44:45 +02:00
George Sapountzis f0c18da2cf glapi: cosmetic for functions for static table
make similar to functions for extensions table
2010-03-10 18:44:45 +02:00
George Sapountzis 5b2340c493 glapi: add function to find extension by name 2010-03-10 18:44:44 +02:00
George Sapountzis 58985c36be glapi: functions for extensions table similar to static table 2010-03-10 18:44:44 +02:00
Roland Scheidegger 8c34437ded cell: handle NULL cso vertex_elements state object on bind
drivers need to handle NULL cso vertex elements (and others) objects.
It is possible the cso code saves/restores NULL objects (if no normal
cso object was bound before this was invoked).
This led to segfaults (for example demos/cubemap) for apps which were using
things like creating mipmaps before drawing anything.
2010-03-10 16:53:07 +01:00
Chia-I Wu c47c73293d i915g: Prevent NULL dereference.
bind_vertex_elements_state may be called with NULL velems.  Do nothing
if that is the case.
2010-03-10 23:00:09 +08:00
Chia-I Wu e4848d21e8 gallium: Do not mix winsys-drawable-handle and context-private.
update_buffer should be called with context-private, not
winsys-drawable-handle.
2010-03-10 22:21:08 +08:00
Michal Krol 9b348d0ed1 svga: Disable debug message. 2010-03-10 14:16:40 +01:00
Michal Krol 504ad3606d svga: Check if vertex elements has been bound before using it. 2010-03-10 14:16:40 +01:00
José Fonseca c282c0b6e4 softpipe: Prevent NULL dereference. 2010-03-10 12:24:03 +00:00
José Fonseca 986ce8f1c1 python: Remove broken link hack. 2010-03-10 12:05:10 +00:00
José Fonseca 7b8641bbba python: More build fixes. 2010-03-10 12:00:13 +00:00
José Fonseca fc08d13fdc trace: Make tr_public.h c++ friendly. 2010-03-10 11:53:15 +00:00
Keith Whitwell 0731d14a43 target-helpers: remove swrast_xlib.c helper
This was a good idea, but ended up tying the build systems in knots.
We can revisit this later, in particular if we can put in place dummy
implementations of cell_create_screen(), llvmpipe_create_screen()
which just return NULL if the driver isn't available.

In the meantime, just duplicate this smallish function in the two
places it was being called.
2010-03-10 11:52:04 +00:00
Keith Whitwell e47a619ea2 ws/xlib: remove dead lines 2010-03-10 11:52:03 +00:00
José Fonseca e8d884eab9 scons: Fixup the libgl-gdi build. 2010-03-10 11:34:09 +00:00
José Fonseca 6b707667c8 python: Handle the possibility that no driver is selected. 2010-03-10 11:10:58 +00:00
Keith Whitwell de27e272f4 gallium: remove trace module injection from various state trackers
Components such as state trackers, drivers, etc, should be free to be
recombined in arbtrary ways to build driver stacks.  They should not
be reaching out and trying to build the stack themselves - this is now
expected to be handled by the "target" abstraction.
2010-03-10 10:43:00 +00:00
Keith Whitwell 7e29bef7dc ws/gdi: add include 2010-03-10 10:39:37 +00:00