nobled
7ce9a3adc5
os, rbug: remove PIPE_THREAD_HAVE_CONDVAR
...
The new default implementation of pipe_condvar makes it
unnecessary.
2010-07-12 15:40:33 +01:00
nobled
f321d5c38a
os: Implement pipe_condvar on Windows Vista and later
...
Unfortunately compiling with these defines enabled would mean
Gallium can't run on Windows XP/2003 or older.
Todo: Need a macro to declare if we don't care about WinXP
compatibililty.
2010-07-12 15:40:32 +01:00
nobled
9795a60a8f
os: Implement pipe_condvar on win32
...
Or at least a little of it. This version will sleep
for a fixed amount of time instead of just deadlocking,
which is a slight improvement.
Also do the same thing on any unrecognized platform.
2010-07-12 15:40:32 +01:00
Marek Olšák
8c836f7f74
r300g: implement fast color clear
...
An initial implementation made by Dave Airlie.
For it to be used, a color-only clear must be invoked and exactly one
point-sampled render target must be set. The render target must be
macrotiled (for us to overcome alignment issues) and bpp must be either
16 or 32.
I can't see a difference in performance. :(
Conflicts:
src/gallium/drivers/r300/r300_blit.c
2010-07-12 13:26:00 +02:00
Marek Olšák
78e8a8765f
r300g: clear and copy a resource with a rectangular point sprite
...
With an ordinary quad, the pixels on the main diagonal are computed
and stored twice, which is somewhat inefficient and might not work well
with specialized clear codepaths.
2010-07-12 13:06:45 +02:00
Marek Olšák
0864851e27
r300g: do not use immediate mode if there is a VBO in VRAM
...
And other minor fixups.
2010-07-12 06:52:06 +02:00
Marek Olšák
9be8f7d226
u_blitter: add draw_rectangle callback which can be overridden by a driver
2010-07-12 06:32:52 +02:00
Marek Olšák
749e24521a
u_blitter: clean up the texcoord computations
2010-07-12 05:32:42 +02:00
Marek Olšák
3bd15a9e43
u_blitter: simplify blitter_set_rectangle
2010-07-12 05:16:19 +02:00
Marek Olšák
9b03da9bdd
u_blitter: rename blitter->base, add a way to get a pipe context from blitter
2010-07-12 02:06:39 +02:00
Marek Olšák
9cdd481f8e
r300g: ugly fix of a hardlock in the cubestorm xscreensaver
...
FDO bug #28563 .
2010-07-12 00:04:52 +02:00
Maciej Cencora
72e6a1e72f
radeon: lower texture memory consumption is some cases
...
When searching for valid miptree check images in range
of [BaseLeve, MaxLevel] not [MinLod, MaxLoad].
Prevents unnecessary miptree allocations in cases when during
every rendering operation different texture image level
was selected using MIN_LOD = MAX_LOD = level (for every level
new miptree for whole texture was allocated).
Candidate for 7.8 branch.
Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
2010-07-11 15:39:48 +02:00
Maciej Cencora
ad24ea37bb
radeon: fix teximage migration failure in rare case
...
Always store selected miptree in texObj->mt so get_base_teximage_offset returns correct data.
Found with piglit/mipmap-setup.
Candidate for 7.8 branch.
Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
2010-07-11 15:34:17 +02:00
Maciej Cencora
452a7d5a9d
r300c: Fix vertex data setup for named buffer objects with unaligned offset
...
Candidate for 7.8 branch
Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
2010-07-11 14:25:35 +02:00
Vinson Lee
932e4e65e3
r600: Remove unnecessary headers.
2010-07-11 00:14:53 -07:00
Zack Rusin
79b643dd02
mesa: make uniform work with geometry shaders
2010-07-10 19:21:42 -04:00
Zack Rusin
748d8d4613
Revert "mesa: temporarily enable printing of Mesa's GPU instructions"
...
This reverts commit 7b8726a99d .
2010-07-10 18:24:22 -04:00
Zack Rusin
df0831f375
mesa: GL_TRIANGLE_STRIP_ADJACENCY_ARB is the last valid primitive
2010-07-10 18:14:47 -04:00
Zack Rusin
cc426b8132
tgsi: make sure that we print out the adjacency prims correctly
2010-07-10 18:14:14 -04:00
Zack Rusin
f52f8e9a8c
draw: fix decomposition to work with adjacency primitives
2010-07-10 18:13:48 -04:00
Marek Olšák
d63cb78ddd
r300g: do not print a rejected CS if RADEON_DUMP_CS is not set
...
Also print relocation failures on non-debug builds too.
2010-07-10 20:46:26 +02:00
Vinson Lee
8dc6d7610f
r600: Fix GCC 'implication declaration of function' warnings.
...
Fix GCC 'implicit declaration of function' compiler warnings resulting
from commit 00fb58ed5d .
2010-07-10 00:15:27 -07:00
Zack Rusin
425870c5fd
mesa: get the translation from mesa 2d regs to tgsi working
...
first working version of arb_geometry_shader4
2010-07-10 02:02:35 -04:00
Zack Rusin
9808308f9a
mesa: initial support for emitting 2D registers from slang
2010-07-09 22:40:04 -04:00
Vinson Lee
00fb58ed5d
r600: Remove unnecessary header.
...
Fixes r600_emit.h -> r600_cmdbuf.h -> r600_emit.h include recursion.
2010-07-09 18:59:01 -07:00
Zack Rusin
7b8726a99d
mesa: temporarily enable printing of Mesa's GPU instructions
2010-07-09 21:20:50 -04:00
Zack Rusin
b4855288e4
mesa: add basic support for 2D register arrays to mesa
...
just like in Gallium it's a basic functionality needed by a lot
of modern graphcis extensions
2010-07-09 21:19:28 -04:00
Vinson Lee
308f52d573
r600: Fix include recursion.
...
r700_chip.h included r600_context.h, which included r700_chip.h.
Remove the unnecessary r600_context.h inclusion and add missing
headers.
2010-07-09 18:09:26 -07:00
Vinson Lee
0c767b9ae6
glslcompiler: Fix GCC warn_unused_result warning.
2010-07-09 17:34:40 -07:00
Vinson Lee
16def30870
glslcompiler: Fix memory leaks on error paths.
2010-07-09 16:20:32 -07:00
Vinson Lee
011e6794e3
glslcompiler: Remove unnecessary headers.
2010-07-09 16:05:42 -07:00
Vinson Lee
343b38a692
mesa: Move [UN]CLAMPED_FLOAT_TO_UBYTE from imports.h to macros.h.
...
The other similar integer/float conversion macros are in macros.h.
2010-07-09 15:06:19 -07:00
Marek Olšák
347c00c46e
r300g: allow the GTT domain for samplers
...
This fixes sluggishness in vdrift.
2010-07-09 20:28:13 +02:00
Tom Stellard
8a8e311d8c
r300/compiler: Add a register rename pass.
...
This pass renames register in order to make it easier for the pair
scheduler to group TEX instructions together.
This fixes fdo bug #28606
2010-07-08 21:11:03 -07:00
Tom Stellard
3724a2e65f
r300/compiler: Fix scheduling of TEX instructions.
...
The following instruction sequence will no longer be emitted in separate
TEX blocks:
0: TEX temp[0].xyz, temp[1].xy__, 2D[0];
1: TEX temp[1].xyz, temp[2].xy__, 2D[0];
This fixes fdo bug #25109
2010-07-08 21:11:03 -07:00
Marek Olšák
75d0e95a3a
r300g/swtcl: fix out-of-bounds write
...
This is a typo fix, the generated code should be the same.
2010-07-09 03:53:47 +02:00
Vinson Lee
f8f1c629d6
draw: Fix off-by-one error in assert.
...
textures is an array of size PIPE_MAX_VERTEX_SAMPLERS.
2010-07-08 17:54:47 -07:00
Brian Paul
41f66915ab
glsl: fix indirect addressing of gl_TextureMatrix[] arrays
...
The code to emit an array of OpenGL state vars lacked the code
to handle the gl_TextureMatrix[] array.
Fixes fd.o bug 28967
NOTE: this is a candidate for the 7.8 branch.
2010-07-08 18:42:45 -06:00
Kristian Høgsberg
2168b87b51
egl_dri2: Support _EGL_PLATFORM_DRM
...
This lets the egl_dri2 driver initialize on just a DRM fd.
2010-07-08 20:10:37 -04:00
Vinson Lee
7595733677
glslcompiler: Fix build.
2010-07-08 16:06:01 -07:00
Vinson Lee
6dd7d654db
Merge branches 'master' and 'master' of ssh://git.freedesktop.org/git/mesa/mesa
2010-07-08 15:58:23 -07:00
Marek Olšák
392a2515c0
r300g: fix texturing with negative lod bias
...
This should fix FDO bugs #28437 and #28625 .
2010-07-09 00:16:49 +02:00
Marek Olšák
61a26cdfdc
r300g: store/return the stride for winsys_handle in winsys
2010-07-08 22:39:52 +02:00
Eric Anholt
8a3f2eb9e6
i965: Add disasm for SEND mlen/rlen on Sandybridge.
2010-07-08 13:30:56 -07:00
Zhenyu Wang
20be3ff576
i965: Add 'wait' instruction support
...
When EU executes 'wait' instruction, it stalls and sets notification
register state. Host can issue MMIO write to clear notification
register state to allow EU continue on executing again.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-07-08 12:50:53 -07:00
Eric Anholt
a3cc7585ea
i965: Fix disasm of a SEND's mlen and rlen on Ironlake.
2010-07-08 12:50:53 -07:00
Zhenyu Wang
3f906621da
i965: Add decode for Sandybridge DP write messages.
2010-07-08 12:50:53 -07:00
Zhenyu Wang
0446679551
i965: Add definitions for Sandybridge DP write/read messages.
2010-07-08 12:50:53 -07:00
Marek Olšák
9cc6b5b043
r300g: fix transfering compressed textures
2010-07-08 21:37:04 +02:00
Eric Anholt
e72b87736d
intel: Update intel_decode.c from intel-gpu-tools.
...
This came from commit cf255e382d147fe3ca450f0dcec3525190e7dcbc
2010-07-08 12:12:54 -07:00