Commit Graph

32216 Commits

Author SHA1 Message Date
Brian Paul dd67103d86 gallivm: remove debug code. nearest minification works now. 2010-03-10 18:09:49 -07:00
Brian Paul 19371fb60d llvmpipe: fix loop over mipmap levels 2010-03-10 18:09:49 -07:00
Francisco Jerez 878eef8c40 dri/nouveau: Just reemit the BO state on pushbuf flush.
Reemitting dirty states on flush causes problems if the GL context
isn't fully consistent when we get to it. It didn't serve any specific
purpose, so, use nouveau_bo_state_emit instead.
2010-03-11 00:59:59 +01:00
Eric Anholt 56ff30a9f9 i965: Use the PLN instruction when possible in interpolation.
Saves an instruction in PINTERP, LINTERP, and PIXEL_W from
brw_wm_glsl.c For non-GLSL it isn't used yet because the deltas have
to be laid out differently.
2010-03-10 15:18:19 -08:00
Eric Anholt dc8c035944 i965: Set up the execution size before relying on it.
Fixes hangs with texturing in the non-GLSL path since
f6d210c284
2010-03-10 15:17:47 -08:00
Jose Fonseca d42229707a gallivm: simplify conditional branching
Instead of testing each component individually, we can test the entire
vector at once.
2010-03-10 17:22:30 -05:00
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
Karl Schultz 242893cce2 windows: Quiet warning by not defining YY_NO_UNISTD_H. 2010-03-10 14:40:32 -07:00
Brian Paul c7be039fad progs/trivial: use -c option to use glCopyPixels()
Otherwise we use glRead/DrawPixels to copy the off-screen FBO image
into the window.

Looks like NVIDIA's broken when using -c (the image is upside down),
but OK with -c -t.
2010-03-10 14:37:05 -07:00
Brian Paul d5ccbea63c progs/trivial: make clear-fbo-scissor.c work with other GL drivers
NVIDIA's driver requires that the texture that we're going to render into
be complete.  Need to set min/mag filters to non-mipmap modes.

Plus added other error/debug checks.
2010-03-10 14:37:05 -07: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
Zack Rusin a44f362567 fpglsl: a few more useful glsl tests 2010-03-10 16:32:07 -05: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
Zack Rusin 1ad0a0fd8f fpglsl: set an integer uniform required by the loop example 2010-03-10 15:42:26 -05:00
Zack Rusin 5f80dad7fd fpglsl: add some for and while loops 2010-03-10 15:37:18 -05: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
Brian Paul 3c48f40f61 progs/trivial: add -t (RTT) option for clear-fbo-scissor.c 2010-03-10 12:19:41 -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
Brian Paul 9a7ba79b2b progs/trivial: added clear-fbo-scissor.c to test scissored clear of FBO 2010-03-10 11:52:07 -07: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
José Fonseca ddb081e3ed Revert "scons: Refuse to use LLVM 2.7 for now."
This reverts commit 44703217f7.

http://www.llvm.org/bugs/show_bug.cgi?id=6429 has been fixed now. Things
appear to be working reasonably so far.
2010-03-10 18:09:33 +00:00
Brian Paul daad54f6ce progs/tests: add additional FBO->window test paths (disabled)
Normally use glReadPixels + glDrawPixels.  Add debug/test paths for
glCopyPixels and glBlitFramebuffer.
2010-03-10 10:59:06 -07: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