Commit graph

33370 commits

Author SHA1 Message Date
José Fonseca
350bbc946a util: Keep const keyword when unpacking formats. 2010-04-08 19:03:40 +01:00
José Fonseca
3f62664679 util: Reorder the code generated function so that they are grouped by format.
Makes it easier to copy and paste.
2010-04-08 19:03:40 +01:00
Li Peng
9599da3374 intel: Call intel_prepare_render() in intelClear()
Make sure we have up to date buffers before we start looking at
the tiling bits to determine how to clear.
2010-04-08 13:52:55 -04:00
Zack Rusin
074084d563 draw llvm: hook up the generated function into the draw elts path
we were only using the jited function in the linear case, now drawelts
correctly uses the same path. it results in a significant gain in
real world apps (openarena went from 23fps to 29fps)
2010-04-08 10:53:21 -04:00
José Fonseca
3ceafcf143 draw: Fix vertex buffer indexation. 2010-04-08 11:00:42 +01:00
José Fonseca
d2f8162f91 util: Don't call util_dl_close(library) when util_format_s3tc_init is successful."
Otherwise the library will be unloaded and function pointers become invalid.

This reverts commit bc2bc0306e.
2010-04-08 10:36:16 +01:00
Vinson Lee
bc2bc0306e util: util_dl_close(library) before exiting util_format_s3tc_init. 2010-04-08 00:55:16 -07:00
Vinson Lee
01ec162d53 draw llvm: Remove unnecessary header. 2010-04-08 00:30:40 -07:00
Vinson Lee
94e5bc23e7 llvmpipe: Remove unnecessary header. 2010-04-08 00:18:46 -07:00
Dave Airlie
dff50ff592 Merge remote branch 'origin/7.8'
Conflicts:
	Makefile
	configs/default
	src/mesa/main/version.h
2010-04-08 16:48:41 +10:00
Chia-I Wu
968bf9634e st/dri: Fix setTexBuffer2 with __DRI_TEXTURE_FORMAT_RGB.
When the format is __DRI_TEXTURE_FORMAT_RGB, the texture should be
treated as if there is no alpha channel.
2010-04-08 16:47:11 +10:00
Dave Airlie
4b39a0da89 texenvprogram: fix for ARB_draw_buffers.
piglit has a test called fbo-drawbuffers, this fails for me on r300g,
and fixing the texenv program to use the DATA outputs fixes it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-08 15:19:52 +10:00
Zack Rusin
821abff8c0 draw llvm: highly reduce the compilation times for draw llvm
our code resets pipe_vertex_buffer's with different offsets when rendering
vbo, meaning that we kept creating insane number of shaders even for simple
apps e.g. geartrain had 54 shaders and it was taking almost 27 seconds just to
compile them. this patch passes pipe_vertex_buffer's to the jit function and lets
it to the stride/buffer_offset computation at run time. the slowdown at runtime
is largely unnoticable but the we go from 54 shaders to 3, and from 27 seconds to less
than 1.
2010-04-07 17:50:11 -04:00
José Fonseca
40bac07f9b gallivm: Get the format translation logic write. 2010-04-07 22:17:07 +01:00
José Fonseca
2c06fa4682 util: Support fixed formats conversion. 2010-04-07 22:16:18 +01:00
José Fonseca
783e94243a util: Add copyright header to u_half.h 2010-04-07 21:00:18 +01:00
José Fonseca
f15469039a util: Remove the half typedef from p_compiler.h.
Unnecessary, and doesn't even guarantee size.
2010-04-07 21:00:05 +01:00
José Fonseca
68df294997 llvmpipe: Add missing include. 2010-04-07 20:55:31 +01:00
José Fonseca
d96e87c3c5 util: Use stubs for the dynamically loaded S3TC functions.
Loosely based on Luca Barbieri's commit
52e9b990a1.
2010-04-07 20:47:38 +01:00
José Fonseca
a46ca64562 draw: Fix MSVC build (snprintf->util_snprintf). 2010-04-07 20:41:09 +01:00
José Fonseca
ecdd6bc3e2 util: Remove u_tile.c YCbCr's.
Superseded by u_format_yuv.c. Also PIPE_FORMAT_YUYV's interpretation was
inconsistent: it was being interpreted as VYUY.
2010-04-07 19:58:18 +01:00
José Fonseca
7f9444050f util: Implement YUV and subsampled RGB format conversion. 2010-04-07 19:47:24 +01:00
Brian Paul
78fd65fd2c draw: init draw->pt.middle.general = NULL just to be safe
This field should be null from the initial calloc() of the draw context,
but let's be safe (and improve understanding of the code).
2010-04-07 07:09:57 -06:00
José Fonseca
da17623c33 llvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine. 2010-04-07 13:49:29 +01:00
Michel Dänzer
765dc9fc32 r300: Initialize compiler.max_temp_regs for blits.
Blits were broken since commit e41a64591b
('r300/compiler: make the max number of fragment shader temporaries
adjustable').
2010-04-07 11:21:15 +02:00
Vinson Lee
95bfd0067c draw llvm: Remove unnecessary headers. 2010-04-07 01:04:45 -07:00
Vinson Lee
1e51bbf77f gallium: Add files to Makefile.
This was missed in commit ae69f9fbf0.
New files from the gallium_draw_llvm merge were added to SCons but
not make.
2010-04-07 00:45:40 -07:00
Vinson Lee
88a0d7e1bf llvmpipe: Remove unused variable. 2010-04-06 23:48:00 -07:00
Ben Skeggs
2d606c13ff nouveau: allow multiple simultaneous maps of a pipe_transfer
I'm not entirely convinced we want this behaviour (the underlying nouveau_bo
doesn't support it either), but since certain parts of the mesa state
tracker appear to require it lets make it work for now.
2010-04-07 15:51:13 +10:00
Ben Skeggs
841b327a51 nv50: fix assertion that caused piglit texturing/texrect-many to fail 2010-04-07 15:06:59 +10:00
Zack Rusin
c60a161cc5 scons: define DRAW_LLVM if we're building it 2010-04-06 22:41:11 -04:00
Zack Rusin
1570760a97 draw llvm: disable printing of the LLVM ir 2010-04-06 22:30:22 -04:00
Marc Dietrich
0963099d5e cell: fix build
compile fix for cell driver.

Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-06 20:23:21 -06:00
Brian Paul
45c8909148 gallium/draw: add additional DRAW_LLVM check
Fixes build breakage.
2010-04-06 20:20:17 -06:00
Zack Rusin
ae69f9fbf0 Merge branch 'gallium_draw_llvm' 2010-04-06 20:09:08 -04:00
José Fonseca
fe130a7e5e llvmpipe: Support S3TC when util_format_s3tc_enabled is set. 2010-04-06 22:52:33 +01:00
José Fonseca
728741a3bd gallivm: Fallback to calling util_format_description::fetch_float for any format we can't code LLVM IR directly. 2010-04-06 22:52:33 +01:00
José Fonseca
306835cc0f gallivm: Move the global LLVM objects (module, engine, provider, target) into here. 2010-04-06 22:52:33 +01:00
Zack Rusin
695a029e9b llvmpipe: use a define to decide whether to use draw llvm paths
right now disabled by default
2010-04-06 17:15:03 -04:00
Zack Rusin
06bda76c08 draw llvm: disable debugging output 2010-04-06 17:14:13 -04:00
Zack Rusin
323fdd8ae5 draw llvm: implement simple pipeline caching using variants 2010-04-06 16:28:48 -04:00
Zack Rusin
1e0bf24139 draw llvm: fix iteration for larger vertex arrays
we were trying to store the outputs starting at the same offset we
were using for the input arrays, which was writing beyond the end of
the output array.
2010-04-06 12:37:31 -04:00
Zack Rusin
de0647dbad draw llvm: iterate with the correct stop over the outputs
it's whatever the var step is (4 usually) not an unconditional 1
2010-04-06 12:07:33 -04:00
Michal Krol
859642c655 util: Respect destination stride in pipe_get_tile_swizzle(). 2010-04-06 17:20:09 +02:00
Zack Rusin
aeaf2cf18f draw llvm: fix draw arrays
we don't index within the outputs but only within the inputs
2010-04-06 11:00:35 -04:00
José Fonseca
04ea6f5dd8 util: Make half float lookup tables constant. 2010-04-06 15:38:21 +01:00
José Fonseca
05b494c101 util: Remove the hand written SRGB format support code. 2010-04-06 15:38:21 +01:00
José Fonseca
10dd0cad67 util: Support all SRGB formats.
Based on code from Brian Paul and Michal Krol.
2010-04-06 15:38:21 +01:00
Chia-I Wu
d18d0fdcd8 egl_dri2: Flush before context switch and swap buffers.
DRI does not define any callback to flush the current context.  GLX
loader simply calls glFlush.  Follow the GLX loader here.
2010-04-06 19:54:06 +08:00
Chia-I Wu
7915151f2d st/dri: Implement DRI image extension. 2010-04-06 19:32:27 +08:00