History log of /external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fb523cb6ad3ffef22ab4b9cce9e53859c17c5739 16-Apr-2016 Marek Olšák <marek.olsak@amd.com> gallium: merge PIPE_SWIZZLE_* and UTIL_FORMAT_SWIZZLE_*

Use PIPE_SWIZZLE_* everywhere.
Use X/Y/Z/W/0/1 instead of RED, GREEN, BLUE, ALPHA, ZERO, ONE.
The new enum is called pipe_swizzle.

Acked-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
33339775565154040e0c4ea2e196217dccc08cdf 21-Nov-2015 Ilia Mirkin <imirkin@alum.mit.edu> gallium: add ASTC formats

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
1c7d0a6aa4f5cb38af7e281e1e5437cd1a20f781 21-Nov-2015 Ilia Mirkin <imirkin@alum.mit.edu> gallium/util: remove the fake format helpers for bptc and etc2

This was a silly hack that kept growing and growing. Instead, just write
NULLs for those functions. No need to have helpers that just assert(0)
when you call them.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
0821efcb333ed2af639561f0ae77220ed4710559 16-Feb-2015 Ilia Mirkin <imirkin@alum.mit.edu> gallium: add ETC2 format support

No actual decoding is added, similar faking mechanism to bptc.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
43c038f4a621b081a9f85ab3b1b7f1264e4e2377 23-Jul-2014 Ilia Mirkin <imirkin@alum.mit.edu> gallium: add basic support for BPTC formats

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
1a3746212d176f5907278871a9046ac9444dc27e 19-Mar-2014 Richard Sandiford <rsandifo@linux.vnet.ibm.com> util: Split out channel-printing Python code

Rather than iterate over format.channels and format.swizzles directly,
use Python subfunctions that take the channel and swizzle lists as
arguments. This allow the channel and swizzle lists to depend on
endianness.

There is no change to the generated u_format_table.c.

Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
227d7a6a3ca0e32df2c87cf50112c5d7f02b2aae 19-Mar-2014 Richard Sandiford <rsandifo@linux.vnet.ibm.com> util: Add more query methods to u_format_parse.Format

The main aim is to reduce the number of places that access channels[0],
swizzles[0] and swizzles[1] directly.

There is no change to the generated u_format_table.c.

Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
2151d893fbd4a4be092098170e2fbca8c35797a5 24-Jun-2013 Adam Jackson <ajax@redhat.com> gallium: Fix llvmpipe on big-endian machines

Squashed commit of the following:

commit 0857a7e105bfcbc4d1431b2cc56612094c747ca3
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:07 2013 -0400

gallivm: Fix lp_build_rgba8_to_fi32_soa for big endian

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 0d65131649a8aa140e2db228ba779d685c4333e3
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:07 2013 -0400

gallivm: Fix big-endian machines

This adds a bit-shift count to the format table, and adds the concept of
vector or bitwise alignment on gathers.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 9740bda9b7dc894b629ed38be9b51059ce90818f
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:07 2013 -0400

llvmpipe: Fix convert_to_blend_type on big-endian

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit ae037c2de0f029e4e99371c0de25560484f0d8df
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:06 2013 -0400

util: Convert color pack to packed formats

This fixes them on big-endian.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 5b05ac0c89ae092ea8ba5bba9f739708d7396b5c
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:06 2013 -0400

graw-xlib: Convert to packed formats

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 51396e7d098cb6ff794391cf11afe4dbf86dbea0
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:06 2013 -0400

format: Convert to packed formats

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 417b60bc66eb450e68a92ab0e47f76e292b385e6
Author: Adam Jackson <ajax@redhat.com>
Date: Tue Jun 18 12:25:06 2013 -0400

st/dri: Convert to packed formats

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 0934b2e022a5e0847d312c40734e2b44cac52fd8
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:06 2013 -0400

st/xlib: Convert to packed formats

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit a307ea3c3716a706963acce7966b5e405ba11db9
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:06 2013 -0400

gbm: Convert to packed formats

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 53eebdd253e1960a645ea278f31d7ef6a6cf4aeb
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:06 2013 -0400

tests: Convert to packed formats

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 2f77fe3ee524945eacd546efcac34f7799fb3124
Author: Adam Jackson <ajax@redhat.com>
Date: Tue Jun 18 13:07:37 2013 -0400

gallium: Document packed formats

Signed-off-by: Adam Jackson <ajax@redhat.com>

commit 1f1017159ce951f922210a430de9229f91f62714
Author: Richard Sandiford <r.sandiford@uk.ibm.com>
Date: Tue Jun 18 12:25:06 2013 -0400

gallium: Introduce 32-bit packed format names

These are for interacting with buffers natively described in terms of
bit shifts, like X11 visuals:

uint32_t xyzw8888 = (x << 0) | (y << 8) | (z << 16) | (w << 24);

Define these in terms of (endian-dependent) aliases to the array-style
format names.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <r.sandiford@uk.ibm.com>

commit 6cc7ab1ee66ed668da78c1d951dfd7782b4e786a
Author: Adam Jackson <ajax@redhat.com>
Date: Mon Jun 3 12:10:32 2013 -0400

gallium: Document format name conventions

v2:
- Fix a channel name thinko (Michel Dänzer)
- Elaborate on SCALED versus INT
- Add links to DirectX and FOURCC docs

Signed-off-by: Adam Jackson <ajax@redhat.com>

commit df4d269e7fb62051a3c029b84147465001e5776e
Author: Adam Jackson <ajax@redhat.com>
Date: Tue Jun 18 12:25:06 2013 -0400

gallivm: Remove all notion of byte-swapping

Signed-off-by: Adam Jackson <ajax@redhat.com>

Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
1ba3240b281fcbbf03372a6e2db68292cb8a8907 02-Jan-2012 Marek Olšák <maraeo@gmail.com> u_format: implement fetch_rgba_uint and fetch_rgba_sint for integer formats

Fetching int as float and vice versa is not allowed.
Fetching unsigned int as signed int and vice versa is not allowed either.
Doing conversions like that isn't allowed for samplers in OpenGL.

The three hooks could be consolidated into one fetch hook, which would fetch
uint as uint32, sint as sint32, and everything else as float. The receiving
parameter would be void*. This would be useful for implementing vertex fetches
for shader model 4.0, which has untyped registers.

Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
5c31eb78e5fa4c4cfcc82df3c9a2c34fcd4b402c 28-Nov-2011 Chia-I Wu <olv@lunarg.com> gallium: add PIPE_FORMAT_ETC1_RGB8

The format is defined by GL_OES_compressed_ETC1_RGB8_texture.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
7ff247712d7c01141756d0999ff86af1e109ce7c 31-Oct-2011 José Fonseca <jfonseca@vmware.com> util: Add missing initializer.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
866f9b18c68ede63c00917ec9c3dae3524ca8826 11-Sep-2011 Dave Airlie <airlied@redhat.com> gallium: rename ZS stencil type to UINT (v2)

these are never USCALED, always UINT in reality.

taken from some work by Christoph Bumiller

v2: fixup formatting of table + tabs

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
a441feb757b1be4845ba378f0207dcdc5cc1a407 19-Sep-2011 Dave Airlie <airlied@redhat.com> gallium: add initial pure integer support (v2)

This add support for unsigned/signed integer types via adding a 'pure' bit
in the format description table. It adds 4 new u_format get/put hooks,
for get/put uint and get/put sint so that accessors can get native access
to the integer bits. This is used to avoid precision loss via float converting
paths.

It doesn't add any float fetchers for these types at the moment, GL doesn't
require float fetching from these types and I expect we'll introduce a lot
of hidden bugs if we start allowing such conversions without an API mandating
it.

It adds all formats from EXT_texture_integer and EXT_texture_rg.

0 regressions on llvmpipe here with this.

(there is some more follow on code in my gallium-int-work branch, bringing
softpipe and mesa to a pretty integer clean state)

v2: fixup python generator to get signed->unsigned and unsigned->signed
fetches working.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
23f92c20d721aa373d91a949586fd93a92d9f275 07-Mar-2011 Marek Olšák <maraeo@gmail.com> gallium/util: add LATC support

Again, a lot of code is shared with RGTC.

The layout is UTIL_FORMAT_LAYOUT_RGTC, because LATC is just swizzled RGTC.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
8d62b2aca99ba67f794dd682ed1ec49dc8826390 02-Mar-2011 Dave Airlie <airlied@redhat.com> gallium: add RGTC UNORM support to u_format.

SNORM needs a bit of work in the state tracker in order for mipmap
generation to work I believe.

I'm also not sure that having unorm fetches for an snorm format is
sane.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
5479fa34d9acebd55f68c23a278cf382d0e84248 28-Oct-2010 José Fonseca <jfonseca@vmware.com> gallium: Avoid using __doc__ in python scripts.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
a2d360b91545ad00abec518e8449df5d8d838b13 02-Jul-2010 José Fonseca <jfonseca@vmware.com> util: Add a fetch_rgba_8unorm.

Not always implemented, but useful in situations where we want 8unorms
and the samples comes as 8unorms as we needlessly convert to/from
floats.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
b1cfc195bb802d6ee2b7e230e7d7bce9ffe7eefd 09-Apr-2010 José Fonseca <jfonseca@vmware.com> util: Reorder format tests -- group by format.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
d3808b1b1f34dbb826b99102786d94e1baf9d667 09-Apr-2010 José Fonseca <jfonseca@vmware.com> util: Add dedicated depth-stencil packing/unpacking functions.

Depth-stencil manually written given that each one is very close to
be a special case.

u_format_zs.c's still untested.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
47e61426586bb9f9f40950e9c4372e4f12bb9ed6 03-Apr-2010 José Fonseca <jfonseca@vmware.com> util: Revert unsolicited, untested, unreviewed, and broken changes to format 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.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
5126683e3b971ccfb51e50e560750ce44e86bae8 02-Apr-2010 Luca Barbieri <luca@luca-barbieri.com> gallium/util: add util_format_is_supported to check for pack/unpack

This improves the code by making it more readable, and removes
special knowledge of S3TC and other formats from softpipe.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
9388ce41917fa4c706c5e284d960e1ca648ee935 31-Mar-2010 José Fonseca <jfonseca@vmware.com> util: Hook into libtxc_dxtn.so (WIP).
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
329814c6ee8a87d67a55ecf197af9d6e6fb7ade0 18-Mar-2010 José Fonseca <jfonseca@vmware.com> util: Describe PIPE_FORMAT_NONE as PIPE_FORMAT_R8_USCALED.

Avoids the need to special case PIPE_FORMAT_NONE so often.

Conflicts:

src/gallium/auxiliary/util/u_format_table.py
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
69895725cfe9d4dc917ff6e643af9e6e3a6e093f 31-Mar-2010 José Fonseca <jfonseca@vmware.com> util: Add callback to fetch a single pixel.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
96bf4aff5bd674bba5d83ab32c46024a686c1a1d 31-Mar-2010 José Fonseca <jfonseca@vmware.com> util: Put the format pack/unpack functions in the description table.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
cfde6c50ae6c3ce7912a3d1231c459d020d77f13 06-Mar-2010 José Fonseca <jfonseca@vmware.com> util: Add a new flag, for formats that can be described as a bitmask.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
4afae877e6914e311340e0b1d3490ec2fed9422f 06-Mar-2010 José Fonseca <jfonseca@vmware.com> util: Add the shortened format name to the description.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
4757325951e35460975e77d70dacf8b6eb10ab11 26-Feb-2010 José Fonseca <jfonseca@vmware.com> util: Factor some code into u_format_parse.py
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
092010db3798f9a49ff9184bf238099af849e885 26-Feb-2010 José Fonseca <jfonseca@vmware.com> util: Use python names consistent with u_format.h
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
31ff9b0a135bf913ae6b44868bde31534a87802c 26-Feb-2010 Brian Paul <brianp@vmware.com> util: remove a trailing semicolon in format table code
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
3c45c4bc44310c1af4f0c06d29eb0a9d39a38837 24-Feb-2010 José Fonseca <jfonseca@vmware.com> util: Cope with the fact that formats in u_format.csv are not ordered.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
5dce9b252b65102ed69956fdd47862d5cb1c4af1 23-Feb-2010 José Fonseca <jfonseca@vmware.com> util: Store more derived data in the the format description.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
16c6dce013f089d072256652f012b3b604781bfd 17-Dec-2009 Michal Krol <michal@vmware.com> Merge branch 'master' into pipe-format-simplify

Conflicts:
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/auxiliary/draw/draw_pipe_pstipple.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_tile_cache.c
src/gallium/drivers/svga/svga_state_vs.c
src/gallium/include/pipe/p_format.h
src/gallium/state_trackers/dri/dri_drawable.c
src/gallium/state_trackers/egl/egl_surface.c
src/gallium/state_trackers/python/p_device.i
src/gallium/state_trackers/python/st_softpipe_winsys.c
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/vg_tracker.c
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/gallium/state_trackers/xorg/xorg_renderer.c
src/gallium/state_trackers/xorg/xorg_xv.c
src/gallium/state_trackers/xorg/xvmc/surface.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/radeon/core/radeon_buffer.c
src/gallium/winsys/egl_xlib/sw_winsys.c
src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c
src/gallium/winsys/gdi/gdi_softpipe_winsys.c
src/gallium/winsys/xlib/xlib_cell.c
src/gallium/winsys/xlib/xlib_llvmpipe.c
src/gallium/winsys/xlib/xlib_softpipe.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.c
dfdf83d714c0d32d9182eb3001cf642aa6cb5c87 09-Dec-2009 Michal Krol <michal@vmware.com> Revert "Simplify the redundant meaning of format layout."

This reverts commit eb926ddf9eee1095c7fc12013f0b8375bbaeca6f.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
eb926ddf9eee1095c7fc12013f0b8375bbaeca6f 08-Dec-2009 Michal Krol <michal@vmware.com> Simplify the redundant meaning of format layout.

We really just need to know whether the format is compressed or not.
For more detailed information format colorspace should suffice.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
ddbd2d08b7c5b5653981db8fec58d5c3244049cd 08-Dec-2009 Michal Krol <michal@vmware.com> util/format: Take advantage of sequential nature of pipe_format enum.

Make sure the format descriptor table can be indexed directly.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
7fc75ef7d43038385b5fba73a67f1e4783b045d6 03-Dec-2009 José Fonseca <jfonseca@vmware.com> util: Fix generated swizzle comments.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
3d305243938980af520c6d3e0ce02f4ee3a6126c 30-Aug-2009 José Fonseca <jfonseca@vmware.com> 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
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
42b15b26fd946c9511bd4bd5f23ec7e76e15507c 28-Jul-2009 José Fonseca <jfonseca@vmware.com> util: Make pixel format layout more meaningful.

Namelly, explicitly distinguish formats coded by arithmetic manipulation,
from formats layed out in array.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py
15422b2d99be074e1d6ac064b6f791245975da83 27-Jul-2009 José Fonseca <jfonseca@vmware.com> 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.
/external/mesa3d/src/gallium/auxiliary/util/u_format_table.py