Commit Graph

7348 Commits

Author SHA1 Message Date
José Fonseca f7e403b129 gallium: Remove PIPE_FORMAT_R8G8B8X8_SNORM. 2010-03-03 13:08:23 +00:00
José Fonseca a5b56c8153 util: Remove PIPE_FORMAT_R8G8B8X8_SNORM information. 2010-03-03 13:08:08 +00:00
José Fonseca c51f7a48cd r300: Remove PIPE_FORMAT_R8G8B8X8_SNORM support. 2010-03-03 13:07:56 +00:00
José Fonseca 7b7b66781b llvmpipe: Linux is no longer a dependency. Llvmpipe builds and runs fine on windows too. 2010-03-03 12:07:39 +00:00
José Fonseca 9f9b44222f llvmpipe: Centralize LLVM initialization. 2010-03-03 12:02:26 +00:00
José Fonseca a9e6da7b4c gallivm: Centralize initialization. Fix stack alignment issues on Windows. 2010-03-03 12:02:26 +00:00
José Fonseca f58ca9b02b llvmpipe: Update for lp_bld_init.h rename. 2010-03-03 12:02:26 +00:00
José Fonseca af36b050eb gallivm: Rename lp_bld_misc -> lp_bld_init. 2010-03-03 12:02:26 +00:00
Corbin Simpson 4cb7642ff3 r300g: Use a macro to consolidate general state handling.
My God, I've reinvented R300_STATECHANGE. Forgive me. :C
2010-03-02 19:14:09 -08:00
Christoph Bumiller 20443f969d nv50: fix RT formats after format rename fixes
Getting rid of the evil pre-processor magic, but not changing our
internal format naming convention (at least for now).
2010-03-02 19:16:39 +01:00
José Fonseca aaa2d548ed nouveau: Rename pipe formats.
These format uses were being hiden by pre-processor magic and were
missed in the previous search'n'replace.
2010-03-02 17:26:40 +00:00
José Fonseca 2998cad9ce Merge branch 'gallium-format-cleanup' 2010-03-02 16:00:34 +00:00
Zack Rusin faf8215bae llvmpipe: improve based on review from Jose and fix else clauses
else was broken in the outter most else statemants, plus the code
didn't need an inverted mask to compute the inverse of the current
condition.
2010-03-02 10:19:56 -05:00
Keith Whitwell 0c616da241 llvmpipe: remove some ifdefs
No longer any need to protect expensive asserts with #ifdef DEBUG.
2010-03-02 15:03:09 +00:00
Keith Whitwell 5fe2ce28b6 llvmpipe: reorganize transfer usage
Move transfer creation and mapping to the "scene" object, and out of
the rasterizer.  The rasterizer operates on already-mapped
framebuffers only, and no longer needs a screen or context pointer.

The scene object has access to a pipe_context, and this reorg prepares
for moving transfer functionality from the screen to the context.
2010-03-02 15:03:09 +00:00
Michal Krol 4ca70c489b Merge branch 'gallium-no-rhw-position'
Conflicts:
	src/gallium/drivers/r300/r300_blit.c
	src/gallium/drivers/r300/r300_emit.c
	src/gallium/drivers/r300/r300_state_derived.c
2010-03-02 13:35:30 +01:00
José Fonseca 7a31bed4b1 util: Tweak comment for D3D10-like formats. 2010-03-02 11:30:23 +00:00
José Fonseca 4028fab892 gdi: Rename pipe formats. 2010-03-02 10:21:55 +00:00
José Fonseca 907d5611b2 drm/nouveau: Rename pipe formats. 2010-03-02 10:21:55 +00:00
José Fonseca b34d138d84 svga: Rename pipe formats. 2010-03-02 10:21:55 +00:00
José Fonseca b7b07b0029 softpipe: Rename pipe formats. 2010-03-02 10:21:54 +00:00
José Fonseca b5cfa6f196 r300: Rename pipe formats. 2010-03-02 10:21:21 +00:00
Marek Olšák ff9ddf4d39 util/blitter: Fix the viewport transformation for Z coordinates
When clearing buffers, the depth is specified in the range [0, 1]
and should be passed through blitter "as is".
2010-03-02 10:27:37 +01:00
Vinson Lee c1c7fa5192 i915g: Add assert to check for null pointer dereference. 2010-03-02 01:15:02 -08:00
Zack Rusin 80f3cc36c5 llvmpipe: implement some control-flow
implements if/else/endif constructs and lays down the code for looping
and others. we create a conditional execution mask which decides which
of the four inputs are enabled for any store. it's used only if an
execution mask is present, otherwise we go through a direct store.
2010-03-01 22:13:22 -05:00
George Sapountzis d41ab94d35 glapi.c: misc coscmetic for FreeTSD
- move out of of the dispatch/context block to after corresponding init functions

- use more consistent naming with corresponding init functions

- XXX use _glthread_InitTSD() vs (void)_glthread_GetTSD() in _glapi_check_multithread() XXX
2010-03-01 20:54:20 +02:00
José Fonseca c9f1db0a03 nouveau: Rename pipe formats. 2010-03-01 18:53:32 +00:00
José Fonseca 33080a8454 llvmpipe: Rename pipe formats. 2010-03-01 18:53:32 +00:00
José Fonseca 4710040617 i965: Rename pipe formats. 2010-03-01 18:53:32 +00:00
José Fonseca b2b1e899f6 i915g: Rename pipe formats. 2010-03-01 18:53:32 +00:00
José Fonseca c828f784e5 cell: Rename pipe formats. 2010-03-01 18:53:32 +00:00
José Fonseca 0b6e45e1ee python: Rename pipe formats. 2010-03-01 18:53:32 +00:00
José Fonseca b306308757 vega: Rename pipe formats. 2010-03-01 18:53:32 +00:00
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 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/\<ASDGFSJKDGSDFG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NORM\>/PIPE_FORMAT_R8G8B8X8_SNORM/g
s/\<PIPE_FORMAT_X8UB8UG8SR8S_NORM\>/PIPE_FORMAT_R8SG8SB8UX8U_NORM/g
s/\<PIPE_FORMAT_B6UG5SR5S_NORM\>/PIPE_FORMAT_R5SG5SB6U_NORM/g

s/\<PIPE_FORMAT_S8Z24_UNORM\>/ASDGFSJKDGSDFGSJDFGREKT/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 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
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