Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util: Code generate functions to pack and unpack a single pixel. | José Fonseca | 2010-02-26 | 7 | -164/+507 |
| | | | | | | | | | | | | | | | | | | | | | Should work correctly for all pixel formats except SRGB formats. Generated code made much simpler by defining the pixel format as a C structure. For example this is the generated structure for PIPE_FORMAT_B6UG5SR5S_NORM: union util_format_b6ug5sr5s_norm { uint16_t value; struct { int r:5; int g:5; unsigned b:6; } chan; }; Not used everywhere yet because it seems compiled code is slower than bitshift arithmetic by some misterious reason. So we should generate bitshift arithmetic at least for the simple UNORM pixel formats. | ||||
* | util: Factor some code into u_format_parse.py | José Fonseca | 2010-02-26 | 4 | -28/+96 |
| | |||||
* | util: Add util_bswap16. | José Fonseca | 2010-02-26 | 1 | -0/+11 |
| | |||||
* | util: Use python names consistent with u_format.h | José Fonseca | 2010-02-26 | 4 | -149/+161 |
| | |||||
* | llvmpipe: Fix lp_tile_r5g6b5_unorm_write_4ub. | José Fonseca | 2010-02-26 | 1 | -1/+2 |
| | | | | Was using 32bit integer pointers instead of 16bits. | ||||
* | llvmpipe: Fix scons dependencies. | José Fonseca | 2010-02-26 | 1 | -0/+6 |
| | |||||
* | util: Add is_pot() method to formats. | José Fonseca | 2010-02-26 | 1 | -0/+7 |
| | |||||
* | minor cleanup of dri/Makefile.template's after miniglx drop | George Sapountzis | 2010-02-26 | 2 | -23/+4 |
| | | | | also makes the WINDOW_SYSTEM configure var useless ... | ||||
* | util: remove a trailing semicolon in format table code | Brian Paul | 2010-02-25 | 1 | -1/+1 |
| | |||||
* | util: Remove import of unused sys module. | Vinson Lee | 2010-02-25 | 1 | -3/+0 |
| | |||||
* | scons: Always build trace driver | José Fonseca | 2010-02-25 | 1 | -5/+1 |
| | | | | | | | | | | | | There are so many state trackers and winsys that rely on it for debug building, and trace can really build anywhere and is thin so there's no point is making it an option. Based on Xavier Chantry <[email protected]>'s patch: "I also removed the trace check in xlib SConscript which is now useless, and that script seems to deal with the cell driver, so I added cell in the check for supported drivers." | ||||
* | python: Fix typo. | Michal Krol | 2010-02-25 | 2 | -1/+1 |
| | |||||
* | tgsi: Remove dead code. | Michal Krol | 2010-02-25 | 1 | -12/+0 |
| | |||||
* | st/egl: Reduce validation round-trips in DRI2 backend. | Chia-I Wu | 2010-02-25 | 1 | -14/+88 |
| | | | | | | | | | | | | This is similar to the changes to reduce the round-trips in ximage backend. When the server supports DRI_InvalidateBuffers, the event is used to update the server stamp (this path is not tested). Otherwise, the server stamp is updated when flush_frontbuffer or swap_buffers is called. This makes sure at least the client APIs get the new buffers when a new frame is started while skipping all round-trips during the drawing. | ||||
* | st/egl: Reduce validation round-trips in ximage backend. | Chia-I Wu | 2010-02-25 | 2 | -43/+39 |
| | | | | | | | | | | | ximage_surface_validate is called several times per frame. This commit adds the client and server stamps to reduce the round-trips to the server. The idea is to bump the server stamp when flush_frontbuffer or swap_buffers is called, and to skip the round-trip when the client stamp is equal to the server stamp. This makes sure the client APIs get the new buffers when a new frame is started while skipping all round-trips during the drawing. To make this work, egl_g3d_validate_context is no longer called after swap_buffers. | ||||
* | st/egl: Refactor dri2_surface_get_buffers. | Chia-I Wu | 2010-02-25 | 1 | -51/+67 |
| | | | | | Add dri2_surface_process_drawable_buffers to process the buffers returned by the server. | ||||
* | st/egl: Add dri2InvalidateBuffers. | Chia-I Wu | 2010-02-25 | 4 | -19/+74 |
| | | | | | | src/glx/dri2.c will call dri2InvalidateBuffers when DRI2_InvalidateBuffers event is received. This fixes a missing symbol error, and paves the way for event-based validation. | ||||
* | util: Assert that pointer is not null before dereferencing. | Vinson Lee | 2010-02-25 | 1 | -1/+4 |
| | |||||
* | r300g: Atomize vertex shader. | Corbin Simpson | 2010-02-24 | 8 | -60/+58 |
| | |||||
* | r300g: Move CALLOCs to correct place. | Corbin Simpson | 2010-02-24 | 1 | -8/+7 |
| | |||||
* | r300g: prevent CS overflow when emitting the draw packets | Marek Olšák | 2010-02-24 | 3 | -18/+55 |
| | | | | Signed-off-by: Corbin Simpson <[email protected]> | ||||
* | llvmpipe: clean up rasterization threads upon context destruction | Brian Paul | 2010-02-24 | 2 | -0/+18 |
| | | | | Fixes glean hang, bug 26536. | ||||
* | r300g: remove invalid .PHONY line | Brian Paul | 2010-02-24 | 1 | -2/+0 |
| | | | | | The $(COMPILER_ARCHIVE) target is not a phony target. This solves the unconditional re-making of libr300.a | ||||
* | gallium: remove extra -I paths from Makefile.template | Brian Paul | 2010-02-24 | 1 | -3/+0 |
| | |||||
* | llvmpipe: more lp_rasterizer_task parameter passing | Brian Paul | 2010-02-24 | 4 | -114/+89 |
| | |||||
* | llvmpipe: pass fewer parameters to rasterization functions | Brian Paul | 2010-02-24 | 3 | -15/+9 |
| | |||||
* | llvmpipe: added some assertions | Brian Paul | 2010-02-24 | 1 | -0/+5 |
| | |||||
* | gallium: remove $(DEFINES) from cc/c++ command lines | Brian Paul | 2010-02-24 | 2 | -6/+6 |
| | | | | | The $(DEFINES) is already in $(CFLAG)S and (CXXFLAGS). This prevents all the -D args appearing twice in the compilation commands. | ||||
* | gallium: comment/document usage flags | Brian Paul | 2010-02-24 | 1 | -1/+3 |
| | |||||
* | llvmpipe: SRGB textures not supported yet | Brian Paul | 2010-02-24 | 1 | -1/+0 |
| | |||||
* | llvmpipe: vertex shader textures not supported yet | Brian Paul | 2010-02-24 | 1 | -1/+1 |
| | |||||
* | r300: Update for UTIL_FORMAT_LAYOUT_xxx changes. | José Fonseca | 2010-02-24 | 2 | -16/+4 |
| | |||||
* | llvmpipe: Update for UTIL_FORMAT_LAYOUT_xxx changes. | José Fonseca | 2010-02-24 | 2 | -7/+5 |
| | |||||
* | gallivm: Update for UTIL_FORMAT_LAYOUT_xxx changes. | José Fonseca | 2010-02-24 | 3 | -7/+5 |
| | |||||
* | util: Kill array vs arith layouts. Revamp UTIL_FORMAT_LAYOUT_xxx. | José Fonseca | 2010-02-24 | 4 | -180/+163 |
| | | | | Too confusing. I now can get the same information through other means. | ||||
* | i915g: fix a comment | Brian Paul | 2010-02-24 | 1 | -1/+1 |
| | |||||
* | gallium/docs: clean up texture usage text, added texture geom info | Brian Paul | 2010-02-24 | 1 | -5/+19 |
| | |||||
* | llvmpipe: Fix breakeage. | José Fonseca | 2010-02-24 | 1 | -24/+13 |
| | | | | | | | Due to the u_format.csv changes the unrolled code generator was being used for formats it didn't support. Bring some bugfixes from u_format_access.py too. | ||||
* | util: Refactor some code. | José Fonseca | 2010-02-24 | 1 | -14/+21 |
| | |||||
* | util: Cope with the fact that formats in u_format.csv are not ordered. | José Fonseca | 2010-02-24 | 4 | -75/+47 |
| | |||||
* | util: Factor out the code to shorten a format name. | José Fonseca | 2010-02-24 | 2 | -15/+14 |
| | |||||
* | llvmpipe: Handle correctly 24bit formats. | José Fonseca | 2010-02-24 | 1 | -44/+46 |
| | |||||
* | util: Handle correctly 24bit formats. | José Fonseca | 2010-02-24 | 1 | -61/+64 |
| | |||||
* | util: Minor tweaks to ambigous/unused format descriptions. | José Fonseca | 2010-02-24 | 1 | -6/+6 |
| | |||||
* | util: Fix swizzles for SRGB formats. | José Fonseca | 2010-02-24 | 1 | -10/+10 |
| | | | | | | Based on Marek Olšák's fix 8-bits-per-channel formats swizzles, with the exception that the notation for several formats (the vector formats) is actually reversed so they should be left alone. | ||||
* | util: Organize formats in groups. Add comments. | José Fonseca | 2010-02-24 | 1 | -35/+61 |
| | |||||
* | util: Allow '#' comments in u_format.csv. | José Fonseca | 2010-02-24 | 1 | -1/+9 |
| | |||||
* | util: Kill unused UTIL_FORMAT_LAYOUT_SCALAR. | José Fonseca | 2010-02-24 | 1 | -6/+0 |
| | |||||
* | llvmpipe: Kill unused UTIL_FORMAT_LAYOUT_SCALAR. | José Fonseca | 2010-02-24 | 1 | -4/+2 |
| | |||||
* | util: Store more derived data in the the format description. | José Fonseca | 2010-02-24 | 3 | -0/+48 |
| |