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 34f0207161 )
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 8d3f629a13 )
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 21c91b410a )
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
Michal Krol
5d4360d10c
gallium: pipe_get_tile_swizzle() accepts format parameter.
...
Enables casting of texture data.
2010-03-10 16:32:34 +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
Michal Krol
3ce4375912
Merge branch 'master' into gallium-sampler-view
...
Conflicts:
src/gallium/auxiliary/Makefile
src/gallium/auxiliary/SConscript
src/gallium/auxiliary/tgsi/tgsi_exec.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i965/brw_context.h
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/nv50/nv50_context.h
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/drivers/nv50/nv50_tex.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_sampler.c
2010-03-10 15:49:30 +01: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
Ben Skeggs
ed7f73e161
nouveau: translate PIPE_BUFFER_USAGE_UNSYNCHRONIZED
2010-03-10 16:30:03 +10:00
Ben Skeggs
139062946d
nv50: inline nv50_state_flush_notify()
...
It's (rightly) not called from anywhere else now
2010-03-10 16:30:03 +10:00
Ben Skeggs
7b7fcb0854
nv50: remove nv50_context.state.instbuf
2010-03-10 16:30:02 +10:00
Ben Skeggs
9b233ce7de
nv50: remove unnecessary macro
2010-03-10 16:30:02 +10:00
Ben Skeggs
3f93fa6010
nv50: move nv50_prim() into a header file rather than duplicating
2010-03-10 16:30:01 +10:00
Ben Skeggs
4796986c98
nv50: add option to force immediate-mode submission, disable by default
2010-03-10 16:30:01 +10:00