summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merge branch 'gallium-vertexelementcso'Roland Scheidegger2010-03-097-13/+77
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * 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: remove redundant nr_components field from pipe_vertex_elementRoland Scheidegger2010-02-172-2/+0
| | | | | | | | | | 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
| |
* | 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
* | 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-062-0/+613
| |
* | 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
| |
* | util: Remove PIPE_FORMAT_R8G8B8X8_SNORM information.José Fonseca2010-03-031-2/+1
| |
* | Merge branch 'gallium-format-cleanup'José Fonseca2010-03-027-147/+152
|\ \
| * | util: Tweak comment for D3D10-like formats.José Fonseca2010-03-021-1/+3
| | |
| * | util: Rename pipe formats.José Fonseca2010-03-016-127/+126
| | |
| * | util: Remove PIPE_FORMAT_A8B8G8R8_SNORM.José Fonseca2010-03-011-1/+0
| | |
| * | util: Generate linear<->sRGB conversion tables.Michal Krol2010-03-011-0/+17
| | |
| * | util: Fix PIPE_FORMAT_R8G8B8_SRGB swizzles.José Fonseca2010-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The only user of PIPE_FORMAT_R8G8B8_SRGB is mesa, which per src/mesa/main/texstore.c interprets it as R8 G8 B8 and not the other way around.
| * | util: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate.José Fonseca2010-03-014-13/+9
| | |
| * | util: Fix PIPE_FORMAT_R8G8B8_UNORM description and notes.José Fonseca2010-03-011-3/+1
| | | | | | | | | | | | | | | | | | There is actually no ambiguity in use -- it is always used as R8 G8 B8
| * | util: Remove inexisting formats.José Fonseca2010-03-011-7/+0
| | | | | | | | | | | | | | | | | | | | | Can't find these formats used in any state tracker or any API. For some of these probably the reverse notation was meant, for which formats already exist.
| * | util: A few more links for D3D formats.José Fonseca2010-03-011-2/+3
| | |
* | | Merge branch 'gallium-no-rhw-position'Michal Krol2010-03-025-34/+119
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_blit.c src/gallium/drivers/r300/r300_emit.c src/gallium/drivers/r300/r300_state_derived.c
| * | util/blitter: Fix the viewport transformation for Z coordinatesMarek Olšák2010-03-021-2/+2
| | | | | | | | | | | | | | | When clearing buffers, the depth is specified in the range [0, 1] and should be passed through blitter "as is".
| * | util: Fix u_blitter setup code after bypass_vs_clip_and_viewport removal.Michal Krol2010-03-012-11/+51
| | | | | | | | | | | | Not tested.
| * | util: Fix blitter vertex and viewport setup.Michal Krol2010-02-251-6/+21
| | |
| * | util: Reset clip state when doing blitting.Michal Krol2010-02-242-1/+11
| | |
| * | gallium: Remove bypass_vs_clip_and_viewport from rasteriser state.Michal Krol2010-02-224-18/+38
| | | | | | | | | | | | Needs testing.
* | | util: A few more todo marks.José Fonseca2010-03-011-0/+3
| | |
* | | util: More documentation for u_format.csvJosé Fonseca2010-03-011-0/+57
| | |
* | | util: Tweak comments regarding R8G8B8A8/X8_UNORM.José Fonseca2010-03-011-2/+2
| | |
* | | python: Don't mention deprecated drivers=trace option.José Fonseca2010-03-011-0/+4
| | | | | | | | | | | | Now trace always built.
* | | util: Fix X8/A8B8G8R8_SNORM's swizzle.José Fonseca2010-02-271-2/+2
| | |
* | | util: Define SRGB's channels as normalized.José Fonseca2010-02-261-9/+9
| | | | | | | | | | | | A better approximation than uscaled...
* | | util: Code generate functions to pack and unpack a single pixel.José Fonseca2010-02-263-159/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.pyJosé Fonseca2010-02-263-26/+94
| | |
* | | util: Add util_bswap16.José Fonseca2010-02-261-0/+11
| | |
* | | util: Use python names consistent with u_format.hJosé Fonseca2010-02-263-114/+126
| | |
* | | util: Add is_pot() method to formats.José Fonseca2010-02-261-0/+7
| | |
* | | util: remove a trailing semicolon in format table codeBrian Paul2010-02-251-1/+1
| | |
* | | util: Remove import of unused sys module.Vinson Lee2010-02-251-3/+0
| | |
* | | util: Assert that pointer is not null before dereferencing.Vinson Lee2010-02-251-1/+4
| | |
* | | util: Kill array vs arith layouts. Revamp UTIL_FORMAT_LAYOUT_xxx.José Fonseca2010-02-244-180/+163
| | | | | | | | | | | | Too confusing. I now can get the same information through other means.
* | | util: Refactor some code.José Fonseca2010-02-241-14/+21
| | |
* | | util: Cope with the fact that formats in u_format.csv are not ordered.José Fonseca2010-02-242-73/+47
| | |
* | | util: Factor out the code to shorten a format name.José Fonseca2010-02-242-15/+14
| | |
* | | util: Handle correctly 24bit formats.José Fonseca2010-02-241-61/+64
| | |
* | | util: Minor tweaks to ambigous/unused format descriptions.José Fonseca2010-02-241-6/+6
| | |