Brian Paul
75189ef960
llvmpipe: use util_dump_logicop()
2010-05-20 10:27:11 -06:00
Brian Paul
c2a036d4ef
llvmpipe: put variant print/debug code into separate function
2010-05-20 10:27:11 -06:00
Roland Scheidegger
43234cee40
gallium: implement set_sample_mask() in all drivers
...
prevents segfault when state trackers try to set default mask.
Other option would be to make this required only for drivers
supporting multisampling, but this seems more clean.
Only dummy implementations (for normal drivers) provided (no driver
supports multisampling yet neither).
2010-05-18 16:20:44 +02:00
Roland Scheidegger
e121a73d62
llvmpipe: adapt to interface changes
2010-05-17 21:23:31 +02:00
Brian Paul
e5ee8b4fae
llvmpipe: fix front/back tri culling mix-up
2010-05-17 11:43:43 -06:00
Keith Whitwell
0bd1cbcd0d
gallium: convert rasterizer state to use gl-style front/back concepts
...
Use front/back instead of cw/ccw throughout.
Also, use offset_point/line/fill instead of offset_cw/ccw.
Brings gallium representation of this state into line with its main
user, and also what turns out to be the most common hardware
representation.
This fixes a long-standing bias in the interface towards the
architecture of the software rasterizer.
2010-05-14 13:04:42 +01:00
Brian Paul
d9096926f8
llvmpipe: silence casting warnings
2010-05-13 14:15:44 -06:00
Brian Paul
966d28cb2e
llvmpipe: silence cast warnings in test programs
2010-05-13 14:15:44 -06:00
José Fonseca
f379e7df4b
llvmpipe: Update instructions for MSVC builds.
2010-05-13 16:18:05 +01:00
José Fonseca
648c9d5247
llvmpipe: Dump fs key's stencil state.
2010-05-12 20:40:14 +01:00
José Fonseca
5326e1846d
llvmpipe: Enable mem2reg pass even with LP_DEBUG=nopt.
...
Otherwise things start crashing.
2010-05-12 20:18:32 +01:00
Brian Paul
c722029f3a
llvmpipe: s/bool/boolean/ in test progs
2010-05-12 12:43:09 -06:00
Brian Paul
3f6dc8e79d
gallivm/llvmpipe: add const qualifiers
2010-05-12 10:38:00 -06:00
José Fonseca
cf9baf68cb
llvmpipe: Handle PIPE_CAP_GUARD_*.
...
Without asserting.
2010-05-12 17:25:17 +01:00
José Fonseca
4c4f98c6fc
llvmpipe: Use RAST_WHOLE/EDGE_TEST in more places.
2010-05-12 17:24:34 +01:00
José Fonseca
10fdbb9298
llvmpipe: Move the opaque flag computation into the variant.
2010-05-12 17:12:59 +01:00
José Fonseca
a1b3ca6a14
llvmpipe: Advertise (gallivm's) shader limits.
2010-05-12 14:11:28 +01:00
José Fonseca
e1238b5cad
gallium: Make PIPE_CAP_xxx enums.
2010-05-12 14:11:28 +01:00
Brian Paul
08e443a1c8
llvmpipe: fix texture image size calculation
...
We were allocating too much memory for linear layouts. The block_size
factor is already included in the row_stride and should not be used in
the img_stride calculation. This is typically a 4x savings!
2010-05-11 11:52:06 -06:00
Brian Paul
fea189d6e4
llvmpipe: add a simple resource tracking/debug feature
...
If debug build, keep a linked list of all allocated resources (textures).
The llvmipe_print_resources() function can be called from a debugger to
print a list of all resources, their sizes, total size, etc.
2010-05-11 11:52:06 -06:00
Brian Paul
f70d900b80
llvmpipe: remove trailing whitespace, rewrap comment
2010-05-11 11:52:06 -06:00
José Fonseca
30a44ee4c5
scons: Export shouldn't be part of the if stanza.
2010-05-11 17:50:09 +01:00
Brian Paul
7b937cf47f
llvmpipe: enable PIPE_CAP_INDEP_BLEND_ENABLE
...
This enables the GL_EXT_draw_buffers2 extension.
Tested with progs/tests/drawbuffers2.
2010-05-10 17:04:20 -06:00
Brian Paul
f795735f42
llvmpipe: fix up indexing of blend/colormask state for render targets
2010-05-10 17:04:19 -06:00
Brian Paul
47ecb51eb4
llvmpipe: update image dump/debug code
2010-05-10 17:04:19 -06:00
Brian Paul
bd34f61a7a
llvmpipe: add, update, rewrap comments
2010-05-10 17:04:19 -06:00
Brian Paul
e0b5c6f921
gallivm/llvmpipe: move an old comment to a better location
2010-05-10 17:04:19 -06:00
José Fonseca
8ad3e0b55d
gallivm: Add an alternative to LLVMDumpValue that works with Windows GUI apps.
2010-05-08 23:29:05 +01:00
José Fonseca
852f735236
llvmpipe: Cover more formats in unit test.
2010-05-08 13:18:14 +01:00
José Fonseca
6e47d4f889
llvmpipe: Match p_screen.h's function prototype.
2010-05-08 10:14:35 +01:00
Vinson Lee
cc346b51fa
llvmpipe: Remove unnecessary header.
2010-05-08 00:37:38 -07:00
Török Edwin
4d52a25326
gallivm: Require SSE2 for draw_llvm/llvmpipe due to LLVM PR6960.
...
Note that this also requires X86 for llvm, if llvmpipe/draw_llvm works
on PPC then the condition should be extended to include && x86.
Signed-off-by: Török Edwin <edwintorok@gmail.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-05-06 22:43:37 +01:00
José Fonseca
680071502f
llvmpipe: Fix fence wait.
...
Avoids crashing when fence is NULL (LP_NUM_THREADS=0) and leaking when
it is not.
2010-05-06 21:38:06 +01:00
Qicheng Christopher Li
86afe8250e
llvmpipe: implement occlusion query
...
OpenGL occlusion queries work now. The Mesa demos, glean test and piglit
tests all pass. A few enhancements are possible in the future. -Brian
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-05-06 11:45:45 -06:00
Brian Paul
740e50c60f
gallium: rename draw() to draw_elements() in vbuf code
...
Now we have draw_elements() and draw_arrays() to be consistent with the
pipe_context drawing functions.
2010-05-05 18:19:37 -06:00
Brian Paul
246d39059e
llvmpipe: update driver's provoking vertex code
...
Note that the lp_setup_vbuf.c code is very, very similar to the
corresponding code in softpipe. It could probably be shared.
2010-05-05 18:19:30 -06:00
Brian Paul
5c2f6a3e9f
llvmpipe: added a new assertion as a hint to Coverity
...
Looks like coverity found a false positive for an out of bounds array write.
2010-05-05 08:22:12 -06:00
Vinson Lee
dbcd5622d5
llvmpipe: Remove unnecessary headers.
2010-05-04 22:57:24 -07:00
Brian Paul
1169d8619a
llvmpipe: predicate LLVMDumpModule() on DEBUG_JIT
2010-05-04 20:46:27 -06:00
Brian Paul
87022efb4f
llvmpipe: fix broken compressed cube maps
...
When the cube faces were stored in a compressed format, the img_stride
values were wrong and didn't match the per-face size computed in the
tex_image_face_size() function. This caused bad rendering or segfaults.
2010-05-04 17:17:04 -06:00
Brian Paul
477b0d838b
llvmpipe: do some null pointer checking
2010-05-04 17:17:04 -06:00
Brian Paul
0671c6b589
llvmpipe: add some tests for malloc() returning NULL.
...
Start propogating NULL pointers from allocation functions and checks for
NULL in the callers...
2010-05-04 17:17:04 -06:00
José Fonseca
ec43b2eb45
gallivm: Proper implementation of TXL opcode.
2010-05-04 13:51:54 +01:00
José Fonseca
962558daae
gallivm: Implement TXD.
2010-05-04 10:08:10 +01: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
Brian Paul
1fc5a318a6
gallium: move framebuffer utility functions into a new file
2010-05-03 17:08:17 -06: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
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>
2010-05-03 00:13:36 +01:00
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.
2010-05-03 00:13:36 +01:00
Vinson Lee
70c7531051
llvmpipe: Remove unused variable.
2010-05-01 15:12:45 -07:00
Jakob Bornecrantz
b3f625f5e4
llvmpipe: Fix link order for test apps
...
When linking with --as-needed libgallium.a can't find the dl* symbols from
-ldl since order matters more with --as-needed.
Thanks to Nirbheek Chauhan and Adam Jackson
2010-05-17 22:33:35 +01:00
Mathias Fröhlich
cdbd5f4203
gallium: EXT_timer_query support.
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-05-17 12:05:18 -07:00
Vinson Lee
6440dcea21
llvmpipe: Remove unnecessary headers.
2010-05-15 08:38:00 -07:00
José Fonseca
8a3bcba12c
llvmpipe: Use GALLIVM_DEBUG opt where applicable.
2010-05-15 11:48:39 +01:00
Jakob Bornecrantz
c4e89d130f
softpipe & llvmpipe: Enable SM3 cap
2010-04-29 17:00:21 +01:00
Brian Paul
ba6d8448e1
llvmpipe: fix texture/display target memory leak
2010-04-29 09:10:05 -06:00
Brian Paul
aac6d84056
llvmpipe: free vertex buffer memory in lp_setup_vbuf_destroy()
2010-04-28 15:25:50 -06:00
Brian Paul
bdf753a858
llvmpipe: fix scene queue memory leak
2010-04-28 15:25:50 -06:00
Brian Paul
0728db86bc
llvmpipe: fix scene queue memory leak
2010-04-28 15:25:50 -06:00
Brian Paul
7dd44ca5f6
llvmpipe: fix mem leak in llvmpipe_resource_destroy()
2010-04-28 15:25:50 -06:00
Brian Paul
5f53ecb97f
llvmpipe: fix surface memory leak during tear-down
2010-04-28 15:25:50 -06:00
Brian Paul
1550de98e6
llvmpipe: remove unused psize_slot field
2010-04-28 15:25:50 -06:00
Brian Paul
3a749b5c09
llvmpipe: move/rename llvmpipe_init_surface_functions()
2010-04-28 15:25:50 -06:00
Brian Paul
8975ade13b
llvmpipe: make rasterizer-related functions static, clean-up initializations
2010-04-28 15:25:50 -06:00
Brian Paul
965a604306
llvmpipe: update comments, fix formatting
2010-04-28 15:25:50 -06:00
Brian Paul
dd2fd8ae03
llvmpipe: remove old prototypes, fix-up formatting
2010-04-28 15:25:50 -06:00
Brian Paul
9523d78dde
llvmpipe: make shader-related functions static, clean-up initializations
2010-04-28 15:25:50 -06:00
Brian Paul
2176cad7dc
llvmpipe: make clip-related functions static, clean-up initializations
2010-04-28 15:25:50 -06:00
Brian Paul
f7885f8f1f
llvmpipe: make draw-related functions static, clean-up initializations
2010-04-28 15:25:50 -06:00
Brian Paul
e351e82869
llvmpipe: make vertex-related functions static, clean-up initializations
2010-04-28 15:25:50 -06:00
Brian Paul
8fd794db9e
llvmpipe: make blend-related functions static, clean-up initializations
2010-04-28 15:25:50 -06:00
Brian Paul
bfd81b4ebb
llvmpipe: make sampler-related functions static, clean-up initializations
2010-04-28 15:25:50 -06:00
Brian Paul
a7e2470843
llvmpipe: remove some unneeded shader structure fields
2010-04-28 15:25:50 -06:00
Brian Paul
ac6725b8f9
llvmpipe: dump shaders if LP_DEBUG=tgsi
2010-04-28 15:25:50 -06:00
Brian Paul
b73c9ba919
llvmpipe: remove unused write_depth
2010-04-28 11:26:37 -06:00
Vinson Lee
37e98e5cd2
llvmpipe: Remove unnecessary header.
2010-04-28 00:14:39 -07:00
Brian Paul
ab3e7861ec
llvmpipe: remove lp_scene_map_buffers(), lp_scene_unmap_buffers()
2010-04-27 11:50:23 -06:00
Brian Paul
bb527c0af6
llvmpipe: implement max scene size
...
When the size of the scene (binned data plus referenced resources/textures)
exceeds LP_MAX_SCENE_SIZE flush/render the scene. This could be improved
in various ways but is a good start.
Fixes piglit streaming-texture-leak test.
2010-04-27 11:44:36 -06:00
Brian Paul
1db3a55b9c
llvmpipe: added llvmpipe_resource_size()
2010-04-27 11:32:25 -06:00
Brian Paul
85ab6d2447
llvmpipe: comment-out unused field for now
2010-04-27 11:31:45 -06:00
Brian Paul
d2f0acc2fb
llvmipe: update comments
2010-04-27 10:55:51 -06:00
Vinson Lee
03b3c10774
llvmpipe: Remove unused variable.
2010-04-26 16:31:05 -07:00
José Fonseca
2cd128ab44
llvmpipe: No need to flush the caches for buffers.
2010-04-25 23:41:48 +01:00
José Fonseca
43b85af56e
llvmpipe: Cleanup/improve llvmpipe_flush_resource usage.
...
Recognize PIPE_TRANSFER_UNSYNCHRONIZED and PIPE_TRANSFER_DONTBLOCK.
2010-04-25 23:41:48 +01:00
Vinson Lee
8352983e2a
llvmpipe: Remove unused variable.
2010-04-25 13:10:02 -07:00
José Fonseca
7951630d08
llvmpipe: llvmpipe_flush_texture -> llvmpipe_flush_resource
2010-04-25 15:54:32 +01:00
José Fonseca
5745bcb2db
llvmpipe: Fix buffer overflow unswizzling several formats.
...
Array formats without for channels were being advanced as four channels,
causing buffer overflows.
2010-04-25 15:54:32 +01:00
José Fonseca
23df86d851
llvmpipe: Replace tile_read/write with more descriptive swizzle/unswizzle verbs.
2010-04-25 15:54:31 +01:00
José Fonseca
adc7cd6240
llvmpipe: Cleanup llvmpipe_is_format_supported().
...
It should be just cosmetic.
2010-04-25 15:54:31 +01:00
José Fonseca
8a70c47c4c
llvmpipe: Remove sp2lp.sh.
...
Irrelevant now that llvmpipe and softpipe grew so far apart.
2010-04-25 15:54:30 +01:00
José Fonseca
7cebd16fbb
llvmpipe: lp_tex_sample_llvm.c -> lp_tex_sample.c
...
'llvm' suffix unnecessary now that the C sampling version disappeared.
2010-04-25 15:54:30 +01:00
Vinson Lee
b147aaea4d
llvmpipe: Remove unused variable.
2010-04-24 14:29:08 -07:00
Vinson Lee
c7bb271f0d
llvmpipe: Remove unnecessary header.
2010-04-24 14:19:47 -07:00
José Fonseca
aa7a47dcbd
llvmpipe: Initialize dummy variable.
2010-04-24 16:13:18 +01:00
José Fonseca
bd6e9e3350
llvmpipe: Don't use fences when not using threads.
...
lp_setup_flush has effect immediately.
2010-04-24 16:13:04 +01:00
José Fonseca
39be50dcde
llvmpipe: Move the determination of the number of threads to the screen.
2010-04-24 13:20:39 +01:00
José Fonseca
e7a8cfc877
gallivm: Centralize the cpu caps detection.
2010-04-24 13:19:10 +01:00
José Fonseca
30a1c36dc8
llvmpipe: Pass flatshade_first to setup.
...
Fixes piglit provoking-vertex.
2010-04-24 12:00:06 +01:00
Dave Airlie
81fe19843a
llvmpipe: add initial autoconf support.
...
allows the swrastg_dri.so to be built with llvmpipe, also links llvm
to all dri drivers
use --enable-gallium-llvm to use it.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-24 18:55:50 +10:00
Vinson Lee
3ee4ec99ea
llvmpipe: Remove unused variable.
2010-04-24 00:02:48 -07:00
José Fonseca
2ce1d6696b
gallium: s/free/FREE/ and same for friends.
...
Based on Stephen Johnson's feedback.
2010-04-23 21:53:08 +01:00
Brian Paul
f855193796
llvmpipe: rename texture refs to resource refs
2010-04-23 12:29:31 -06:00
Alan Hourihane
00f8e5764d
llvmpipe: update for half float formats
2010-04-23 19:26:03 +01:00
Brian Paul
158f9d56e0
llvmpipe: increase max 2D texture / surface size to 4K x 4K
2010-04-23 09:13:27 -06:00
Brian Paul
4a72ec49f6
llvmpipe: rename MAXWIDTH, MAXHEIGHT
2010-04-23 09:13:26 -06:00
Brian Paul
2de31f2bf2
llvmpipe: rename lp_tile_size.h to lp_limits.h
...
Collect the various driver limits in one place since.
2010-04-23 09:13:26 -06:00
Brian Paul
71dfbb608a
llvmpipe: move LP_MAX_TEXTURE_x_LEVELS, etc to lp_tile_size.h
2010-04-23 09:13:26 -06:00
Vinson Lee
749a8825a0
llvmpipe: Remove unused variable.
2010-04-23 00:59:12 -07:00
Zack Rusin
021e0dc78b
gallivm: implement indirect addressing over temporaries
...
a bit more involved than indirect addressing over consts, but still
fairly reasonable. we allocate an array instead of individual alloca's,
and we do it only if the shader does indirect addressing.
2010-04-22 18:36:07 -04:00
José Fonseca
c059565054
llvmpipe: Undo zs tiling changes.
...
tile_w/tile_h have different meaning there.
This partialy reverts commit ccdc6b5913
.
2010-04-22 20:38:36 +01:00
José Fonseca
cdaceaafee
llvmpipe: Portability fixes.
2010-04-22 19:25:00 +01:00
José Fonseca
ccdc6b5913
llvmpipe: Fix rendering to non 32bpp formats.
...
Tiled layout always used 32bpp, therefore linear/tiled strides are not
related.
2010-04-22 19:25:00 +01:00
José Fonseca
8bee4c7718
llvmpipe: Use resource_is_texture() consistently.
...
Otherwise slightly difference order causes assertion failures.
Also remove mentions of PIPE_BIND_SCANOUT/PIPE_BIND_SHARED. They are not
propoer bind flags and will likely be deprecated. If surfaces should
be passed to the winsys then they should have the DISPLAY_TARGET flag
set, which is a proper bind flag.
2010-04-22 18:42:03 +01:00
José Fonseca
2eea1714fd
llvmpipe: Fix resource_is_texture.
...
It was missing PIPE_BIND_RENDER_TARGET, causing assertion failures for
pure render targets.
Also bind flags are too variable and complex for a good assessment for
whether the resource is a texture or not. Target is more concise.
2010-04-22 18:06:05 +01:00
José Fonseca
510669cd87
llvmpipe: Do not advertise S3TC rendering support.
2010-04-22 15:12:30 +01:00
José Fonseca
6ae9975ea0
llvmpipe: Fix typo in assert.
2010-04-22 15:11:57 +01:00
Brian Paul
04c136d5c2
llvmpipe: add missing dependency in Makefile
2010-04-21 16:30:13 -06:00
Brian Paul
15d60294d6
llvmpipe: consolidate texture memory allocation code
...
And fix incorrect allocation of linear memory for display targets.
This fixes fd.o bugs 27761 and 27762.
2010-04-21 10:30:57 -06:00
Vinson Lee
a85afb9177
llvmpipe: Remove unused variable.
2010-04-20 22:56:39 -07:00
Vinson Lee
a5460dc6d7
llvmpipe: Change return type of declaration to match code.
...
Commit 2142108e0e
changed the return type
of llvmpipe_get_texture_image_address function but didn't change the
declaration.
Fixes build.
2010-04-20 16:40:55 -07:00
Brian Paul
2142108e0e
llvmpipe: code consolidation
2010-04-20 17:28:33 -06:00
Brian Paul
1cb80d31d3
llvmpipe: remove debug code and simplify
2010-04-20 17:19:30 -06:00
Brian Paul
7688a4749e
llvmpipe: fix cube face addressing bug
...
Fixes fd.o bug 27760 (pigit fbo-cubemap).
2010-04-20 17:15:33 -06:00
Brian Paul
c668a97ad5
llvmpipe: whitespace fix
2010-04-20 17:15:33 -06:00
Brian Paul
caa05ef419
llvmpipe: fix depth+stencil logic error
...
If both Z-test and stencil-test were enabled, we were mis-computing
the vector of updated Z buffer values.
Fixes Z testing bug in progs/demos/fbotexture.c
2010-04-20 13:51:52 -06:00
Brian Paul
48f54ecb0c
llvmpipe: fix comment/typo
2010-04-20 13:51:52 -06:00
Brian Paul
db4ccc004a
llvmpipe: fix incorrect front-facing value for fragment shader
...
The TGSI convention is +1 for front-facing, -1 for back-facing
Fixes glean glsl1 gl_FrontFacing tests.
2010-04-20 11:44:01 -06:00
Brian Paul
ab065b933b
llvmpipe: rename mode -> interp
2010-04-20 11:23:53 -06:00
Brian Paul
3acb2b6b2f
llvmpipe: remove dead code/comment
2010-04-20 10:56:01 -06:00
Brian Paul
a2a01853f3
gallium: replace pipe_resource::_usage with pipe_resource::usage
2010-04-20 10:00:03 -06:00
Brian Paul
a00f4e864c
llvmpipe: remove call to llvmpipe_set_texture_image_layout()
...
This would seem to be needed but caused some regressions.
More investigation will be done.
2010-04-20 08:42:32 -06:00
José Fonseca
cc822705e5
llvmpipe: Re-enable half float formats.
...
They should be working now, both textures and vertex/index/buffers.
This reverts commit efc69ca61c
.
2010-04-20 16:27:42 +02:00
José Fonseca
ec8d9523d4
gallivm: Universal format support on lp_build_fetch_rgba_aos via util_format_description::fetch_rgba_float
...
This therefore adds support to half float vertex buffers.
2010-04-20 16:21:08 +02:00
José Fonseca
fe5a483328
gallivm: Cleanups and bugfixes to aos format translation.
2010-04-20 15:09:02 +02:00
José Fonseca
b29fcc7b3a
gallivm: Bring aos format back to life.
...
Useful for fetching vertices for formats that are straight arrays.
This reverts commit aa364d091e
.
2010-04-20 13:41:10 +02:00
Alan Hourihane
17c560d1a4
llvmpipe: silence warning
2010-04-20 10:33:56 +01:00
José Fonseca
a6171a9dd9
Merge branch 'gallium-index-bias'
2010-04-20 11:07:08 +02:00
Brian Paul
4c93cd13ba
llvmpipe: remove dead code
2010-04-19 17:16:15 -06:00
Brian Paul
bd329d42e8
llvmpipe: use llvmpipe_resource_stride()
2010-04-19 17:15:25 -06:00
Brian Paul
f4071e55db
llvmpipe: get 3D texture image stride from an array rather than computing it
...
This fixes broken 3D texture indexing when the height of the 3D texture
was less than 64 (the tile size). It's simpler to pass this as an array
(as we do with the row stride) than to compute it on the fly.
2010-04-19 17:07:25 -06:00
Brian Paul
2cad62475b
llvmpipe: consolidate some code in llvmpipe_set_texture_image_layout()
2010-04-19 17:07:25 -06:00
Brian Paul
202ff7db49
llvmpipe: fix rendering to 3D textures
...
Treat cube faces and 3D texture slices in the same manner (they're layed
out out continuously in memory). Additional clean-ups and improvements
coming.
2010-04-19 17:07:25 -06:00
Brian Paul
ee7cf9d80f
llvmpipe: checkpoint: fixes for render to 3D texture
2010-04-19 17:07:25 -06:00
Brian Paul
254dd0c23f
llvmpipe: another fix for surface memory allocation
...
The previous patch broke cube maps.
The logic is a bit clearer now.
2010-04-19 17:07:25 -06:00
Brian Paul
05bf77a2da
llvmpipe: fix surface memory allocation bug
...
We weren't always allocating the right amount of memory for image tiles
for some formats (those < 32bpp).
Fixes fd.o bug 27712.
2010-04-19 11:18:51 -06:00
Zack Rusin
7c4208c3a0
draw llvm: fix constructor mess
...
use just one constructor to figure out whether to use llvm.
2010-04-19 12:53:27 -04:00
Zack Rusin
deee152363
llvmpipe: enable draw llvm by default
2010-04-19 12:53:27 -04:00
José Fonseca
d27a53d469
llvmpipe: Implement index bias.
2010-04-19 18:15:11 +02:00
Brian Paul
a59771fb53
llvmpipe: triangle function comments
2010-04-19 08:53:13 -06:00
Brian Paul
8f3bdeaad6
Merge branch '7.8'
...
Conflicts:
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/drivers/llvmpipe/lp_context.c
2010-04-19 08:45:20 -06:00