Marek Olšák
ac6a26b429
r300g: use util_format_short_name and util_format_is_plain
vor 15 Jahren
Marek Olšák
5a6b9f3855
util: add util_format_short_name
vor 15 Jahren
Marek Olšák
bc3d9a8b18
util: add util_format_is_plain
vor 15 Jahren
Marek Olšák
5cdedaaf29
r300g: refuse to create a texture with size 0
vor 15 Jahren
Marek Olšák
0bcb4f1001
r300g: improve texture debug output, split into TEX and TEXALLOC flags
vor 15 Jahren
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>
vor 15 Jahren
José Fonseca
723ab664f6
svga: Silent warning.
vor 15 Jahren
Kristian Høgsberg
723511bb32
Generate es glapi files when es1 or es2 is enabled
vor 15 Jahren
José Fonseca
9db4a211e9
gallivm: Display message instead of crashing when sampler generator was not supplied for tgsi translation.
vor 15 Jahren
Kristian Høgsberg
9ab3df4ebb
driswrast: Fix more context creation breakage
Pointed out by Colin Harrison.
vor 15 Jahren
José Fonseca
4b891234f8
translate: Make translate_generic truly generic.
PIPE_FORMAT_R10G10B10X2_USCALED, half floats, were not supported, so
just rely on u_format for (almost) universal format support.
vor 15 Jahren
José Fonseca
caede7528d
draw: Remove draw_pt_fetch_prepare call from llvm middle end.
Unneeded since we code generate the vertex fecthes.
vor 15 Jahren
José Fonseca
14a0328d4b
tgsi: Parse and dump predicates.
vor 15 Jahren
José Fonseca
d288698a76
gallium: Remove loop register file.
It was only used for D3D's REP/END/BGNFOR/ENDFOR. D3D's aL register is
just like another address register now.
vor 15 Jahren
José Fonseca
e27983bc08
gallivm: Replace predicate assertion failure with warning message.
vor 15 Jahren
José Fonseca
d44c8ee568
draw: Disable rtasm compilation when using LLVM.
Saves time and trouble.
vor 15 Jahren
Dave Airlie
738cb50237
nouveau: fix nouveau_create_context decleration
vor 15 Jahren
Dave Airlie
e8f48b1dc9
softpipe: invalidate cache view when swizzles are different.
Current code only invalidated if the texture was different, however we
store swizzled values in the cache, so we need to invalidate in that case
also.
Signed-off-by: Dave Airlie <airlied@redhat.com>
vor 15 Jahren
Dave Airlie
26a9b7e4c7
glx: fix regression with GLX_USE_GL
update for fbconfig_style_tags
vor 15 Jahren
Zack Rusin
d2b6ed7c4d
gallivm: fix nested break and continue statements
we were resetting the mask on each new break/continue statement within
the same scope. we always need to and the current execution mask
with the current break/continue mask to get the correct result (the
masks are always ~1 initially)
vor 15 Jahren
Jakob Bornecrantz
c2c1f60391
identity: Move sampler view create and destroy to id_objects.c
vor 15 Jahren
Jakob Bornecrantz
59b160d286
identity: s/texture/resource/
vor 15 Jahren
Jakob Bornecrantz
eda7c2506a
identity: Whitespace & Style
vor 15 Jahren
Jakob Bornecrantz
83a1a0bc3e
swrast: Correct include for mtypes.h
vor 15 Jahren
Luca Barbieri
d0f9e7521c
gallium/util: print \n after DXTn printf
Re-add commit 2d65a7caf9
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
vor 15 Jahren
Xavier Chantry
5362f77b47
llvmpipe: add lp_test_* to .gitignore
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
vor 15 Jahren
José Fonseca
b84590994c
svga: Remove the screen private context.
All affected operations have already been moved to context.
More cleanup work can be done, in particular with the buffer transfers.
vor 15 Jahren
José Fonseca
49e37469bd
svga: Remove empty file.
vor 15 Jahren
José Fonseca
7e28479c3a
svga: Update flags documentation.
vor 15 Jahren
José Fonseca
4885cd4ff7
softpipe: Fix alpha blending for formats without alpha channel.
Don't use the dst alpha channel from the tile cache when it does not
exist in the true format.
vor 15 Jahren
José Fonseca
59253a79d8
llvmpipe: Fix alpha blending for formats without alpha channel.
Don't use the dst alpha channel from the swizzled tile when it does not
exist in the true format.
vor 15 Jahren
Xavier Chantry
b44c52870d
Update drisw state tracker to use new API aware context create
Even though swrast defines its own __DriverAPIRec it still shares the
driCreateNewContext() implementation from dri_util.c. So the CreateContext
prototypes have to match in the two __DriverAPIRecs.
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
vor 15 Jahren
Vinson Lee
6edb18ee35
svga: Include svga_surface.h in svga_screen.c.
Fixes svga_screen_init_surface_functions implicit declaration warning.
vor 15 Jahren
Vinson Lee
1a30d98159
r300g: Remove unnecessary header.
vor 15 Jahren
Xavier Chantry
38e3fb23da
Update dri state tracker to use new API aware context create
vor 15 Jahren
Vinson Lee
801dcd9e8f
mesa: Include api_exec.h in dlist.c.
Fixes _mesa_alloc_dispatch_table implicit declaration warning.
vor 15 Jahren
Marek Olšák
b08b7b7377
r300g: do not validate buffers in check_cs
It's already done in r300_emit_buffer_validate.
This also fixes Total Annihilation 3D on debug builds at least.
vor 15 Jahren
Marek Olšák
3b2cf97c5c
r300g: fix surface_copy for compressed formats
No accelerated blitting for these, it's too messy.
vor 15 Jahren
Kristian Høgsberg
2df3c361ef
configure.ac: Fix test for whether to build src/gles
vor 15 Jahren
Kristian Høgsberg
aa8606fb23
mesa: Include mfeatures.h before testing feature macros
vor 15 Jahren
Kristian Høgsberg
da76a4d845
mesa: Only compile ES files when ES1 or ES2 are selected
This still requieres manual generation of the es1 and es2 glapis and is
disabled by default.
vor 15 Jahren
José Fonseca
559d124ed3
mesa: #ifdef out more remap_table related code when disabled.
Seems to get everything building again here.
vor 15 Jahren
José Fonseca
316b6fa509
retrace: Add sampler_view_destroy
vor 15 Jahren
José Fonseca
db1ed3da6c
trace: Fix typo in method name.
vor 15 Jahren
Kristian Høgsberg
0870e4a202
Merge branch 'gles2-2'
Conflicts:
src/mesa/drivers/dri/common/dri_util.h
vor 15 Jahren
Kristian Høgsberg
9fd5fa0512
Hook in install rules for es1 and es2
vor 15 Jahren
Kristian Høgsberg
74399d4af5
Add glesv2.pc and glesv1_cm.pc pkg-config files for ES 1 and 2
vor 15 Jahren
Kristian Høgsberg
a804af2a1e
st/mesa: Create context for API_OPENGL as first priority
vor 15 Jahren
Marek Olšák
9d33605673
r300g: always set the pitch of the first miplevel in the tiling flags
This further reduces the number of DRM calls and flushes.
vor 15 Jahren
Marek Olšák
82027b2027
Revert "r300g: disable point sprites (again)"
This reverts commit 3e0f1719d4
.
vor 15 Jahren