summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
AgeCommit message (Collapse)Author
2010-04-08util: is_array/mixed/etc is only meaningful for plain formats.José Fonseca
2010-04-08util: Keep const keyword when unpacking formats.José Fonseca
2010-04-08util: Reorder the code generated function so that they are grouped by format.José Fonseca
Makes it easier to copy and paste.
2010-04-08draw llvm: hook up the generated function into the draw elts pathZack Rusin
we were only using the jited function in the linear case, now drawelts correctly uses the same path. it results in a significant gain in real world apps (openarena went from 23fps to 29fps)
2010-04-08draw: Fix vertex buffer indexation.José Fonseca
2010-04-08util: Don't call util_dl_close(library) when util_format_s3tc_init is ↵José Fonseca
successful." Otherwise the library will be unloaded and function pointers become invalid. This reverts commit bc2bc0306e4dd8c56bd66a8aabf2433f6689653d.
2010-04-08util: util_dl_close(library) before exiting util_format_s3tc_init.Vinson Lee
2010-04-08draw llvm: Remove unnecessary header.Vinson Lee
2010-04-07draw llvm: highly reduce the compilation times for draw llvmZack Rusin
our code resets pipe_vertex_buffer's with different offsets when rendering vbo, meaning that we kept creating insane number of shaders even for simple apps e.g. geartrain had 54 shaders and it was taking almost 27 seconds just to compile them. this patch passes pipe_vertex_buffer's to the jit function and lets it to the stride/buffer_offset computation at run time. the slowdown at runtime is largely unnoticable but the we go from 54 shaders to 3, and from 27 seconds to less than 1.
2010-04-07gallivm: Get the format translation logic write.José Fonseca
2010-04-07util: Support fixed formats conversion.José Fonseca
2010-04-07util: Add copyright header to u_half.hJosé Fonseca
2010-04-07util: Remove the half typedef from p_compiler.h.José Fonseca
Unnecessary, and doesn't even guarantee size.
2010-04-07util: Use stubs for the dynamically loaded S3TC functions.José Fonseca
Loosely based on Luca Barbieri's commit 52e9b990a192a9329006d5f7dd2ac222effea5a5.
2010-04-07draw: Fix MSVC build (snprintf->util_snprintf).José Fonseca
2010-04-07util: Remove u_tile.c YCbCr's.José Fonseca
Superseded by u_format_yuv.c. Also PIPE_FORMAT_YUYV's interpretation was inconsistent: it was being interpreted as VYUY.
2010-04-07util: Implement YUV and subsampled RGB format conversion.José Fonseca
2010-04-07draw: init draw->pt.middle.general = NULL just to be safeBrian Paul
This field should be null from the initial calloc() of the draw context, but let's be safe (and improve understanding of the code).
2010-04-07llvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.José Fonseca
2010-04-07draw llvm: Remove unnecessary headers.Vinson Lee
2010-04-07gallium: Add files to Makefile.Vinson Lee
This was missed in commit ae69f9fbf0a1aab7186e5b644085a5fe5aea99af. New files from the gallium_draw_llvm merge were added to SCons but not make.
2010-04-06draw llvm: disable printing of the LLVM irZack Rusin
2010-04-06gallium/draw: add additional DRAW_LLVM checkBrian Paul
Fixes build breakage.
2010-04-06Merge branch 'gallium_draw_llvm'Zack Rusin
2010-04-06gallivm: Fallback to calling util_format_description::fetch_float for any ↵José Fonseca
format we can't code LLVM IR directly.
2010-04-06gallivm: Move the global LLVM objects (module, engine, provider, target) ↵José Fonseca
into here.
2010-04-06draw llvm: disable debugging outputZack Rusin
2010-04-06draw llvm: implement simple pipeline caching using variantsZack Rusin
2010-04-06draw llvm: fix iteration for larger vertex arraysZack Rusin
we were trying to store the outputs starting at the same offset we were using for the input arrays, which was writing beyond the end of the output array.
2010-04-06draw llvm: iterate with the correct stop over the outputsZack Rusin
it's whatever the var step is (4 usually) not an unconditional 1
2010-04-06util: Respect destination stride in pipe_get_tile_swizzle().Michal Krol
2010-04-06draw llvm: fix draw arraysZack Rusin
we don't index within the outputs but only within the inputs
2010-04-06util: Make half float lookup tables constant.José Fonseca
2010-04-06util: Remove the hand written SRGB format support code.José Fonseca
2010-04-06util: Support all SRGB formats.José Fonseca
Based on code from Brian Paul and Michal Krol.
2010-04-06draw llvm: fix loop iteration and vertex header offsetsZack Rusin
the loop was doing a NE comparison which we could have skipped if the prim was triangles (3 verts) and our step was 4 verts. also fix offsets in conversion to aos.
2010-04-05draw llvm: when generating the vertex_header struct adjust its nameZack Rusin
change the name to not clash and accuretly represent the number of inputs we store in the data member
2010-04-05util: added util_dl_error()Brian Paul
2010-04-04Merge branch '7.8'Ian Romanick
2010-04-03util: Use GCC atomic bultins on GCC 4.1 and higher only.Vinson Lee
2010-04-03util: Revert unsolicited, untested, unreviewed, and broken changes to format ↵José Fonseca
support. Not all is bad, but I'm afraid I'll have to throw the baby with the water given they are all tied to together.
2010-04-02draw llvm: fix storing of outputs for the rest of the pipelineZack Rusin
there's no good way of aligning the output's, and since the vertex_header is variable sized in the first place we need to extract elements from a vector and store them individually into an array. this gets the basic examples working again
2010-04-02draw llvm: fix translation of formats with variable componentsZack Rusin
2010-04-02gallivm: Add fallthrough comment at end of case statement.Vinson Lee
The code is correct. Tell Coverity that the fallthrough case is intentional.
2010-04-02gallium/util: print \n after DXTn printfLuca Barbieri
2010-04-01gallium/util: remove extraneous semicolonBrian Paul
2010-04-02gallium/util: revert util_format_init additionLuca Barbieri
Putting calls to util_format_init all over the codebase is infeasible. Instead, half float tables are pregenerated, and the s3tc library is loaded on demand. I believe this is a solution that combines performance, cleanliness, flexibility and portability.
2010-04-02gallium/util: add util_format_is_supported to check for pack/unpackLuca Barbieri
This improves the code by making it more readable, and removes special knowledge of S3TC and other formats from softpipe.
2010-04-02gallium/util: load s3tc on demandLuca Barbieri
This changes the S3TC function pointers to be initialized to stubs that load the S3TC library and then delegate to the real functions. If the S3TC library fails to load, the function pointers are replaced with a "nop" function. The code is also changed to attempt to load the library only one time.c Note that unlike checking for a flag, this method has no performance cost at all. The use of the "nop" functions also allows to avoid most checks, that are only preserved when the function does non-trivial work.
2010-04-02gallium/util: pregenerate half float tablesLuca Barbieri
This solution avoids the issue of how to run the initializers and also allows those pages (and the parts of them in processor caches) to be shared between multiple processes. The drawback is slightly higher library size.