Commit graph

34120 commits

Author SHA1 Message Date
Roland Scheidegger
433701a721 fo: adapt to interface changes 2010-05-17 21:25:27 +02:00
Roland Scheidegger
fd578be828 identity: adapt to interface changes 2010-05-17 21:25:16 +02:00
Roland Scheidegger
bd771cda8e trace: adapt to interface changes 2010-05-17 21:25:07 +02:00
Roland Scheidegger
a02ddd48c5 i965g: adapt to interface changes 2010-05-17 21:24:50 +02:00
Roland Scheidegger
bccf31bf5f i915g: adapt to interface changes 2010-05-17 21:24:04 +02:00
Roland Scheidegger
6c32670706 softpipe: adapt to interface changes 2010-05-17 21:23:46 +02:00
Roland Scheidegger
e121a73d62 llvmpipe: adapt to interface changes 2010-05-17 21:23:31 +02:00
Roland Scheidegger
57a0171225 cell: adapt to interface changes
not even compile tested but fairly trivial
2010-05-17 21:22:23 +02:00
Roland Scheidegger
127328bfad mesa/st: adapt to interface changes
adapt to blit changes, and also handle a bit more msaa state in theory
(incomplete, doesn't handle resolves in any way for now).
2010-05-17 21:19:03 +02:00
Roland Scheidegger
815b75705f gallium/util: adapt util code to interface changes
The util blit functions change their interface (apart from some rename) too
(in particular util_blit_pixels now also takes a pipe_resource as the src blit
argument instead of a surface, as it might just call resource_copy_region).
Maybe the blit util code might need a bit more cleanup, it still doesn't feel
very clean. In particular it seems that util_blit_pixels_tex should probably
disappear, and I think it would be great if the code called by drivers for
blitting (u_blitter.c, which isn't really touched by this change) could somehow
be merged with the u_blit code.
2010-05-17 21:15:20 +02:00
Roland Scheidegger
379db6a36b gallium: clean up resource_copy_region function
Previously, surface_copy was said to allow overlapping blits, and it was
"optional". However, some state trackers actually assumed it is always present,
and quite some code (like in u_blit) assumed overlapping isn't allowed.
Hence, resource_copy_region (and in the same spirit, resource_fill_region) is
now mandatory, but overlapping blits are no longer allowed. A driver can plug
in the cpu fallback util_resource_copy_region if it does not want to provide its
own implementation, though this is not optimal.
2010-05-17 21:02:24 +02:00
Roland Scheidegger
6272d7632a gallium: another interface change for multisampling
due to popular request, use nr_samples parameter in is_format_supported()
instead of new is_msaa_supported() query.
This makes it easily possible to query if a format with a given sample count
is also supported not only as render target, but for sampler views (note that
texture sampling from multisampled resources isn't supported yet).
It is not quite how dx10 format msaa queries work, but we might need to revisit
format queries completely in the future anyway.
2010-05-17 20:52:08 +02:00
Roland Scheidegger
0ae2f59c02 Merge commit 'origin/master' into gallium-msaa 2010-05-04 15:58:29 +02:00
Kristian Høgsberg
1c920c6176 intel: Enable GL_EXT_framebuffer_object for gles2 2010-05-04 09:22:35 -04:00
José Fonseca
ec43b2eb45 gallivm: Proper implementation of TXL opcode. 2010-05-04 13:51:54 +01:00
José Fonseca
4554cdc289 gallivm: Fix several glitches introduced in the prev commit. 2010-05-04 13:32:40 +01:00
Kristian Høgsberg
2b1f0e17d8 mesa: Forgot to add .pc.in files for gles
Some day I'll grow up and remember to add new files when I commit.
2010-05-04 07:23:30 -04:00
José Fonseca
962558daae gallivm: Implement TXD. 2010-05-04 10:08:10 +01:00
Chia-I Wu
3c6756d6f5 gles: Add -I$(TOP)/include. 2010-05-04 16:00:55 +08:00
Kristian Høgsberg
e83ca4052b mesa: Only initialize TNL for OpenGL 2010-05-03 21:21:58 -04:00
Kristian Høgsberg
208fdac73a mesa: Only initialize save dispatch table for OpenGL 2010-05-03 21:21:58 -04:00
Kristian Høgsberg
642839824e progs/egl/opengles2: Add es2gears demo
Because every subdirectory under progs has to have a version of gears.
2010-05-03 21:21:58 -04:00
Brian Paul
e2ea69afef mesa: increase MAX_DRAW_BUFFERS to 8
Required for GL 3.x
2010-05-03 17:35:40 -06:00
Brian Paul
8b0c217f2b gallium: move surface utility functions into u_surface.c
This is a better place than in u_rect.c
2010-05-03 17:28:32 -06:00
José Fonseca
6c8c88f02f gallivm: Increase the TGSI translation limits and centralize them in a header. 2010-05-04 00:22:16 +01:00
José Fonseca
a9d1a85f81 gallicm: Newton-Raphson step to improve precision.
Disabled as it doesn't make VS/PSPrecision DCT happy, and it would
unnecessarily slow some cases where it is not needed.
2010-05-04 00:22:16 +01:00
Brian Paul
9b02f41cac cso: use framebuffer utility functions 2010-05-03 17:13:21 -06:00
Brian Paul
1fc5a318a6 gallium: move framebuffer utility functions into a new file 2010-05-03 17:08:17 -06:00
Brian Paul
d8306c9caf st/mesa: remove dead code 2010-05-03 16:13:57 -06:00
Brian Paul
295a87f6c2 st/mesa: remove unused needFlush parameter to st_finalize_texture() 2010-05-03 16:13:20 -06:00
Brian Paul
013b332cbc st/mesa: updated comments and fix some formatting in texture storage code 2010-05-03 16:03:19 -06:00
Brian Paul
e79086865b st/mesa: rename srcImageStride -> srcRowStride and fix-up formatting 2010-05-03 15:51:00 -06:00
Brian Paul
c7d1d34c58 st/mesa: consolidate and clean-up texture memory allocation code 2010-05-03 15:48:00 -06:00
Brian Paul
fe3332da78 st/mesa: updated comments for st_texture_image_map() 2010-05-03 15:47:29 -06:00
Brian Paul
41b8a2e939 st/mesa: move some texture size calculation code 2010-05-03 15:39:40 -06:00
Brian Paul
682fec0dca st/mesa: remove old convolution-related vars and min pitch code 2010-05-03 15:35:21 -06:00
Brian Paul
b02619914e st/mesa: remove unsupported convolution code 2010-05-03 15:31:09 -06:00
Brian Paul
babd71ba45 progs/demos: check for GL_ARB_imaging if convolutions is requested 2010-05-03 15:29:02 -06:00
Brian Paul
4b7812919a st/mesa: updated comment 2010-05-03 15:17:38 -06:00
Brian Paul
a12614362a glsl: change variable declared assertion into conditional
The slang_variable::declared field originated as a debug field but
can be promoted for use during sematic error checking.

Fixes fd.o bug 27921.

NOTE: this is a candidate for back-porting to the 7.8 stable branch.
2010-05-03 13:58:53 -06:00
Brian Paul
6405ecb399 Revert "glapi: s/strcpy/strncpy/"
This reverts commit 9446fd8f69.

It doesn't make sense to replace strcpy(a,b) with strncpy(a,b,strlen(b)).
The preceeding code effectively does bounds checking, btw.
2010-05-03 13:16:11 -06:00
Brian Paul
cc67bd8799 st/mesa: remove dead code 2010-05-03 13:11:22 -06:00
Brian Paul
529b7b355d st/mesa: restore original last_layer comparison
Commit e648d4a1d1 changed the original
less-than test to a not-equal test.  This was an effort to save some
memory by switching the texture layout to a non-mipmapped layout when
we mis-guessed about the original layout (thus saving some memory).

However, this causes us to hit a new (apparently broken) code path
when copying the old texture's data to the new texture.  Simply
undo this change for the time being until the other/new bug is fixed.

Fixes fd.o bug 27933.
2010-05-03 13:10:27 -06:00
Marek Olšák
ac6a26b429 r300g: use util_format_short_name and util_format_is_plain 2010-05-03 20:39:43 +02:00
Marek Olšák
5a6b9f3855 util: add util_format_short_name 2010-05-03 20:39:43 +02:00
Marek Olšák
bc3d9a8b18 util: add util_format_is_plain 2010-05-03 20:39:43 +02:00
Marek Olšák
5cdedaaf29 r300g: refuse to create a texture with size 0 2010-05-03 20:39:40 +02:00
Marek Olšák
0bcb4f1001 r300g: improve texture debug output, split into TEX and TEXALLOC flags 2010-05-03 19:29:32 +02:00
Török Edwin
15af543f10 Reorder LLVM passes, running mem2reg earlier.
This gives a ~30% shader optimization time improvement on blender.
Tested by comparing the dumped LLVM modules.
Current ordering:
time ~/llvm-git/obj/Release-Asserts/bin/opt l.bc  -constprop -instcombine
-mem2reg -gvn  -simplifycfg
real    0m1.126s
user    0m1.108s
sys     0m0.012s

With this patch:
time ~/llvm-git/obj/Release-Asserts/bin/opt l.bc -mem2reg -constprop -instcombine   -gvn  -simplifycfg
real    0m0.885s
user    0m0.880s
sys     0m0.000s

The overall improvement in blender is ~15%.
Blender without the patch takes 1m13s:
edwin     5934 87.6 11.5 729440 458296 pts/5   SLl+ 17:35   1:13 blender

Blender with the patch takes 1m3s:
edwin     5726 94.2 11.2 716424 446168 pts/5   SLl+ 17:32   1:03 blender

It is still slow with the patch, but better (most of the optimization time is
taken up by GVN, see LLVM PR7023).

Signed-off-by: Török Edwin <edwintorok@gmail.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-03 17:01:20 +01:00
José Fonseca
723ab664f6 svga: Silent warning. 2010-05-03 17:01:20 +01:00