summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* gallium/util: use memset() to initialize vars to avoid warningsBrian Paul2010-03-111-3/+5
|
* gallivm: Use bitmasks for scalar masks.José Fonseca2010-03-111-4/+11
| | | | | | | | | We could use single 1 bit conditions for scalar masks, but a lot of code expects masks. The compiler easily optimzes away masks extensions/truncations so consistency is preferable. We can revisit this when LLVM backends have more support for vector conditions.
* gallivm: Handle scalar types in lp_build_*_type.José Fonseca2010-03-111-2/+11
|
* gallivm: overhaul of texture sampling codeBrian Paul2010-03-103-250/+420
| | | | | | | | | The new lp_build_sample_general() function will handle all sampling modes for all texture types. Still incomplete, but a few additional sampling modes are now supported. 1D textures should work and most of the code for 3D textures is in place. No support for cube maps yet. No support for different min/mag filters.
* gallivm: handle scalar floats in lp_build_floor() and lp_build_iround()Brian Paul2010-03-101-0/+15
|
* gallivm: constant building for scalar zeroBrian Paul2010-03-101-2/+10
|
* gallivm: implement bilinear sampling with nearest mipmappingBrian Paul2010-03-101-0/+79
| | | | Time to start consolidating some code...
* gallivm: remove debug code. nearest minification works now.Brian Paul2010-03-101-6/+3
|
* gallivm: simplify conditional branchingJose Fonseca2010-03-101-21/+8
| | | | | Instead of testing each component individually, we can test the entire vector at once.
* gallivm: properly test the if condition and branch to the proper labelZack Rusin2010-03-101-1/+3
| | | | makes loops work
* gallivm: implement loopsZack Rusin2010-03-103-10/+153
|
* llvmpipe: Finally found a way to do vector comparisons without using intrinsics.José Fonseca2010-03-101-6/+26
| | | | Only works well with LLVM >= 2.7
* target-helpers: remove swrast_xlib.c helperKeith Whitwell2010-03-103-113/+0
| | | | | | | | | | This was a good idea, but ended up tying the build systems in knots. We can revisit this later, in particular if we can put in place dummy implementations of cell_create_screen(), llvmpipe_create_screen() which just return NULL if the driver isn't available. In the meantime, just duplicate this smallish function in the two places it was being called.
* target-helpers: helper for injecting common debug layersKeith Whitwell2010-03-105-11/+85
| | | | | | | Add a helper gallium_wrap_screen() for injecting the commonly used extra layers into a gallium stack. Currently that's just the trace module and identity layer, but there could be more in the future, eg. a validation layer.
* Merge commit 'origin/master' into gallium-sw-api-2Keith Whitwell2010-03-1022-411/+937
|\
| * cso: don't forget to release vertex elements stateRoland Scheidegger2010-03-091-0/+1
| |
| * gallivm: checkpoint: nearest mipmap filteringBrian Paul2010-03-095-292/+601
| | | | | | | | | | | | | | | | | | The LOD is computed from texcoord partial derivatives and used to select a mipmap level. Still some bugs in texel fetching. Lots of rough edges and unfinished parts but the basics are in place. Lots of changes to the lp_bld_arit.c code to support non-vector/scalar datatypes.
| * util: simplify util_format_get_nr_components helperRoland Scheidegger2010-03-091-8/+1
| | | | | | | | | | since the number of components is now stored in the pipe format description, we obviously no longer need to figure this out ourselves.
| * util: Use bitshift arithmetic for pack too.José Fonseca2010-03-091-19/+58
| |
| * cso: Fix typo in assert.Corbin Simpson2010-03-091-1/+1
| |
| * Merge branch 'gallium-vertexelementcso'Roland Scheidegger2010-03-0916-100/+284
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/cso_cache/cso_context.c src/gallium/auxiliary/util/u_blit.c src/gallium/auxiliary/util/u_gen_mipmap.c src/gallium/drivers/i915/i915_context.h src/gallium/drivers/i965/brw_draw_upload.c src/gallium/drivers/r300/r300_blit.c src/gallium/drivers/r300/r300_context.h src/gallium/drivers/r300/r300_render.c src/gallium/drivers/r300/r300_state_derived.c src/mesa/state_tracker/st_cb_bitmap.c src/mesa/state_tracker/st_cb_clear.c
| | * auxiliary: fix vertex elements csoRoland Scheidegger2010-03-092-7/+19
| | | | | | | | | | | | | | | potentially could have got a match even though the cso was different (in case of different count and first few elements the same).
| | * vl: adapt to new vertex element cso interfaceRoland Scheidegger2010-03-014-71/+82
| | |
| | * util: adapt blitter code to new vertex element csoRoland Scheidegger2010-03-015-11/+60
| | | | | | | | | | | | | | | | | | | | | The interface of util_draw_vertex_buffer looks a bit odd (calling code has to set vertex elements but not vertex buffers) but due to the way cso state handling generally works (can't re-bind original vertex element state easily there) I guess that's ok for now.
| | * gallium: use cso state handling for pipe_vertex_element stateRoland Scheidegger2010-02-184-2/+111
| | |
| | * gallium: remove redundant nr_components field from pipe_vertex_elementRoland Scheidegger2010-02-175-15/+2
| | | | | | | | | | | | | | | This is a property of the associated src_format pipe format. Hence use util_format_get_nr_components to query this when necessary instead.
| | * util: new util_format_get_nr_components helperRoland Scheidegger2010-02-171-0/+17
| | |
* | | target-helpers: missing filesKeith Whitwell2010-03-092-0/+121
| | |
* | | gallium: create helper for swrast+xlib combinationKeith Whitwell2010-03-091-1/+2
|/ / | | | | | | | | Several targets may want to reuse this code. It's pretty simple, not sure if this is really a win.
* | Squashed commit of gallium-no-texture-blanketKeith Whitwell2010-03-091-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit f90b3f01af82b9522067b1824e21709a6fb2d3af Author: Keith Whitwell <[email protected]> Date: Mon Mar 8 14:39:44 2010 +0000 gallium: remove p_screen::surface_buffer_create This isn't very useful without texture_blanket(), which has also been removed. Note that this function hasn't been removed from the old pipe_winsys (u_simple_screen) still used internally by some drivers (eg softpipe). commit 6c462de39a4b9980a5f034a95e580efdfcb8173b Author: Keith Whitwell <[email protected]> Date: Mon Mar 8 14:27:40 2010 +0000 egl/x11: disable texture_blanket usage commit b42da9160df9f47224e5b3291b972f41767aa6e5 Merge: 4be2436 3ca9336 Author: Keith Whitwell <[email protected]> Date: Mon Mar 8 14:27:24 2010 +0000 Merge commit 'origin/master' into gallium-no-texture-blanket Conflicts: src/gallium/drivers/svga/svga_screen_texture.c commit 4be2436316929e3dfc55bc34d810920c06556b66 Author: Keith Whitwell <[email protected]> Date: Thu Mar 4 14:59:26 2010 +0000 gallium: remove texture blanket call No longer needed, except for nouveau and egl/xll/native_ximage.c. Fix for nouveau is to keep the call, but move it to an internal function within nouveau. Fix for that egl/x11 relies on gallium-sw-api branch or its successor. commit 69b6764330367d63c237d0bde9fb96435d0e0257 Author: Keith Whitwell <[email protected]> Date: Thu Mar 4 13:35:16 2010 +0000 drm_api: wrap comment
* | draw: quads never provoke the first vertexMarek Olšák2010-03-092-58/+20
| |
* | llvmpipe/gallivm: checkpoint: array of pointers to mipmap levelsBrian Paul2010-03-083-27/+48
| | | | | | | | | | | | | | Change the texture data_ptr from just a single image pointer to an array of image pointers, indexed by mipmap level. We'll use this for mipmap filtering. For now, the mipmap level is hard-coded to zero.
* | gallivm: fix a crash by making sure we set the has_mask flag correctlyZack Rusin2010-03-081-2/+1
| |
* | Merge branch '7.8'Brian Paul2010-03-081-0/+4
|\ \
| * | gallivm: Initialize variables for default cases.Vinson Lee2010-03-061-0/+4
| | | | | | | | | | | | Fixes use of uninitialized variables in non-debug builds.
* | | util: Use bitshift arithmetic to unpack pixels.José Fonseca2010-03-061-23/+92
| | | | | | | | | | | | All test cases pass now.
* | | util: Move the format tests cases here so that they can be easily shared.José Fonseca2010-03-064-0/+615
| | |
* | | util: Several fixes to clamping and test.José Fonseca2010-03-061-9/+6
| | | | | | | | | | | | | | | All tests pass here except util_format_b5g5r5a1_unorm_unpack_4ub, due to apparently a gcc 4.4.3 bug.
* | | util: Fix the maximum value computation for SSCALED channels.José Fonseca2010-03-061-1/+1
| | |
* | | util: Add a new flag, for formats that can be described as a bitmask.José Fonseca2010-03-063-7/+12
| | |
* | | util: Add the shortened format name to the description.José Fonseca2010-03-062-0/+8
| | |
* | | gallivm: Add some notes about sampler static state construction.José Fonseca2010-03-061-1/+17
| | | | | | | | | | | | | | | | | | | | | Recover some logic to make state canonical, although it is admittedly very shy compared with what could be done. We really need an helper module to make state canonical.
* | | gallivm: Answer question/comment.José Fonseca2010-03-061-1/+11
| | | | | | | | | | | | This reverts commit 71c05689528d7987bfb99c3afe04e456887bc7b7.
* | | gallivm: Add a placeholder for TGSI_FILE_PREDICATE registers.José Fonseca2010-03-061-0/+5
| | |
* | | gallivm: Integrate udis86 on scons builds.José Fonseca2010-03-061-0/+2
| | |
* | | gallivm: Generate valid IR for LLVM 2.7.José Fonseca2010-03-061-1/+14
|/ / | | | | | | | | The signatures for pack intrinsics were made more consistent in this version.
* | gallivm: checkpoint: code gen for mipmap selectionBrian Paul2010-03-051-0/+65
| |
* | gallivm: added methods for getting texture depth, num mipmap levelsBrian Paul2010-03-051-0/+12
| |
* | gallivm: checkpoint: texture LOD computation code genBrian Paul2010-03-051-3/+126
| |
* | gallivm: added field for sampler lodBrian Paul2010-03-052-4/+6
| |