Corbin Simpson
950300eb25
util: Init half-float tables on demand.
Gets rid of unnecessary delays on startup and compiler-specific hax.
15 years ago
José Fonseca
7e1aceaf0a
llvmpipe: Support sampling from PIPE_FORMAT_R32_FLOAT.
15 years ago
Michal Krol
13d2f3c738
util: Declare .CRT$XCU data segment.
15 years ago
Michal Krol
8c519e5f87
scons: Remove `util/u_gctors.cpp'.
15 years ago
Luca Barbieri
4edffe026e
gallium/util: rewrite global constructor system for half floats (GCC/MSVC only!)
NOTE: this commit will cause Gallium to fail to build on any compiler
except GCC, the Microsoft C compiler and compatible compilers that
claim to be one of those.
This commit removes the u_gctors.cpp mechanism, in favor of using
compiler-specific syntax to add global constructors from C files.
This solves the problem of u_gctors.o not being pulled from static
libraries and avoids using C++.
However, it needs compiler-specific support for every compiler.
The Microsoft C compiler support has not been tested.
15 years ago
José Fonseca
8f38135e28
llvmpipe: Support sampling from signed and mixed siged formats.
15 years ago
José Fonseca
675fcb6cae
python/tests: We're using a rgba8 rendertarget so sample only in the [0, 1] range.
15 years ago
José Fonseca
f14c5adbc7
st/python: Allow to sample only in the [0,1] range.
15 years ago
José Fonseca
811e602954
python/tests: Several cleanups.
15 years ago
José Fonseca
e011272fa3
st/python: Always use softpipe as reference driver.
15 years ago
Luca Barbieri
38afd1e445
gallium/util: add copyright header to u_half.c
15 years ago
Chia-I Wu
a49db89326
Update DEMO_FILES for demos using EGL.
Reflect the recent addtion of eglut and reorganization of the EGL demos.
This helps remove ~2k lines of duplicated code
$ git diff --shortstat -M 57cc1db87b
18 files changed, 298 insertions(+), 2178 deletions(-)
15 years ago
Chia-I Wu
532b7400fd
progs/egl: Port OpenVG lion and sp to eglut.
15 years ago
Chia-I Wu
7b48d88407
progs/egl: Port ES1 gears to eglut.
As gears in the last demo under "screen" subdirectory, this also removes
the directory.
15 years ago
Chia-I Wu
dd7276f494
progs/egl: Port ES1 tri to eglut.
This also removes EGL_MESA_screen_surface version of ES1 tri as eglut
supports the extension.
15 years ago
Chia-I Wu
765b30849c
progs/egl: Replace egltri by xegl_tri.
With the switch to eglut, xegl_tri supports both X11 and
EGL_MESA_screen_surface. Have it replace egltri.
15 years ago
Chia-I Wu
02551cab47
progs/egl: Porg xegl_tri to eglut.
15 years ago
Chia-I Wu
589f6740ea
progs/egl: Port eglgears to eglut.
15 years ago
Chia-I Wu
57cc1db87b
progs/egl: Add eglut.
eglut is a simple library with GLUT-like API. It is intended to be used
by simple EGL demos.
15 years ago
Chia-I Wu
fc3ddd4b56
progs/openvg: Move OpenVG demos to a subdirectory of progs/egl.
That is, move
progs/openvg/demos to progs/egl/openvg,
progs/openvg/trivial to progs/egl/openvg/trivial.
15 years ago
Chia-I Wu
7f231cab2b
progs/es: Move OpenGL ES demos to subdirectories of progs/egl.
Move
progs/es1/xegl -> progs/egl/opengles1,
progs/es1/screen -> progs/egl/opengles1/screen,
progs/es2/xegl -> progs/egl/opengles2.
15 years ago
Chia-I Wu
c727ef0108
progs/egl: Move demos a level deeper.
Move the demos to "opengl" subdirectory.
15 years ago
José Fonseca
2da7ef077a
llvmpipe: More tweaks to the supported texture formats.
15 years ago
José Fonseca
6b1a8e0f87
gallium/unit: Invoke util_half_init_tables().
half float formats now pass the tests.
15 years ago
José Fonseca
89034b8ae7
util: Declare util_half_init_tables only once.
15 years ago
José Fonseca
982d36667d
util: Use u_math.h's union fi instead of redefining it.
15 years ago
José Fonseca
08eb07bc83
util: Add support for other DXTn RGBA formats.
15 years ago
José Fonseca
8548efbe1d
util: Get DXT1_RGB format working correctly.
15 years ago
José Fonseca
ca6aacf842
util: Add test case for PIPE_FORMAT_DXT1_RGB.
15 years ago
José Fonseca
9899ebd2fc
llvmpipe: Fix build...
15 years ago
José Fonseca
d099554492
util: Allow to have block format test cases
15 years ago
Michal Krol
943408533d
util: Generate correct format conversions for half floats.
15 years ago
Michal Krol
b7bca4b28c
util: Use u_half to perform half <--> float conversions.
15 years ago
Michal Krol
5a359df219
gallium: Integrate util_half with scons.
15 years ago
Luca Barbieri
3ff175d6de
gallium/util: add fast half float conversion functions
This adds a fast half float conversion facility to Gallium.
Mesa already contains such a facility, but using a much worse algorithm.
This one is an implementation of
www.fox-toolkit.org/ftp/fasthalffloatconversion.pdf
and uses a branch-less algorithm with some lookup tables small enough
to fit in the L1 cache.
Ideally, Mesa should start using these functions too, but I'm not sure
how to arrange that with the current build system.
A new "u_gctors.cpp" is added that defines a global C++ constructor
allowing to initialize to conversion lookup tables at library init.
15 years ago
José Fonseca
110e039d0d
gallium/unit: Install test in build/xxx/bin
15 years ago
José Fonseca
f706f12bbf
util: Add half float test cases.
15 years ago
José Fonseca
898ddd6b00
llvmpipe: Fix (un)swizzling, broken due to use of VOID channels.
15 years ago
Vinson Lee
bef912abd3
mesa: Remove unnecessary header.
15 years ago
Vinson Lee
e6be593fbf
r300g: Remove unnecessary header.
15 years ago
Luca Barbieri
7326851757
util/format: fix big endian compilation by not trying to byteswap single bytes
Conceivably, we could also have a dummy util_bswap8, but it seems better
to not emit it in the first place.
15 years ago
Zack Rusin
2fb655d1db
gallivm: convert floats to doubles
printf can't handle floats, convert them to doubles so that we can
actually print floats.
15 years ago
Marek Olšák
2ab7375572
r300g: add RGBA16F colorbuffer support
Disabled by default due to unresolved IP issues.
15 years ago
Marek Olšák
3252651fb2
r300g: add RGTC texture support
The CS checker already knows about this.
15 years ago
Marek Olšák
39e116e3a0
r300g: format handling cleanup
15 years ago
José Fonseca
f45d43a17f
softpipe: Use S3TC when avaiilable,
15 years ago
José Fonseca
9388ce4191
util: Hook into libtxc_dxtn.so (WIP).
15 years ago
José Fonseca
b5d073b39d
llvmpipe: Don't call unused generate_clamp().
15 years ago
José Fonseca
36e92a0494
libgl-xlib: Fix missing X11 symbols.
15 years ago
José Fonseca
018aae950d
util: Make the accessors bidimensional again.
Otherwise there's no way to unpack blocks with height >1
15 years ago