Commit graph

26624 commits

Author SHA1 Message Date
Brian Paul
eb732b1bbb mesa: additional comments in format code 2009-10-24 08:41:08 -06:00
Brian Paul
1160acbfea dri/drivers: update driNewRenderbuffer() to take a gl_format
Now pass a specific MESA_FORMAT_x token to indicate the renderbuffer's
format.  This is better than passing a GLenum and having to guess the
specific format.

I'm unable to test all the drivers, but any issues should be easy to fix.
2009-10-22 19:57:32 -06:00
Brian Paul
cf0e25d4c8 radeon: simplify radeon_create_renderbuffer() 2009-10-22 19:57:06 -06:00
Alex Deucher
dd36006a4e r600: fix depth span macros for format changes 2009-10-22 14:48:45 -04:00
Brian Paul
eb1b8ed148 radeon: fix some renderbuffer format bugs 2009-10-22 12:26:17 -06:00
Brian Paul
82ffc5884c progs/tests: draw Z values as luminance, no pixel zoom 2009-10-21 21:51:19 -06:00
Brian Paul
3c68560866 i915: replace MESA_FORMAT_Z24_S8 with MESA_FORMAT_S8_Z24
And change parameter type.
2009-10-21 21:48:03 -06:00
Brian Paul
6e1ddd34c6 radeon: get rid of z24s8 <-> s8z24 conversions in span code
Can just use s8z24 everywhere.
Note: the WRITE_DEPTH macro for R600 may need to be fixed.
2009-10-21 21:20:05 -06:00
Brian Paul
c18b022d0d radeon: replace MESA_FORMAT_Z24_S8 with MESA_FORMAT_S8_Z24
Core Mesa deals with MESA_FORMAT_S8_Z24 everywhere it should so
we shouldn't have to use MESA_FORMAT_Z24_S8 anymore.
2009-10-21 21:14:44 -06:00
Brian Paul
68d94a608a intel: use MESA_FORMAT_S8_Z24 format and avoid z24s8/s8z24 conversions 2009-10-21 20:02:33 -06:00
Brian Paul
4bd70b5cff i965: change parameter type to gl_format 2009-10-21 20:00:43 -06:00
Brian Paul
c55b355fd4 mesa: use MESA_FORMAT_X8_Z24 2009-10-21 19:58:00 -06:00
Brian Paul
832f29770d mesa: use MESA_FORMAT_X8_Z24 format 2009-10-21 19:56:18 -06:00
Brian Paul
e4c700dbbf mesa: added MESA_FORMAT_X8_Z24 format
24-bit Z in 32-bit pixel.  We could probably use the MESA_FORMAT_S8_Z24
format but this there's a few places where we explicitly don't want stencil.
This format may go away at some point in the future.
2009-10-21 19:55:44 -06:00
Brian Paul
fa3046431a dri/common: updated #includes 2009-10-15 14:57:45 -06:00
Brian Paul
a37c9ac8ee dri/common: use _mesa_little_endian() and update comments 2009-10-15 14:54:32 -06:00
Brian Paul
9bf2aa3329 dri/common: fix broken _dri_texformat_* initializations 2009-10-15 14:49:53 -06:00
Brian Paul
c47b03ebeb radeon: initialize renderbuffer Format field in radeon_create_renderbuffer()
Plus, use MESA_FORMAT_S8_Z24 everywhere.
2009-10-14 13:15:05 -06:00
Brian Paul
45e76d2665 mesa: remove a bunch of gl_renderbuffer fields
_ActualFormat is replaced by Format (MESA_FORMAT_x).
ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are
all replaced by MESA_FORMAT_x queries.
2009-10-08 20:27:27 -06:00
Brian Paul
74d61d03b5 mesa: added MESA_FORMAT_XRGB8888 2009-10-06 22:30:01 -06:00
Brian Paul
c5b7254892 mesa: added case for MESA_FORMAT_SIGNED_RGBA_16 2009-10-06 19:01:43 -06:00
Brian Paul
c13b9a141d mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffers 2009-10-06 19:00:09 -06:00
Brian Paul
f7b5e616e0 mesa: added _mesa_get_format_color_encoding() 2009-10-06 18:56:29 -06:00
Brian Paul
edfd2f7c4f mesa: accept more pnames in _mesa_get_format_bits() 2009-10-06 18:54:13 -06:00
Brian Paul
3e34a2a2b9 drivers: don't include texformat.h
And remove other unneeded #includes while we're at it.
2009-10-05 18:11:37 -06:00
Brian Paul
90cd968300 mesa: don't include texformat.h 2009-10-05 17:56:31 -06:00
Brian Paul
019bc97bd9 mesa: move _mesa_format_to_type_and_comps() to formats.c 2009-10-05 17:54:20 -06:00
Brian Paul
be0765cd6e mesa: move gl_format_info struct to formats.c
This is a private datatype.
2009-10-05 17:50:36 -06:00
Brian Paul
7e7f38a67d mesa: remove feature tests 2009-10-05 17:48:22 -06:00
Brian Paul
6ec3db6cab mesa: use FetchTexelf() instead of FetchTexelc() 2009-10-05 17:28:39 -06:00
Brian Paul
41bee4cff5 mesa: add parenthesis 2009-10-05 17:27:50 -06:00
Brian Paul
1a2bb37264 mesa: lift _mesa_set_fetch_functions() calls out of drivers
Call it from in the main Mesa glTexImage functions.
2009-10-05 17:12:40 -06:00
Brian Paul
bbbf55fa84 mesa: make _mesa_get_texel_fetch_func() static 2009-10-05 16:52:26 -06:00
Brian Paul
32aa40eee4 mesa: removed gl_texture_image::CompressedSize field
Just call ctx->Driver.CompressedTextureSize() when we need to get
the compressed image size.
2009-10-01 21:13:34 -06:00
Brian Paul
8c92a531fb mesa: reformatting 2009-10-01 19:01:02 -06:00
Brian Paul
bb659f6e53 progs/tests: additional debug code 2009-10-01 16:43:22 -06:00
Brian Paul
4ca9ba2544 mesa: move mesa_set_fetch_functions() 2009-10-01 16:42:37 -06:00
Brian Paul
073d55f584 radeon: fix tx_table[] entry
XXX need to still verify that the table entries are in correct order.
2009-10-01 16:41:52 -06:00
Brian Paul
4208a8c026 savage: s/Xfree/_mesa_free/ 2009-10-01 16:41:24 -06:00
Brian Paul
354d66e2f5 mesa: simplify _mesa_compressed_texture_size() 2009-10-01 16:30:47 -06:00
Brian Paul
b6bdafdf2c mesa: remove gl_texture_image::IsCompressed field
Use _mesa_is_format_compressed() instead.
2009-10-01 16:29:44 -06:00
Brian Paul
040fd7ed44 mesa: added _mesa_format_row_stride() 2009-10-01 16:27:23 -06:00
Brian Paul
1c7ec97ec4 mesa: added _mesa_format_image_size() 2009-10-01 15:59:13 -06:00
Brian Paul
8c36ca707c swrast: fix some texformat regressions
Need to be careful with component ordering for MESA_FORMAT_RGB888
and MESA_FORMAT_RGBA8888.
2009-09-30 22:50:08 -06:00
Brian Paul
3d6a20e5b6 mesa: rename texformat_tmp.h to texfetch_tmp.h 2009-09-30 21:08:06 -06:00
Brian Paul
60843e3ee5 mesa: remove MESA_FORMAT_RGBA4444
Not used by any hardware driver.  ARGB4444 and ARGB4444_REV remain.
2009-09-30 21:04:17 -06:00
Brian Paul
3fa7dbf368 mesa: remove GLchan-based formats; use hw 8-bit/channel formats instead
Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
2009-09-30 21:00:16 -06:00
Brian Paul
74ae14a2bd mesa: move texel fetch/store into new texfetch.[ch] files 2009-09-30 20:47:54 -06:00
Brian Paul
884d1abb2a st/mesa: update comment 2009-09-30 20:36:25 -06:00
Brian Paul
bdc761b0f9 mesa: remove gl_texture_format 2009-09-30 20:35:32 -06:00