Commit graph

27579 commits

Author SHA1 Message Date
Markus Fleschutz
83f1183e76 glx: fix incorrect array stack memory allocation
The array stack space wasn't allocated to the proper size.  Fixes out of
bounds memory writes when the client/array stack depth exceeds one.

See fd.o bug 26768.
2010-02-26 10:34:21 -07:00
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
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
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
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
25da8e66f8 remove hack for miniglx from dri/utils.c 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
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
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
Kristian Høgsberg
40c6bb58be Drop classic mesa svga driver 2010-02-25 17:40:10 -05:00
Kristian Høgsberg
e14a5b14b2 Drop glide driver 2010-02-25 17:40:10 -05:00
Kristian Høgsberg
230d263aca Remove GGI support 2010-02-25 17:40:10 -05:00
Kristian Høgsberg
b5c3199afe Remove dos driver 2010-02-25 17:40:10 -05:00
Kristian Høgsberg
97972244d5 Remove d3d driver 2010-02-25 17:40:10 -05:00
Kristian Høgsberg
4387580e50 Remove directfb support 2010-02-25 17:40:09 -05:00
Kristian Høgsberg
dadd5094bf Remove allegro driver 2010-02-25 17:40:09 -05:00
Vinson Lee
0bca812dc4 Revert "glu/sgi: Set freed pointer to NULL."
This commit breaks flightgear fgfs. A null pointer is
dereferenced in the function MakeVertex.

This reverts commit 9be414f4b9.
2010-02-25 14:26:25 -08:00