Commit graph

19 commits

Author SHA1 Message Date
José Fonseca
32631b69f5 gallivm: Integrate udis86 on scons builds. 2010-03-06 09:34:31 +00:00
José Fonseca
af36b050eb gallivm: Rename lp_bld_misc -> lp_bld_init. 2010-03-03 12:02:26 +00:00
José Fonseca
9beb302212 util: Code generate functions to pack and unpack a single pixel.
Should work correctly for all pixel formats except SRGB formats.

Generated code made much simpler by defining the pixel format as
a C structure. For example this is the generated structure for
PIPE_FORMAT_B6UG5SR5S_NORM:

union util_format_b6ug5sr5s_norm {
   uint16_t value;
   struct {
      int r:5;
      int g:5;
      unsigned b:6;
   } chan;
};

Not used everywhere yet because it seems compiled code is slower than
bitshift arithmetic by some misterious reason. So we should generate
bitshift arithmetic at least for the simple UNORM pixel formats.
2010-02-26 16:46:34 +00:00
José Fonseca
3c45c4bc44 util: Cope with the fact that formats in u_format.csv are not ordered. 2010-02-24 15:45:28 +00:00
José Fonseca
270279ac99 os: A stream for debug logging.
Just a wrapper around os_log_message. Although it would probably make
more sense to be the other way around.

Also some comment fixes.
2010-02-14 23:53:42 +00:00
José Fonseca
165b824343 util: Helper functions to dump all state objects. 2010-02-14 23:25:34 +00:00
José Fonseca
64606231b8 os: Add a growable string stream. 2010-02-14 23:25:34 +00:00
José Fonseca
2b4575f16d os: Make streams abstract.
Also replace windows kernel stream with null implementation. It was
severely limited and no easy means to test it now.
2010-02-14 23:25:33 +00:00
José Fonseca
c16a8e0dd5 util: Rename u_debug_dump.[ch] -> u_dump.[ch].
I have more plans for this than mere debugging -- it will be an helper
to provide human readible representations of all gallium state for
the python state tracker.
2010-02-14 15:20:34 +00:00
Michal Krol
5ee856e195 tgsi: Remove tgsi_dump_c.[ch].
Little utility after development stabilisation, use tgsi_dump instead.
2010-02-09 15:29:34 +01:00
Brian Paul
38076c9950 gallivm: added lp_bld_misc.cpp to sources list 2010-02-08 17:51:48 -07:00
Zack Rusin
c61bf36393 llvmpipe: export the tgsi translation code to a common layer
the llvmpipe tgsi translation is a lot more complete than what was in
gallivm so replacing the latter with the former. this is needed since
the draw llvm paths will use the same code. effectively the proven
llvmpipe code becomes gallivm.
2010-02-08 18:22:11 -05:00
José Fonseca
c75d64490e auxiliary: util_stream -> os_stream 2010-02-04 18:44:51 +00:00
José Fonseca
5ee324ad3c util: Reimplement u_time on top of os_time. 2010-02-04 18:24:36 +00:00
José Fonseca
2ef6d311b7 os: Time abstractions.
Simplified version of u_time.[ch]
2010-02-04 18:23:49 +00:00
José Fonseca
0b0e705712 os: New OS abstraction module. 2010-02-03 12:11:58 +00:00
Alan Hourihane
d88b219cf3 Remove obsolete file 2010-01-22 19:33:04 +00:00
Keith Whitwell
164fd16cfb util: add generic ringbuffer utitilty 2010-01-16 21:15:55 +00:00
José Fonseca
f8f4757d46 scons: Aggregate all tiny libraries in a single library.
Makes integration of gallium into out of tree components much easier. No
pratical change for components in this tree,
2010-01-01 12:16:19 +00:00