Commit graph

31570 commits

Author SHA1 Message Date
José Fonseca
c78f84eebb util: Define SRGB's channels as normalized.
A better approximation than uscaled...
2010-02-26 16:46:34 +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
4757325951 util: Factor some code into u_format_parse.py 2010-02-26 16:46:34 +00:00
José Fonseca
fda9a19b34 util: Add util_bswap16. 2010-02-26 16:46:34 +00:00
José Fonseca
092010db37 util: Use python names consistent with u_format.h 2010-02-26 16:46:34 +00:00
Brian Paul
fe25476c04 mesa: fix _BaseFormat assignment in _mesa_soft_renderbuffer_storage()
The rb->InternalFormat field will be set by the caller if the allocation
succeeds.  Until then, this field's value can't be used.  Fixes a failed
assertion with FlightGear.
2010-02-26 09:03:34 -07:00
Brian Paul
e215830c38 mesa: update tarball file list, bump version string 2010-02-26 08:21:44 -07:00
Brian Paul
68205bf5b4 progs/xdemos: fix typo in glxinfo help 2010-02-26 08:17:37 -07:00
José Fonseca
8416d34279 llvmpipe: Fix lp_tile_r5g6b5_unorm_write_4ub.
Was using 32bit integer pointers instead of 16bits.
2010-02-26 10:12:53 +00:00
José Fonseca
eee21b3812 llvmpipe: Fix scons dependencies. 2010-02-26 10:12:53 +00:00
José Fonseca
e2b02ea9db util: Add is_pot() method to formats. 2010-02-26 10:12:53 +00:00
Michel Dänzer
0c20b30333 Fix up more stale references to gl(X)_API.xml which have moved.
AFAICT the getproc* stanzas in progs/{fp,trivial}/Makefile are completely
unused at this point, so just remove them.
2010-02-26 10:48:07 +01:00
Wil Reichert
2da7f1af38 fix test progs from gl_API move
Looks like these got missed.
2010-02-26 10:48:06 +01:00
José Fonseca
49f35a379d Revert "glapi: Remove unnecessary headers."
This reverts commit ead22e6a32.

This headers are not unnecessary on windows.
2010-02-26 09:09:35 +00:00
Vinson Lee
e5c691f445 r300/compiler: Assert that array index is not negative. 2010-02-26 00:17:03 -08:00
Vinson Lee
ead22e6a32 glapi: Remove unnecessary headers. 2010-02-25 23:58:45 -08:00
Vinson Lee
c76d4db252 i965: Remove unnecessary headers. 2010-02-25 23:51:05 -08:00
Brian Paul
bdbb5f8170 swrast: add 0.5 bias in tex_array_slice() per the spec 2010-02-25 20:21:39 -07:00
Brian Paul
70d5c48341 docs: GL_EXT_texture_array updates 2010-02-25 20:11:55 -07:00
Brian Paul
4db9f83612 mesa: enable GL_EXT_texture_array for sw drivers 2010-02-25 20:11:55 -07:00
Brian Paul
1f2b495b55 glsl: implement support for GL_EXT_texture_array
GL_EXT_texture_array is different from the existing GL_MESA_texture_array
support in that the former is only supported for GLSL, not fixed-function.

The shadow compare versions of the sampler functions haven't been tested
yet.  The non-shadow versions have been tested with a new piglit test.
2010-02-25 20:11:55 -07:00
Brian Paul
1edd444c2e mesa: added new extension flag for GL_EXT_texture_array 2010-02-25 20:11:54 -07:00
Brian Paul
58ab56d323 swrast: the only wrap mode for selecting texture array slices is clamp 2010-02-25 20:11:54 -07:00
Brian Paul
ac498f2dce mesa: added texture array targets in sizeof_glsl_type() 2010-02-25 20:11:54 -07:00
Brian Paul
2c1619869a mesa: added cases for texture array targets 2010-02-25 20:11:54 -07:00
Brian Paul
a8dafe713f mesa: remove redundant call to _mesa_base_fbo_format() 2010-02-25 20:11:54 -07:00
Brian Paul
a858bc393e mesa: added renderbuffer->_BaseFormat assertion 2010-02-25 20:11:54 -07:00
Eric Anholt
839e6bd8b9 i965: Try to hook up the Sandybridge URB_WRITE SEND message.
My units still hang when doing this if the VS is enabled.
2010-02-25 18:36:44 -08:00
Eric Anholt
c8e5100a39 i965: Fix up the VUE handling for SNB, and hopefully clarify comments. 2010-02-25 18:36:44 -08:00
Eric Anholt
54ea39f768 i965: Don't set a nonexistent enable bit in several SNB state pointers.
The modify bit is now usually in the instruction header.  The
exception is CC state pointers.
2010-02-25 18:36:44 -08:00
Eric Anholt
1d7aec053b i965: Lump SNB in with Ironlake for bigger VUEs.
This gets the VS to the point of accepting vertices.  \o/
2010-02-25 18:36:44 -08:00
Eric Anholt
d790564f94 i965: Fix the SNB VE valid bit.
So, when the docs say that 0 means enabled now?  That's a lie.
2010-02-25 18:36:44 -08:00
Eric Anholt
fc26f894ba intel: Fix up INTEL_NO_HW support.
This was accidentally (it seems) deleted in
5203b7227c
2010-02-25 18:36:44 -08:00
Eric Anholt
89cce536cb i965: Don't include SNB in has_negative_rhw_bug. 2010-02-25 18:36:44 -08:00
Eric Anholt
dedfc0e6e6 i965: Fix the SNB clip near VP API bit. 2010-02-25 18:36:44 -08:00
Eric Anholt
17ddb7c7e8 i965: Fix the SNB URB entry count setup. 2010-02-25 18:36:44 -08:00
George Sapountzis
9a4a219d20 drop header files and demos for dropped window systems 2010-02-26 04:02:41 +02:00
George Sapountzis
25da8e66f8 remove hack for miniglx from dri/utils.c 2010-02-26 04:02:41 +02:00
George Sapountzis
ddecefbb82 drop linux-solo configs 2010-02-26 04:02:41 +02:00
George Sapountzis
900b163a86 minor cleanup of dri/Makefile.template's after miniglx drop
also makes the WINDOW_SYSTEM configure var useless ...
2010-02-26 04:02:41 +02:00
George Sapountzis
593eb8a642 drop stray src/mesa/main/sources 2010-02-26 04:02:40 +02:00
Brian Paul
c9e8ff1976 mesa: use simplified _BaseFormat value in render-to-texture code
Fixes fd.o bug 26762.
2010-02-25 19:00:54 -07:00
Brian Paul
31ff9b0a13 util: remove a trailing semicolon in format table code 2010-02-25 18:59:00 -07:00
Török Edvin
ab6825b3e3 progs/glsl: add ARCH_FLAGS to LDLIBS
Allows building 32-bit demos on 64-bit Debian host.

Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-25 18:58:55 -07:00
Vinson Lee
3e882e943c util: Remove import of unused sys module. 2010-02-25 17:55:36 -08:00
Kristian Høgsberg
44f78eb18e Remove unused mini and mesa glu subdirectories 2010-02-25 17:40:11 -05:00
Kristian Høgsberg
b15fe60ba5 Drop unused glut subdirectories 2010-02-25 17:40:11 -05:00
Kristian Høgsberg
74377c8d1b Remove windml progs 2010-02-25 17:40:11 -05:00
Kristian Høgsberg
a9e3669683 Remove remaining miniglx references 2010-02-25 17:40:11 -05:00
Kristian Høgsberg
79aeafd3ca Drop fb, ffb and gamma dri drivers 2010-02-25 17:40:11 -05:00