summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* gallium: make the python scripts for format parsing not fail on new formatsRoland Scheidegger2010-03-304-12/+29
| | | | | | | | | they won't generate any useful conversion code for some of the new formats but at least don't assert. Also needed some more hacks so they don't generate code for some of the new formats, as gcc was not impressed. Also declare unused channels as void, and change the scripts to not fail if the first channel happened to be unused. Needs serious fixing.
* gallium: fix bogus depth/stencil format names (and channel descriptions)Roland Scheidegger2010-03-291-10/+9
| | | | only the depth part is normalized, stencil part isn't.
* gallium: add new texture formatsRoland Scheidegger2010-03-291-0/+20
| | | | | | | | These are needed for DX10 and/or OGL3.3. This just adds the formats nothing handles them yet. PIPE_FORMAT_R1_UNORM can't be used currently as it requires special filter. Need to reclassify compressed formats at some point.
* aux/tgsi: fix some minor glitches in string routinesKeith Whitwell2010-03-281-2/+2
| | | | | Not sure why we are open-coding these rather than using standard library functions.
* util: Update MSDN links.José Fonseca2010-03-281-3/+3
|
* rtasm: Silence gnu_printf format warnings.Vinson Lee2010-03-261-1/+1
|
* rtasm: Fix typos in comments.Vinson Lee2010-03-251-3/+3
|
* draw: Add EMIT_4UB_BGRA formatJakob Bornecrantz2010-03-263-8/+18
| | | | Needed for i915g, also fixed swizzle in draw_vs_aos_io.
* draw: Use translate function instead of switch casesJakob Bornecrantz2010-03-266-144/+56
|
* cso: Remove unnecessary header.Vinson Lee2010-03-221-1/+0
|
* Revert "gallium: add soft screen helper"George Sapountzis2010-03-212-85/+0
| | | | This reverts commit f87a5f6499f51f651c2a9f2d4682875b22926905.
* gallium: add soft screen helperGeorge Sapountzis2010-03-212-0/+85
|
* gallium: cached bufmgr add map busy checkDave Airlie2010-03-211-0/+9
| | | | | | | | | | Suggested by Jose on the list, probably not perfect but will let me get past this for now, testing with a fenced bufmgr on top of this, was slower, Also this doesn't let you do the busy early exit optimisation either from what I can see. Signed-off-by: Dave Airlie <[email protected]>
* gallivm: simplify and clean-up Z/stencil bit mask/shift codeBrian Paul2010-03-191-87/+160
| | | | | | Refactor the code into two helper functions which compute the bit mask and shift terms for Z and stencil. Plus add a bunch of new comments to explain everything.
* cso: remove cso_set/save/restore_sampler_texturesRoland Scheidegger2010-03-192-76/+0
| | | | no longer used after all statetrackers have been converted.
* gallivm: support PIPE_FORMAT_Z24S8_UNORM in depth/stencil codeBrian Paul2010-03-181-3/+18
|
* gallivm: fix broken INCR/DECR stencil modesBrian Paul2010-03-181-6/+17
| | | | We were mistakenly using the wrong data type for stencil values before.
* gallivm/llvmpipe: added lp_rast_shader_inputs::facing and pass throughBrian Paul2010-03-182-10/+15
| | | | | | | | | | The triangle rasterizer sets this field to indicate front/back-facing. It gets passed into the generated fragment code as another parameter. Used now for stencil front/back selection but will also be used for fragment shaders in general (see TGSI_SEMANTIC_FACE). With this commit two-sided stenciling mostly works but there's still a bug or two...
* Add format B5G5R5X1Alan Hourihane2010-03-185-0/+83
|
* gallivm/llvmpipe: simplify front/back stencil ref value handlingBrian Paul2010-03-182-36/+7
| | | | Instead of passing an array, just pass two scalar values.
* gallivm: checkpoint WIP two-sided stencil testBrian Paul2010-03-181-30/+191
|
* gallivm/llvmpipe: basic stencil testing worksBrian Paul2010-03-171-25/+139
| | | | | | Most stencil demos look OK (modulo some unrelated rendering glitches). Only single-sided stencil test works at this point. There are probably some bugs to be found...
* gallivm: added lp_build_andc()Brian Paul2010-03-172-0/+15
|
* gallivm/llvmpipe: more asst changes for stencil testingBrian Paul2010-03-172-36/+41
|
* gallivm/llmvpipe: pass stencil refs state into z/stencil build codeBrian Paul2010-03-172-0/+2
|
* gallium: add target-helpers/wrap_screen.c to C_SOURCESBrian Paul2010-03-161-2/+3
| | | | Was commented out before.
* gallium: change remaining util functions to use cso sampler viewsRoland Scheidegger2010-03-164-18/+21
| | | | | changes arguments of util_blit_pixels_tex and util_gen_mipmap to struct pipe_sampler_view * instead of struct pipe_texture *.
* Merge commit 'origin/master' into gallium-sampler-viewKeith Whitwell2010-03-1631-250/+458
|\ | | | | | | | | | | | | This branch already seems to have the nv50_tex.c fix. Conflicts: src/gallium/drivers/nv50/nv50_tex.c
| * gallivm: checkpoint: stencil test codeBrian Paul2010-03-151-1/+105
| |
| * gallivm/llvmpipe: rename some constant building functionsBrian Paul2010-03-1513-92/+90
| |
| * gallivm: fix up some #includesBrian Paul2010-03-152-2/+2
| |
| * gallivm/llvmpipe: rename os_llvm.h to lp_bld.hBrian Paul2010-03-1519-22/+22
| | | | | | | | | | | | | | The llvm wrapper wasn't really an OS thing. Use lp_bld.h for now but we eventually should rename/re-prefix all the files/functions in the gallivm/ directory.
| * gallivm: fix typo/bug in lp_build_sgn()Brian Paul2010-03-151-1/+1
| | | | | | | | | | We were never returning -1 as a result. This fixes some inverted/flipped faces with cube mapping.
| * gallivm: add min_lod==max_lod special-case code in lp_build_lod_selector()Brian Paul2010-03-151-72/+83
| | | | | | | | | | | | When min_lod==max_lod we don't need to go through all the work of computing the lod from partial derivatives. This is hit by the mipmap generation utility code.
| * gallivm: asst clean-ups, comments, etc.Brian Paul2010-03-151-54/+60
| |
| * gallivm: implement minification/magnification selectionBrian Paul2010-03-151-51/+137
| | | | | | | | | | | | | | Use the LOD value to determine whether to use the minification vs. magnification filter. All mipmap sampling modes work now.
| * gallivm: fix incorrect clamp in lp_build_linear_mip_levels()Brian Paul2010-03-151-1/+1
| |
| * gallivm: fix incorrect floor(), itrunc()Brian Paul2010-03-151-2/+5
| | | | | | | | | | | | | | | | LLVMBuildFPTrunc() should be used for double->float conversion, not float->int conversion. There should be a better way to compute floor(), ceil(), etc that doesn't involve float->int->float conversion.
* | cso: Do not hold references to bound textures.Keith Whitwell2010-03-151-22/+8
| | | | | | | | Sampler views already hold references to those.
* | util: Fix nil pointer reference.Michal Krol2010-03-151-5/+5
| |
* | gallium: util_blit_pixels() takes source sampler view as argument.Michal Krol2010-03-152-6/+24
| |
* | Merge commit 'origin/master' into gallium-sampler-viewKeith Whitwell2010-03-151-1/+5
|\| | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/nv30/nv30_context.h src/gallium/drivers/nv30/nv30_state.c src/gallium/drivers/nv40/nv40_context.h src/gallium/drivers/nv40/nv40_state.c src/gallium/drivers/r300/r300_emit.c
| * llvmpipe: Switch to PIPE_TEX_MIPFILTER_NONE when texture has no mipmaps.José Fonseca2010-03-131-1/+5
| |
* | Merge commit 'origin/master' into gallium-sampler-viewKeith Whitwell2010-03-1342-381/+1211
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/u_tile.c src/gallium/auxiliary/util/u_tile.h src/gallium/drivers/identity/id_context.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_setup.h src/gallium/drivers/softpipe/sp_tex_tile_cache.c src/gallium/include/pipe/p_context.h src/mesa/state_tracker/st_cb_bitmap.c src/mesa/state_tracker/st_cb_drawpixels.c
| * gallivm: cube map sampling works nowBrian Paul2010-03-121-22/+154
| |
| * gallivm: fix bugs in nested if/then/else codegenBrian Paul2010-03-121-9/+17
| | | | | | | | Quite a bit a hair pulling was involved...
| * gallivm: support non-vector float in lp_build_sgn()Brian Paul2010-03-121-6/+21
| |
| * Merge branch '7.8'Michel Dänzer2010-03-121-1/+1
| |\
| | * Grammar and spelling fixesJeff Smith2010-03-121-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Jeff Smith <[email protected]> Signed-off-by: Brian Paul <[email protected]>
| * | gallium: fix BGRA vertex color swizzlesMarek Olšák2010-03-122-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mapping for vertex_array_bgra: (gl -> st -> translate) GL_RGBA -> PIPE_FORMAT_R8G8B8A8 (RGBA) -> no swizzle (XYZW) GL_BGRA -> PIPE_FORMAT_A8R8G8B8 (ARGB) -> ZYXW (BGRA again??) Iẗ́'s pretty clear that PIPE_FORMAT_A8R8G8B8 here is wrong. This commit fixes the pipe format and removes obvious workarounds in util/translate. Tested with: softpipe, llvmpipe, r300g. Signed-off-by: José Fonseca <[email protected]>