[Mesa-dev] [PATCH] gallium: Document format name conventions

Michel Dänzer michel at daenzer.net
Tue Jun 4 02:16:18 PDT 2013


On Mon, 2013-06-03 at 12:14 -0400, Adam Jackson wrote:
> 
> diff --git a/src/gallium/docs/format.rst b/src/gallium/docs/format.rst
> new file mode 100644
> index 0000000..e6de569
> --- /dev/null
> +++ b/src/gallium/docs/format.rst
> @@ -0,0 +1,39 @@
> +Formats in gallium
> +==================
> +
> +Gallium format names mostly follow D3D10 conventions, with some extensions.
> +
> +Format names like XnYnZnWn have the X component in the lowest-address n bits
> +and the W component in the highest-address n bits; for B8G8R8A8, byte 0 is
> +blue and byte 3 is red.

'byte 3 is alpha'

Looks good to me other than that.


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the mesa-dev mailing list