Commit Graph

32 Commits

Author SHA1 Message Date
Alan Hourihane 94abc4b51e Add format B5G5R5X1 2010-03-18 18:01:41 +00:00
José Fonseca a5b56c8153 util: Remove PIPE_FORMAT_R8G8B8X8_SNORM information. 2010-03-03 13:08:08 +00:00
José Fonseca 7a31bed4b1 util: Tweak comment for D3D10-like formats. 2010-03-02 11:30:23 +00:00
José Fonseca 712ba6e6b0 util: Rename pipe formats. 2010-03-01 18:53:31 +00:00
José Fonseca a6c4c4486d util: Remove PIPE_FORMAT_A8B8G8R8_SNORM. 2010-03-01 18:47:36 +00:00
José Fonseca ac8e1c18f2 util: Fix PIPE_FORMAT_R8G8B8_SRGB swizzles.
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.
2010-03-01 16:42:54 +00:00
José Fonseca daf7caf4cf util: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate. 2010-03-01 16:24:48 +00:00
José Fonseca 018f4aca79 util: Fix PIPE_FORMAT_R8G8B8_UNORM description and notes.
There is actually no ambiguity in use -- it is always used as

  R8 G8 B8
2010-03-01 16:07:53 +00:00
José Fonseca cfdc146247 util: Remove inexisting formats.
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.
2010-03-01 15:16:54 +00:00
José Fonseca 28f2888565 util: A few more links for D3D formats. 2010-03-01 15:14:30 +00:00
José Fonseca b66b4cf646 util: A few more todo marks. 2010-03-01 14:56:20 +00:00
José Fonseca 4a991b5783 util: More documentation for u_format.csv 2010-03-01 14:56:20 +00:00
José Fonseca ffe90af2e8 util: Tweak comments regarding R8G8B8A8/X8_UNORM. 2010-03-01 14:56:20 +00:00
José Fonseca bd3c063da8 python: Don't mention deprecated drivers=trace option.
Now trace always built.
2010-03-01 14:56:19 +00:00
José Fonseca 1eba490202 util: Fix X8/A8B8G8R8_SNORM's swizzle. 2010-02-27 20:29:14 +00:00
José Fonseca c78f84eebb util: Define SRGB's channels as normalized.
A better approximation than uscaled...
2010-02-26 16:46:34 +00:00
José Fonseca 816d23505a util: Kill array vs arith layouts. Revamp UTIL_FORMAT_LAYOUT_xxx.
Too confusing. I now can get the same information through other means.
2010-02-24 16:16:21 +00:00
José Fonseca 5caa004829 util: Minor tweaks to ambigous/unused format descriptions. 2010-02-24 15:45:28 +00:00
José Fonseca 55f02ba364 util: Fix swizzles for SRGB formats.
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.
2010-02-24 15:45:28 +00:00
José Fonseca ba7ce0ccd4 util: Organize formats in groups. Add comments. 2010-02-24 15:45:28 +00:00
Michal Krol 69dd99ba86 Revert "util: Fix descriptors for R32_FLOAT and R32G32_FLOAT formats."
This reverts commit aa0b671422.
2010-02-12 14:45:51 +01:00
Michal Krol aa0b671422 util: Fix descriptors for R32_FLOAT and R32G32_FLOAT formats.
Fill in ones for missing components.
2010-02-12 13:32:35 +01:00
Michal Krol d29e72633c util: Fix encoding for R8G8B8A8_UNORM formats and friends. 2010-01-15 19:00:09 +01:00
Michal Krol ace932450c util: Fix format descriptor table entries. 2010-01-06 16:11:28 +01:00
Michal Krol ddbd2d08b7 util/format: Take advantage of sequential nature of pipe_format enum.
Make sure the format descriptor table can be indexed directly.
2009-12-08 15:46:15 +01:00
José Fonseca 1325361abe util: Describe a few more formats. 2009-11-24 14:25:21 +00:00
José Fonseca fa150debf0 util: Fix a1r5g5b5's format description. 2009-09-14 11:05:38 +01:00
José Fonseca da912a7a16 util: Fix depth/stencil format description.
Inverse channel order.
2009-09-09 21:48:49 +01:00
José Fonseca 3d30524393 util: Auto generate pixel format accessor functions from
This has several advantages over the u_
 - not hand written
 - no intermediate memcpy of raw pixels
 - supports 4 ubytes in addition to floats
 - no need to pass a pipe_transfer

It also has (hopefully temporary) limitations:
 - no support for YUV
 - no support for SRGB
2009-08-30 12:37:03 +01:00
José Fonseca 42b15b26fd util: Make pixel format layout more meaningful.
Namelly, explicitly distinguish formats coded by arithmetic manipulation,
from formats layed out in array.
2009-08-29 09:21:20 +01:00
José Fonseca 899bee2788 util: Fix r5g6b5 description. 2009-08-29 09:21:19 +01:00
José Fonseca 15422b2d99 util: Pixel format database.
There are some inconsistencies in pipe_format, but above all, there
simply aren't enough bits in an enum to conveniently store all
information about a pixel format we need to be able to dynamically
generate pixel packing/unpacking code.
2009-08-29 09:21:15 +01:00