Commit graph

32196 commits

Author SHA1 Message Date
José Fonseca
5706d7fcaf wgl: Rename pipe formats. 2010-03-01 18:53:32 +00:00
José Fonseca
d34a1a7028 xorg: Rename pipe formats. 2010-03-01 18:53:32 +00:00
José Fonseca
41b80461b7 glx: Rename pipe formats. 2010-03-01 18:53:31 +00:00
José Fonseca
ae3926011e egl: Rename pipe formats. 2010-03-01 18:53:31 +00:00
José Fonseca
c456dd5b4b dri: Rename pipe formats. 2010-03-01 18:53:31 +00:00
José Fonseca
7d1a79a04e mesa: Rename pipe formats. 2010-03-01 18:53:31 +00:00
José Fonseca
a489753471 translate: Rename pipe formats. 2010-03-01 18:53:31 +00:00
José Fonseca
7a61722f69 draw: Rename pipe formats. 2010-03-01 18:53:31 +00:00
José Fonseca
712ba6e6b0 util: Rename pipe formats. 2010-03-01 18:53:31 +00:00
José Fonseca
3843548a67 gallium: Standardize on the LSB->MSB notation.
Less confusing, and seems to gather more consensus.

Below are the sed commands used. This and following commits are the
result of applying this too to the whole tree, plus manual whitespaces
fixes.

s/\<PIPE_FORMAT_A8R8G8B8_UNORM\>/ASDGFSJKDGSDFGSJDFGREKT/g
s/\<PIPE_FORMAT_B8G8R8A8_UNORM\>/PIPE_FORMAT_A8R8G8B8_UNORM/g
s/\<ASDGFSJKDGSDFGSJDFGREKT\>/PIPE_FORMAT_B8G8R8A8_UNORM/g

s/\<PIPE_FORMAT_X8R8G8B8_UNORM\>/ASDGFSJKDGSDFGSJDFGREKT/g
s/\<PIPE_FORMAT_B8G8R8X8_UNORM\>/PIPE_FORMAT_X8R8G8B8_UNORM/g
s/\<ASDGFSJKDGSDFGSJDFGREKT\>/PIPE_FORMAT_B8G8R8X8_UNORM/g

s/\<PIPE_FORMAT_R8G8B8A8_UNORM_REV\>/PIPE_FORMAT_A8B8G8R8_UNORM/g
s/\<PIPE_FORMAT_R8G8B8X8_UNORM\>/PIPE_FORMAT_X8B8G8R8_UNORM/g
s/\<PIPE_FORMAT_A1R5G5B5_UNORM\>/PI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KDGSDFGSJDFGREKT/g
s/\<PIPE_FORMAT_Z24S8_UNORM\>/PIPE_FORMAT_S8Z24_UNORM/g
s/\<ASDGFSJKDGSDFGSJDFGREKT\>/PIPE_FORMAT_Z24S8_UNORM/g

s/\<PIPE_FORMAT_X8Z24_UNORM\>/ASDGFSJKDGSDFGSJDFGREKT/g
s/\<PIPE_FORMAT_Z24X8_UNORM\>/PIPE_FORMAT_X8Z24_UNORM/g
s/\<ASDGFSJKDGSDFGSJDFGREKT\>/PIPE_FORMAT_Z24X8_UNORM/g

s/\<PIPE_FORMAT_YCBCR\>/PIPE_FORMAT_UYVY/g
s/\<PIPE_FORMAT_YCBCR_REV\>/PIPE_FORMAT_YUYV/g
2010-03-01 18:51:55 +00:00
José Fonseca
b152abe914 progs/gallium/unit: Rename PIPE_FORMAT_A8B8G8R8_SNORM. 2010-03-01 18:47:36 +00:00
José Fonseca
568a3c7365 r300: Remove PIPE_FORMAT_A8B8G8R8_SNORM.
PIPE_FORMAT_R8G8B8A8_SNORM already listed.
2010-03-01 18:47:36 +00:00
José Fonseca
971ab386c0 softpipe: Advertise PIPE_FORMAT_R8G8B8A8_SNORM instead. 2010-03-01 18:47:36 +00:00
José Fonseca
a6c4c4486d util: Remove PIPE_FORMAT_A8B8G8R8_SNORM. 2010-03-01 18:47:36 +00:00
José Fonseca
835a725684 gallium: Remove PIPE_FORMAT_A8B8G8R8_SNORM.
Its actually an alias for PIPE_FORMAT_R8G8B8A8_SNORM.
2010-03-01 18:47:36 +00:00
Michal Krol
c863f30155 util: Generate linear<->sRGB conversion tables. 2010-03-01 19:00:40 +01:00
Roland Scheidegger
881be30836 identity: adapt to new vertex element cso 2010-03-01 18:48:05 +01:00
Roland Scheidegger
2918edb46a failover: adapt to new vertex element cso 2010-03-01 18:47:54 +01:00
Roland Scheidegger
470dbb84b8 i965g: adapt to new vertex element cso 2010-03-01 18:47:28 +01:00
Roland Scheidegger
8e2df0dcb9 i915g: adapt to new vertex element cso 2010-03-01 18:47:17 +01:00
Roland Scheidegger
4dfe2df629 cell: adapt to new vertex element cso 2010-03-01 18:47:04 +01:00
Roland Scheidegger
e9441e1f88 r300g: adapt to new vertex element cso 2010-03-01 18:46:49 +01:00
Roland Scheidegger
f897303855 llvmpipe: adapt to new vertex element cso 2010-03-01 18:46:39 +01:00
Roland Scheidegger
057427dd3e softpipe: adapt to new vertex element cso 2010-03-01 18:46:29 +01:00
Roland Scheidegger
b1676a953e svga: adapt to new vertex element cso 2010-03-01 18:46:12 +01:00
Roland Scheidegger
618e7e0c88 trace: adapt to new vertex element cso 2010-03-01 18:45:57 +01:00
Roland Scheidegger
9abef5ebfa vega: adapt to new vertex element cso 2010-03-01 18:45:46 +01:00
Roland Scheidegger
1f57069c68 vega: adapt to new vertex element cso 2010-03-01 18:45:25 +01:00
Roland Scheidegger
711476be29 xorg: adapt to new vertex element cso 2010-03-01 18:43:58 +01:00
Roland Scheidegger
8397c80646 gallium/docs: document new vertex element cso interface 2010-03-01 18:42:47 +01:00
Roland Scheidegger
49d3f662b6 vl: adapt to new vertex element cso interface 2010-03-01 18:41:03 +01:00
Roland Scheidegger
ac4abaecd5 util: adapt blitter code to new vertex element cso
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.
2010-03-01 18:40:22 +01:00
Roland Scheidegger
18603a2f07 st/mesa: fix mesa statetracker adaption to new vertex elements interface 2010-03-01 18:36:19 +01:00
Michal Krol
9a2c4f907b tgsi: Cleanup exec code for CLAMP, CMP and CND. 2010-03-01 17:57:18 +01: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
88e640fc14 xlib: Use PIPE_FORMAT_R8G8B8A8_UNORM(_REV) as appropriate. 2010-03-01 16:28:38 +00:00
José Fonseca
a2bcdb7e50 r300: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate. 2010-03-01 16:26:36 +00:00
José Fonseca
2c1249e226 i915g: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate. 2010-03-01 16:25:25 +00:00
José Fonseca
382d1d370b mesa: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate. 2010-03-01 16:25:04 +00:00
José Fonseca
daf7caf4cf util: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate. 2010-03-01 16:24:48 +00:00
José Fonseca
cd8b652303 gallium: Introduce a new format to disambiguate PIPE_FORMAT_R8G8B8A8_UNORM.
PIPE_FORMAT_R8G8B8A8_UNORM now means just

  R8 G8 B8 A8

PIPE_FORMAT_R8G8B8A8_UNORM_REV means

  A8 B8 G8 R8

And the thumb rule is vertex buffers refer to PIPE_FORMAT_R8G8B8A8_UNORM,
while textures refer to PIPE_FORMAT_R8G8B8A8_UNORM_REV.

PIPE_FORMAT_R8G8B8A8_UNORM_REV is just a temporary name.
2010-03-01 16:24:09 +00:00
José Fonseca
d170d73b16 bin: Remove raw2png.py.
Outdated, broken, and unused.
2010-03-01 16:10:49 +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
Michal Krol
b42455c4f4 r300: Save viewport and clip states before invoking blitter. 2010-03-01 17:07:03 +01:00
Michal Krol
932e6f8d52 util: Fix u_blitter setup code after bypass_vs_clip_and_viewport removal.
Not tested.
2010-03-01 17:06:20 +01:00
Jakob Bornecrantz
d160eed005 r300g: Conversion to to winsys handle 2010-03-01 16:05:59 +00:00
Jakob Bornecrantz
3a2358b6c6 svga: Conversion to winsys handle 2010-03-01 16:05:58 +00:00
Jakob Bornecrantz
45089784e3 i965g: Conversion to winsys handle 2010-03-01 16:05:48 +00:00
Jakob Bornecrantz
0e1eb1b876 i915g: Conversion to winsys handle 2010-03-01 16:05:40 +00:00
Jakob Bornecrantz
3f37f23d17 gallium: Reorg texture usage flags
Introduce a new shared usage and rename primary to scanout.
The display target usage is more of a windows concept and
doesn't mean the same thing as shared. Display target means
that the surface should be presentable, for softpipe this
means that it should be backed by a hardware buffer.
2010-03-01 16:05:35 +00:00