Commit Graph

32191 Commits

Author SHA1 Message Date
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
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
c4e0ae3907 docs: Update new opengl32.dll target location. 2010-03-10 12:09:16 +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
Keith Whitwell
431a2f99bc target-helpers: helper for injecting common debug layers
Add a helper gallium_wrap_screen() for injecting the commonly
used extra layers into a gallium stack.  Currently that's just the
trace module and identity layer, but there could be more in the
future, eg. a validation layer.
2010-03-10 10:37:57 +00:00
José Fonseca
601bfb5951 python: Fix up state tracker for sw api. 2010-03-10 10:34:29 +00:00
José Fonseca
5235c5aac7 Revert "r300-gallium: Skeleton for integrating into the python statetracker."
This reverts commit 2d56d0839e.

Never actually used.
2010-03-10 10:02:03 +00:00
Keith Whitwell
80f86d22b2 st/wgl: add missing paramter 2010-03-10 09:52:25 +00:00
Keith Whitwell
7ce6b31306 trace: include tr_public.h 2010-03-10 09:51:41 +00:00
Keith Whitwell
3e38dbe3d3 gallium: plumb winsys-drawable-handle through to state tracker
The state trackers need this value so that they can supply it
as the "void *" argument to flush_frontbuffer.

Fixes single-buffer rendering.
2010-03-10 09:22:02 +00:00
Keith Whitwell
155fbcb0ed Merge commit 'origin/master' into gallium-sw-api-2 2010-03-10 08:29:27 +00:00
José Fonseca
eeaa0861bf llvmpipe: Cope with null Vertex element cso.
CSO can often be null.

For example:
1. at initialization
2. using an util module (u_blit) right after initialization (it will push
   state and pop the previous null state)
3. at shutdown time (state shouldn't be bound when being destroyed)

Glean was hitting 2.
2010-03-10 07:23:29 +00:00