Vinson Lee
08cddfe291
svga: Remove unnecessary header.
2010-03-14 15:38:04 -07:00
George Sapountzis
41eab95b3b
glapi: exec_malloc for dispatch stubs
2010-03-14 22:24:27 +02:00
George Sapountzis
8fd7ee1815
glapi: this one should be by THREAD
2010-03-14 22:24:26 +02:00
George Sapountzis
9a649c8eaa
glapi: more organize code by arch
...
It seems that x86-64 with tls will fail to compile or load due to a missining
gl_dispatch_functions_start symbol. Not changing though, since this is how it
used to be and cannot test.
2010-03-14 22:24:25 +02:00
George Sapountzis
0ed0114de9
glapi: organize arch-specific code by arch (2)
2010-03-14 22:24:25 +02:00
George Sapountzis
6c8e5151f1
glapi: organize arch-specific code by arch
2010-03-14 22:24:24 +02:00
Marek Olšák
6e4b05637f
r300g: remove pipe_context from r300_screen
2010-03-14 14:40:38 +01:00
Chia-I Wu
23e9a25e1f
st/glx: Fix glXCopySubBufferMESA.
...
Honor the (x, y) and (width, height) pairs.
2010-03-14 14:59:55 +08:00
Chia-I Wu
d6262bdcfb
st/glx: Sync the back buffer to the front buffer.
...
Consider this rendering sequence
* render to the back buffer
* swap buffers
* read from the front buffer
The front buffer is expected to have the contents of the back buffer.
2010-03-14 13:16:24 +08:00
Chia-I Wu
48bc3cca89
st/glx: Add support for GLX_MESA_copy_sub_buffer.
...
Create a per-display pipe_context as needed to copy the contents between
framebuffer attachments. This allows us to support
GLX_MESA_copy_sub_buffer.
2010-03-14 13:16:21 +08:00
Chia-I Wu
6632915e95
st/glx: Add xmesa_display to hold per-display variables.
...
This basically adds a static xmesa_display to collect per-display static
variables in xm_api.c. Multiple display support is still missing, but
this is a step forward.
2010-03-14 11:27:53 +08:00
Chia-I Wu
4a30330b26
st/mesa: Fix handling of FBO.
...
FBOs are created by st_new_framebuffer and cannot be casted to
st_framebuffer.
2010-03-14 10:23:51 +08:00
Vinson Lee
2615bba182
softpipe: Remove unnecessary header.
2010-03-13 18:05:39 -08:00
Dan Nicholson
de4ee20578
gallium: Respect user's CFLAGS for including X headers
...
This can break on systems that don't have a system X installation.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2010-03-13 11:56:59 -08:00
Jeff Smith
8d86d395dc
Use X_LIBS from pkg-config, instead of libdir, for locating libX11
...
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2010-03-13 11:42:24 -08:00
José Fonseca
392d37609d
llvmpipe: Switch to PIPE_TEX_MIPFILTER_NONE when texture has no mipmaps.
2010-03-13 19:11:33 +00:00
Marek Olšák
3996e49369
r300g: add high quality anisotropic filtering for R5xx (disabled by default)
...
Oh look, an undocumented feature. It's a nice tool for benchmarking
texturing.
2010-03-13 18:23:27 +01:00
Marek Olšák
d5749fb6fc
r300g: fix anisotropic filtering, fix macrotiling
...
Two bug fixes at the same time. :)
2010-03-13 18:23:27 +01:00
Marek Olšák
bcec6d851c
r300g: refrain from using immediate mode if it causes slowdown
...
E.g. when mapping buffers could flush CS or cause waiting
for a busy buffer.
The side effect of this is it also fixes progs/demos/arbocclude however
a separate fix should be proposed to address this issue in other cases
it might occur.
2010-03-13 18:23:27 +01:00
Marek Olšák
e31bca139f
r300g: fix up function names
2010-03-13 18:23:26 +01:00
Maciej Cencora
abc847c20d
radeon: add some debuging info for glCopyTex(Sub)Image
2010-03-13 17:33:48 +01:00
Maciej Cencora
18ecf41835
r300: blits for small dst pitch work just fine
2010-03-13 17:30:19 +01:00
Maciej Cencora
aba40bd434
radeon: fix gl format to mesa format mapping and add GL_BGRA formats
2010-03-13 17:30:19 +01:00
Maciej Cencora
1a8a230a61
radeon: fix glCopyTex(Sub)Image
...
Fallback to swrast for software renderbuffers
2010-03-13 17:30:19 +01:00
José Fonseca
bf40c34663
llvmpipe: Ensure the context is flushed before modifying textures.
2010-03-13 16:13:26 +00:00
José Fonseca
3abc7b985c
llvmpipe: Don't use texture transfer internally.
...
Now that transfers are context objects their sideeffects must happen in
order when used by the state tracker, but that synchronization must be
bypassed when used inside the driver, or it would cause infinite
recursion.
2010-03-13 16:04:06 +00:00
Keith Whitwell
47bfbd452c
Merge commit 'origin/master' into gallium-sampler-view
...
Conflicts:
src/gallium/auxiliary/util/u_tile.c
src/gallium/auxiliary/util/u_tile.h
src/gallium/drivers/identity/id_context.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_setup.h
src/gallium/drivers/softpipe/sp_tex_tile_cache.c
src/gallium/include/pipe/p_context.h
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
2010-03-13 15:06:35 +00:00
Chia-I Wu
8c210c1b3b
st/mesa: Validate the state in st_readpixels.
...
The front renderbuffer of a framebuffer is usually added as needed when
glReadBuffer(GL_FRONT) is called. When the call is followed by
glReadPixels, we should validate the state before reading from the
renderbuffer.
2010-03-13 20:34:45 +08:00
José Fonseca
a80e33f407
llvmpipe: Obey rasterization rules.
...
Replicates softpipe.
2010-03-13 11:23:52 +00:00
José Fonseca
3160cbabcc
llvmpipe: setup_context -> lp_setup_context
...
Otherwise IDEs and debuggers have trouble distinguishing from softpipe's
setup_context.
2010-03-13 11:23:52 +00:00
Keith Whitwell
63af29bfbe
mesa: Fix memory leak in decompress-with-blit.
...
(cherry picked from commit f05a4ee6f2840590c90da4be2fe5c6295410a5af)
2010-03-13 10:40:04 +00:00
Xavier Chantry
83fe7149ea
nv50: fixup after gallium-context-transfers merge
2010-03-13 11:33:27 +01:00
José Fonseca
50a7786619
python: Temporarily disable python state tracker until transfers are done by contexts
...
It requires changes not ony to the state tracker but to the python
scripts too.
2010-03-13 10:26:28 +00:00
Chia-I Wu
66cd38f465
st/glx: Fix framebuffer validation.
...
When xmesa_st_framebuffer_validate was called twice with different sets
of attachments, the second call was ignored. Add a texture_mask to
remember which textures have been requested to make sure the missing
ones get created.
2010-03-13 17:41:45 +08:00
Chia-I Wu
418b9ac299
st/glx: Correctly set buffer_mask of a visual.
...
Stupid typos again..
2010-03-13 17:40:05 +08:00
Chia-I Wu
f91d8c6885
st/mesa: Set revalidate in st_framebuffer_update_attachments.
...
There are two conditions that a validation is required. One is when the
the framebuffer becomes invalid. The other is when we request for
textures that we did not request before.
2010-03-13 17:01:27 +08:00
Chia-I Wu
813c58d77e
st/glx: Make xmesa_create_st_api a callback of xm_driver.
...
Instead of guessing the API in st/glx, let the target decide how to
create st_api.
2010-03-13 16:05:09 +08:00
Chia-I Wu
fecb97aab4
st/egl: Fix eglCopyBuffers.
...
Use a (real) pipe context to copy between pipe surfaces. Fix a NULL
dereference of the temporary native surface created for copying.
2010-03-13 15:14:56 +08:00
Chia-I Wu
495bfb0ad2
st/glx: Fix leaks in xmesa_st_framebuffer.
...
The textures and surface of a framebuffer should be unreferenced when
the framebuffer is destroyed.
2010-03-13 13:06:00 +08:00
Chia-I Wu
9222c09349
st/egl: Cache the pipe surface used in flush_frontbuffer.
...
It is very likely that the same surface will be flushed again and again.
Caching the surface should reduce the overhead of surface creation.
2010-03-13 13:05:21 +08:00
Alan Coopersmith
5d66fc6e3a
mklib: Fix amd64 builds on Solaris when using Sun compilers
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-03-12 19:04:19 -08:00
Corbin Simpson
2764a5191f
r300g: Forcibly sanitize max index.
...
Not perfect, but the kernel should shut up now.
2010-03-12 18:13:18 -08:00
Corbin Simpson
ecfcb1466a
Revert "st/mesa: Always recalculate invalid index bounds."
...
This reverts commit 50876ddaaf .
Per ML discussion.
2010-03-12 17:58:59 -08:00
Brian Paul
3c80e52541
gallivm: cube map sampling works now
2010-03-12 16:55:28 -07:00
Brian Paul
e910c0ba9e
gallivm: fix bugs in nested if/then/else codegen
...
Quite a bit a hair pulling was involved...
2010-03-12 16:55:28 -07:00
Brian Paul
a6196ce8be
gallivm: support non-vector float in lp_build_sgn()
2010-03-12 16:55:28 -07:00
Eric Anholt
f1d6baee0b
i965: Clarify the roles of emit_pixel_xy(), emit_delta_xy(), emit_wpos_xy().
2010-03-12 15:12:02 -08:00
Eric Anholt
f4f2737e87
i965: Clarify that DELTAXY always occurs for both X and Y.
2010-03-12 15:12:02 -08:00
Eric Anholt
46450c1f3f
i965: Do FS SLT, SGT, and friends using CMP, SEL instead of CMP, MOV, MOV.
2010-03-12 15:12:01 -08:00
Eric Anholt
8ef3b1834a
i965: Do VS SGT, SLT, and friends using CMP, SEL instead of CMP, MOV, MOV.
2010-03-12 15:12:01 -08:00