Commit graph

31922 commits

Author SHA1 Message Date
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
Vinson Lee
8462fe2bbf glsl: Add assert to check input to strcmp. 2010-03-02 01:10:29 -08:00
Vinson Lee
247008f6c2 mesa: Add asserts to check inputs to memcpy. 2010-03-02 01:01:46 -08:00
Dave Airlie
8bf5c229f3 r600: fix blender picking.
This fixes the sw fallback for GL_SELECT picking modes.

Fixes object picking blender + depthpick test

http://bugs.freedesktop.org/show_bug.cgi?id=26419

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-02 14:12:28 +10: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
d3f24ab33c glapi: fix compile with ES 2010-03-02 03:32:43 +02:00
José Fonseca
6e48f17a16 glapi: Fix syntax. 2010-03-01 23:18:49 +00:00
Pauli Nieminen
9a7776696b radeon: Reduce number of radeon_bo_map calls that require kernel entry.
DMA buffers are often remapped many times for singel cs. To reduce number of
mapping calls ending to kernel dma buffers are mapped when allocated and unmapped
when full or in cs flush. This makes indifual mapping calls in other parts of
code simple increment/decrement reference count which is faster than entering
kernel.

This improves Anholt's openarena benchmark from 36 fps to 44 fps.
2010-03-01 23:56:35 +02:00
Karl Schultz
a379fa8b30 Remove now obsolete mesa_bzero symbol. 2010-03-01 12:21:13 -07:00
George Sapountzis
d7e6e879fd glapi: drop SOLARIS_THREADS
It seems that SOLARIS_THREADS is not used and does not work.
2010-03-01 20:54:20 +02: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
George Sapountzis
7b454b00a4 glapi.c: misc cosmetic
mainly, move the multithread check mutex out of the dispatch/context block,
closer to where it is used.
2010-03-01 20:54:19 +02:00
George Sapountzis
cccdc1783f glapi.c: mv init_glapi_relocs to glapi_getproc.c 2010-03-01 20:54:19 +02:00
George Sapountzis
fae5758fac glapi.c: mv check_table to glapi_getproc.c 2010-03-01 20:54:19 +02:00
George Sapountzis
42f3241e04 glapi.c: split check_table to not_null and get_proc 2010-03-01 20:54:18 +02:00
George Sapountzis
750a7f1f1d glapi.h: drop dispatch_override prototypes
cannot find them in mesa tree
2010-03-01 20:54:18 +02:00
George Sapountzis
57d31591d1 glapi.h: misc cosmetic
- revert context/dispatch order, similar to glapi.c
- stray GL_GLEXT_PROTOTYPES
2010-03-01 20:54:18 +02:00
George Sapountzis
a4ec52f245 glapi.h: consolidate GET_DISPATCH() and GET_CURRENT_CONTEXT() macros
Use likely() macro, as this is what most projects use.

Drops GL_CALL define, cannot find it in mesa tree.

Also, whitespace cleaunps in glthread.h
2010-03-01 20:54:17 +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
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_X8B8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B6U_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
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
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