History log of /external/mesa3d/src/mesa/main/texparam.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cf81335712d489a1f4778596c5a6610fc8547692 18-Sep-2012 Ian Romanick <ian.d.romanick@intel.com> mesa: Allow glGetTexParameter of GL_TEXTURE_SRGB_DECODE_EXT

This was already (correctly) supported for glGetSamplerParameter paths.

NOTE: This is a candidate for stable branches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit ae3023e9675a033ff66b9bb14598aa1f02530d7f)
/external/mesa3d/src/mesa/main/texparam.c
c9689e3e55928d4a95f1c10c7a33fffba8cbdece 27-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> mesa/es: Validate glGetTexParameter pnames in Mesa code rather than the ES wrapper

This also adds a missing extension (and API) check around
GL_TEXTURE_CROP_RECT_OES.

v2: Add proper core-profile and GLES3 filtering. GL_TEXTURE_MAX_LEVEL
is (incorrectly) accepted in ES contexts. A future patch will add
GL_APPLE_texture_max_level, and meta really needs this.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
b3dd524a1082efd12d4a796122c300a61ba016d9 27-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> mesa/es: Validate glTexParameter pnames in Mesa code rather than the ES wrapper

This also adds a missing extension (and API) check around
GL_TEXTURE_CROP_RECT_OES.

v2: Add proper core-profile, GLES1, and GLES3 filtering. GL_TEXTURE_MAX_LEVEL
is (incorrectly) accepted in ES contexts. A future patch will add
GL_APPLE_texture_max_level, and meta really needs this.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
a0595cb4506251509e032a2592d6bb684480de4b 26-Jul-2012 Ian Romanick <ian.d.romanick@intel.com> mesa/es: Validate glTexParameter targets in Mesa code rather than the ES wrapper

Ditto for glGetTexParameter targets.

v2: Add proper core-profile and GLES3 filtering.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
842efb9447bd4c8c29599f1baeee8a380d5276c2 03-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> mesa/es: Validate GL_TEXTURE_WRAP param in Mesa code rather than the ES wrapper

v2: Add proper core-profile filtering.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
d53101a9f31e1cba553c80dbafd23c748dd58a1d 03-Oct-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Refactor validate_texture_wrap_mode to use a switch-statement

This makes the next couple changes a little easier.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
1a9e4d5113cf1fd608668506312167a676fcdb4f 17-Aug-2012 Brian Paul <brianp@vmware.com> mesa: remove unused params, add const qualifiers

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/texparam.c
a6af24ee14a3e3cef99e96db539aa2abc911e6e0 17-Aug-2012 Brian Paul <brianp@vmware.com> mesa: querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE for a buffer obj is illegal

GL_INVALID_OPERATION is to be raised when querying a non-compressed
image/buffer. Since a buffer object can't have a compressed format this
query always generates an error.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/texparam.c
3df13b32e56dbc76bdc72b75ea1462f79b44dce9 11-Jun-2012 Kenneth Graunke <kenneth@whitecape.org> mesa: Support GL_TEXTURE_BUFFER in GetTexLevelParameter[if]v in GL 3.1+.

The OpenGL 3.1 specification explicitly allows this. Oddly, the
ARB_texture_buffer_object spec's issues section claims this isn't
allowed, but proceeds to explain that the extension simply doesn't edit
the underlying spec to allow it, and thus it didn't appear in the list
of legal texture targets.

Thus, this patch legalizes it only in 3.1+ contexts, but still returns
INVALID_ENUM in earlier contexts that expose ARB_texture_buffer_object.

Unfortunately, the behavior of the call is horrendously undefined.

Fixes oglconform's tbo/negative.textureParams test.

v2: Require desktop OpenGL.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
8c37fc1e9240a323b07c21da83dbd5432fc6895a 11-Jun-2012 Kenneth Graunke <kenneth@whitecape.org> mesa: Split out part of glGetTexLevelParameter into a helper function.

Move the _mesa_GetTexLevelParameter[iv] functions below the helper
function so the prototype is available.

This will be useful in the next commit.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
9e4fde85e46f406b37ad372487fbff4ed51c65e4 11-Jun-2012 Kenneth Graunke <kenneth@whitecape.org> mesa: Add explicit target checking to GetTexLevelParameter[if]v().

Previously, it relied on _mesa_max_texture_levels() for texture target
error checking. This was somewhat dodgy, as _mesa_max_texture_levels()
is called in seven diferent places, not all of which necessarily accept
the same list of targets.

I copied the list of legal targets from _mesa_max_texture_levels(), so
this patch should not introduce any change in behavior. Future patches
will cause the two to diverge.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
707f0679157f83ac45127e41647b96ed924d45c9 11-Aug-2012 Ian Romanick <ian.d.romanick@intel.com> mesa: Kill GL_ARB_shadow_ambient with fire

No driver supports this extension, and it seems unlikely than any driver
ever will. I think r300c may have supported it at one time, but that
driver has already been removed.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
/external/mesa3d/src/mesa/main/texparam.c
9c1b41879aab2ff7386c547a2ccce7686c018cf5 26-Jul-2012 Eric Anholt <eric@anholt.net> mesa: Replace VersionMajor/VersionMinor with a Version field.

As we get into supporting GL 3.x core, we come across more and more features
of the API that depend on the version number as opposed to just the extension
list. This will let us more sanely do version checks than "(VersionMajor == 3
&& VersionMinor >= 2) || VersionMajor >= 4".

v2: Fix a bad <= 30 check.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/texparam.c
c37efbfe4c415b6fd2d4f968220d7c9b62f11ecf 12-Jun-2012 Pauli Nieminen <pauli.nieminen@linux.intel.com> mesa: Move DepthMode to texture object

GL_DEPTH_TEXTURE_MODE isn't meant to be part of sampler state based on
compatibility profile specifications.

OpenGL specification 4.1 compatibility 20100725 3.9.2:
"... The values accepted in the pname parameter
are TEXTURE_WRAP_S, TEXTURE_WRAP_T, TEXTURE_WRAP_R, TEXTURE_MIN_-
FILTER, TEXTURE_MAG_FILTER, TEXTURE_BORDER_COLOR, TEXTURE_MIN_-
LOD, TEXTURE_MAX_LOD, TEXTURE_LOD_BIAS, TEXTURE_COMPARE_MODE, and
TEXTURE_COMPARE_FUNC. Texture state listed in table 6.25 but not listed here and
in the sampler state in table 6.26 is not part of the sampler state, and remains in the
texture object."

The list of states is in Table 6.24 "Textures (state per texture
object)" instead of 6.25 mentioned in the specification text.

Same can be found from 3.3 compatibility specification.

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/texparam.c
a1287f549a3e6527b8cf3bf5b5f563ba63c6f48c 22-Jul-2012 Brian Paul <brianp@vmware.com> mesa: move more format helper functions to glformats.c
/external/mesa3d/src/mesa/main/texparam.c
f4a93e0665881dd58a95abb6525676bd1cc2e6af 17-Mar-2012 Brian Paul <brianp@vmware.com> mesa: rework texture completeness testing

Instead of gl_texture_object::_Complete there are now two fields:
_BaseComplete and _MipmapComplete. The former indicates whether the base
texture level is valid. The later indicates whether the whole mipmap is
valid.

With sampler objects, a single texture can appear to be both complete and
incomplete at the same time. See the GL_ARB_sampler_objects spec for more
details. To implement this we now check if the texture is complete with
respect to a sampler state.

Another benefit of this is we no longer need to invalidate a texture's
completeness state when we change the minification/magnification filters
with glTexParameter().

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/texparam.c
ff005bdb7cdeb84477b26796ac216459e49daa55 17-Mar-2012 Brian Paul <brianp@vmware.com> mesa: use _mesa_dirty_texobj() in glTexParameter code

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/texparam.c
449cae141e79fe233f9ce20b9f2b19132148774b 12-Feb-2012 Dave Airlie <airlied@redhat.com> mesa/texparam: drop double semicolons

no idea where these came from, drop them.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/texparam.c
2f88139145da99a695680c813ef5cc669eaef034 03-Dec-2011 Brian Paul <brianp@vmware.com> mesa: remove the ctx->Driver.IsTextureResident() hook

No driver implemented this and we always returned "True" for residence
queries.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
37bf720da4a165c3fbf22d8ebb87c5c42e02f98e 23-Nov-2011 Brian Paul <brianp@vmware.com> mesa: move _mesa_base_format_has_channel() into image.c

This is where other format-related functions live.

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/texparam.c
d45c9b239fdc2a2e06e14fc94c118f27d4011024 23-Nov-2011 Brian Paul <brianp@vmware.com> mesa: combine GL_TEXTURE_INTENSITY/LUMINANCE_SIZE queries

Use the _mesa_base_format_has_channel() helper as we do for the
other texture format component queries.

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/texparam.c
f0b6e9a729d14740fc607c1148032d688f3c5c2c 23-Nov-2011 Brian Paul <brianp@vmware.com> mesa: use _mesa_base_format_has_channel() in fbobject.c queries

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/texparam.c
250a9c8e7eabd38e38f39898b117f26533609d07 04-Nov-2011 Eric Anholt <eric@anholt.net> mesa: Don't report types for 0-sized components of textures.

The GL_TEXTURE_WHATEVER_SIZE entrypoints were checking if the
specified base type of the texture allowed that channel to be present
before reporting the size of the channel, so that GL_RGB didn't end up
with an alpha size if the hardware driver had to store it that way.

The GL_TEXTURE_WHATEVER_TYPE entrypoints weren't checking it, so you
would end up with strange responses from the GL involving 0-bit
floating-point alpha components in GL_RGB32F, even though it says
GL_NONE as expected for other 0-sized channels.

Make _TYPE check _BaseFormat the same as _SIZE, which results in
fixing most of the GL_RGB* testcases of gl-3.0-required-sized-formats
pass on i965.

v2: Add a default case with a warning (suggestion by Brian Paul)

Reviewed-by: Brian Paul <brianp@vmware.com> (v1)
/external/mesa3d/src/mesa/main/texparam.c
0c87f16817ff0bf1f05e0d634944fd47b097faee 23-Oct-2011 Chia-I Wu <olv@lunarg.com> mesa: add support for GL_OES_EGL_image_external

This is an OpenGL ES specific extension. External textures are textures that
may be sampled from, but not be updated (no glTexSubImage* and etc.). The
image data are taken from an EGLImage.

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/src/mesa/main/texparam.c
79463f18ac91b2b0f1ed6dcdb26f84b942543d80 22-Oct-2011 Chia-I Wu <olv@lunarg.com> mesa: clean up validate_texture_wrap_mode

GL_TEXTURE_RECTANGLE_NV (and soon GL_TEXTURE_EXTERNAL_OES) is special. Handle
it in its own if-block. There should be no functional change.

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
/external/mesa3d/src/mesa/main/texparam.c
77cd3bf18d509dcbb2f121e4082027f4048ca623 21-Oct-2011 Yuanhan Liu <yuanhan.liu@linux.intel.com> mesa: complete the GL_TEXTURE_SWIZZLE* setup

The ARB_texture_swizzle spec says:
The error INVALID_OPERATION is generated if TexParameteri,
TexParameterf, TexParameteriv, or TexParameterfv, parameter <pname>
is TEXTURE_SWIZZLE_R, TEXTURE_SWIZZLE_G, TEXTURE_SWIZZLE_B,
or TEXTURE_SWIZZLE_A, and <param> is not RED, GREEN, BLUE, ALPHA,
ZERO, or ONE.

The error INVALID_OPERATION is generated if TexParameteriv, or
TexParameterfv, parameter <pname> TEXTURE_SWIZZLE_RGBA, and the four
consecutive values pointed to by <param> are not all RED, GREEN, BLUE,
ALPHA, ZERO, or ONE.

So, the GL_TEXTURE_SWIZZLE* pname is legal for glTexParameterf(v)

NOTE: this is a candidate for the 7.11 branch

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/texparam.c
d9f05ac828986a2fcdca9fcae29d76f79847d8d3 21-Oct-2011 Yuanhan Liu <yuanhan.liu@linux.intel.com> mesa: remove the redundant check

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/texparam.c
fbc419314e9d1f06d624d8e3997394db7f829f63 31-Oct-2011 Brian Paul <brianp@vmware.com> mesa: glGetTexParameter support for GL_ARB_texture_storage
/external/mesa3d/src/mesa/main/texparam.c
9520f483b8f1e45fa474674b415554988de5d8d3 01-Oct-2011 Brian Paul <brianp@vmware.com> mesa: s/INLINE/inline/

INLINE is still seen in some files (some generated files, etc) but this
is a good start.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/texparam.c
ed48df84246caa40398ccd6a822cbd9b650f8282 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove ARB_texture_mirrored_repeat extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x.

This extension was previously not supported on mach64, mga, and savage
(Savage3D and other pre-Savage4).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/texparam.c
f9a2352c9569ef562e9507bfe09358f236aaf4b7 31-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove EXT_texture_lod_bias extension enable flag

All drivers remaining in Mesa support this extension. This extension
is either required or optional features in desktop OpenGL, OpenGL ES
1.x, and OpenGL ES 2.x.

This extension was previously not supported on mach64, mga, or r128.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/texparam.c
baeefef2c0445bfd717a3086fdd9b5bd5d9cb675 17-Sep-2011 Brian Paul <brianp@vmware.com> mesa: move software texel fetch code into swrast

It's only used by swrast now so move it out of core Mesa.
/external/mesa3d/src/mesa/main/texparam.c
ce82914f5ad4bb9148370826099925590e9798fd 17-Sep-2011 Brian Paul <brianp@vmware.com> mesa: move _mesa_update_fetch_functions() calls into swrast

Do it during swrast state validation since the FetchTexel() functions
are only called from swrast now and not core Mesa.
Remove assertions in mipmap.c since they're no longer appropriate.
/external/mesa3d/src/mesa/main/texparam.c
eba527bf9ffc2fd67c44fb77104107556f509b49 29-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove API facing bits of EXT_paletted_texture and EXT_shared_texture_palette

This was also discussed at XDS 2010. However, actually making the
change was delayed because several drivers still exposed these
extensions to significant benefit (e.g., tdfx). Now that those
drivers have been removed, this code can be removed as well.

v2: A lot of bits that were missed in the previous patch have been removed.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/texparam.c
1e89a526c6cd21852b440904711c5ee733ce1ad2 04-Aug-2011 Brian Paul <brianp@vmware.com> mesa: whitespace, formatting fixes in GetTexParameter() code
/external/mesa3d/src/mesa/main/texparam.c
02d81dfcaf073b5f7073d405e931b3d3e9f577ef 04-Aug-2011 Brian Paul <brianp@vmware.com> mesa: add null ptr checks in GetTexParameterI[u]iv() functions
/external/mesa3d/src/mesa/main/texparam.c
1254a2b2e45c6961a57d9c60f561907183ef7de7 04-Aug-2011 Brian Paul <brianp@vmware.com> mesa: condense GL_TEXTURE_RESIDENT query code
/external/mesa3d/src/mesa/main/texparam.c
88a4f2fe543d7c394c0ad732ae60f8cf94c0d357 04-Aug-2011 Brian Paul <brianp@vmware.com> mesa: make error handling in glGetTexParameter() a bit more concise
/external/mesa3d/src/mesa/main/texparam.c
dc1f32deae1ab7366792fe5c7d654e02757985c0 30-Jul-2011 Brian Paul <brianp@vmware.com> mesa: add missing breaks for GL_TEXTURE_CUBE_MAP_SEAMLESS queries

And fix indentation.

NOTE: This is a candidate for the 7.11 branch.
/external/mesa3d/src/mesa/main/texparam.c
26684e0b1a857cc16a2c6f2b542e5ccf3da5acf5 28-Jul-2011 Brian Paul <brianp@vmware.com> mesa: test against MESA_FORMAT_NONE in _mesa_GetTexLevelParameteriv()
/external/mesa3d/src/mesa/main/texparam.c
143b65f7612c255f29d08392192098b1c2bf4b62 23-Jul-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Return the correct internal fmt when a generic compressed fmt was used

If an application requests a generic compressed format for a texture
and the driver does not pick a specific compressed format, return the
generic base format (e.g., GL_RGBA) for the GL_TEXTURE_INTERNAL_FORMAT
query.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3165
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/texparam.c
a19c42ffc606b594558a0c4f981662442ad6bb83 03-May-2011 Marek Olšák <maraeo@gmail.com> mesa: implement AMD_seamless_cubemap_per_texture
/external/mesa3d/src/mesa/main/texparam.c
9d7698c468f4ea7da8bb4ec00520c98f11cca0fa 26-Apr-2011 Marek Olšák <maraeo@gmail.com> mesa: implement EXT_texture_shared_exponent

swrast support done.

There is no renderbuffer support in swrast, because it's not required
by the extension.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/texparam.c
ecfaab88b2577bd0395bc05d75a036126806a9c4 10-Apr-2011 Brian Paul <brianp@vmware.com> mesa: move sampler state into new gl_sampler_object type

gl_texture_object contains an instance of this type for the regular
texture object sampling state. glGenSamplers() generates new instances
of gl_sampler_object which can override that state with glBindSampler().
/external/mesa3d/src/mesa/main/texparam.c
e28fe8fe5d05c87a065f8e72adef8b5077da2c73 26-Mar-2011 Marek Olšák <maraeo@gmail.com> mesa: clamp texture border color if ARB_texture_float is unsupported

ARB_texture_float disables clamping of the texture border color,
ARB_color_buffer_float only modifies clamping of the glGet query.
/external/mesa3d/src/mesa/main/texparam.c
e5c6a92a12b5cd7db205d72039f58d302b0be9d5 15-Feb-2011 Marek Olšák <maraeo@gmail.com> mesa: implement clamping controls (ARB_color_buffer_float)

Squashed commit of the following:

Author: Marek Olšák <maraeo@gmail.com>

mesa: fix getteximage so that it doesn't clamp values
mesa: update the compute_version function
mesa: add display list support for ARB_color_buffer_float
mesa: fix glGet query with GL_ALPHA_TEST_REF and ARB_color_buffer_float

commit b2f6ddf907935b2594d2831ddab38cf57a1729ce
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Tue Aug 31 16:50:57 2010 +0200

mesa: document known possible deviations from ARB_color_buffer_float

commit 5458935be800c1b19d1c9d1569dc4fa30a97e8b8
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Tue Aug 24 21:54:56 2010 +0200

mesa: expose GL_ARB_color_buffer_float

commit aef5c3c6be6edd076e955e37c80905bc447f8a82
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 18:12:34 2010 +0200

mesa, mesa/st: handle read color clamping properly

(I'll squash the st/mesa part to a separate commit. -Marek)

We set IMAGE_CLAMP_BIT in the caller based on _ClampReadColor, where
the operation mandates it.

TODO: did I get the set of operations mandating it right?

commit 3a9cb5e59b676b6148c50907ce6eef5441677e36
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 18:09:41 2010 +0200

mesa: respect color clamping in texenv programs (v2)

Changes in v2:
- Fix attributes other than vertex color sometimes getting clamped

commit de26f9e47e886e176aab6e5a2c3d4481efb64362
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 18:05:53 2010 +0200

mesa: restore color clamps on glPopAttrib

commit a55ac3c300c189616627c05d924c40a8b55bfafa
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 18:04:26 2010 +0200

mesa: clamp color queries if and only if fragment clamping is enabled

commit 9940a3e31c2fb76cc3d28b15ea78dde369825107
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Wed Aug 25 00:00:16 2010 +0200

mesa: introduce derived _ClampXxxColor state resolving FIXED_ONLY

To do this, we make ClampColor call FLUSH_VERTICES with the appropriate
_NEW flag.

We introduce _NEW_FRAG_CLAMP since fragment clamping has wide-ranging
effects, despite being in the Color attrib group.

This may be easily changed by s/_NEW_FRAG_CLAMP/_NEW_COLOR/g

commit 6244c446e3beed5473b4e811d10787e4019f59d6
Author: Luca Barbieri <luca@luca-barbieri.com>
Date: Thu Aug 26 17:58:24 2010 +0200

mesa: add unclamped color parameters
/external/mesa3d/src/mesa/main/texparam.c
0bfd174fb510320c7a7ee3784ac50849322f9c5d 26-Jan-2011 Brian Paul <brianp@vmware.com> mesa: remove isProxy local var
/external/mesa3d/src/mesa/main/texparam.c
365f658602c0984d83e2b9617967803c70f7043a 26-Jan-2011 Brian Paul <brianp@vmware.com> mesa: use texFormat local var in more places
/external/mesa3d/src/mesa/main/texparam.c
f322400970745112ce53e4f804e3c977f326c412 26-Jan-2011 Brian Paul <brianp@vmware.com> mesa: consolidate error handling code in _mesa_GetTexLevelParameteriv()
/external/mesa3d/src/mesa/main/texparam.c
0f6b8e29ab38ae25a64aa558df92297c0f5fc881 26-Jan-2011 Brian Paul <brianp@vmware.com> mesa: consolidate error handling in set_tex_parameteri()
/external/mesa3d/src/mesa/main/texparam.c
f2dd11817a66b6254e1533398dc53f1bc51953be 26-Jan-2011 Brian Paul <brianp@vmware.com> mesa: add checks for GL_EXT_texture_array

In case the driver enables GL_MESA_texture_array but not the EXT version.
/external/mesa3d/src/mesa/main/texparam.c
f4dc24a0b5290b0bbfb254b3bc76d801371dd790 23-Jan-2011 Brian Paul <brianp@vmware.com> mesa: smarter glTexParameter state invalidation

Only a few texture object parameters can effect texture completeness:
min level, max level, minification filter. Don't mark the texture
incomplete for other texture object state changes.
/external/mesa3d/src/mesa/main/texparam.c
edc2dd8e4788e556d445c9f59974ed95b33c2bbc 12-Jan-2011 Dave Airlie <airlied@gmail.com> mesa/swrast: implement EXT_texture_sRGB_decode

This implements the extension by choosing a different set of texture
fetch functions when the texture parameter changes.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/texparam.c
db61b9ce39bccc43140357652ceb78baaf2aea44 07-Jan-2011 Vinson Lee <vlee@vmware.com> mesa: Directly include mfeatures.h in files that perform feature tests.
/external/mesa3d/src/mesa/main/texparam.c
0117da40cd7edd3d165bb28569c289b37eca12b9 06-Jan-2011 Vinson Lee <vlee@vmware.com> mesa: Include mtypes.h in files that use gl_context struct.

Directly include mtypes.h if a file uses a gl_context struct. This
allows future removal of headers that are not strictly necessary but
indirectly include mtypes.h for a file.
/external/mesa3d/src/mesa/main/texparam.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/main/texparam.c
cd5dea640144b45ba2e88c2451f1f01ee08c1c4a 28-Sep-2010 Ian Romanick <ian.d.romanick@intel.com> ARB_texture_rg: Add GL_RED as a valid GL_DEPTH_TEXTURE_MODE
/external/mesa3d/src/mesa/main/texparam.c
cc6f13def53eb280b63427fbdeca197a09315062 28-Sep-2010 Ian Romanick <ian.d.romanick@intel.com> ARB_texture_rg: Add GL_TEXTURE_{RED,GREEN}_SIZE query support
/external/mesa3d/src/mesa/main/texparam.c
7f11d471e6bafae2282ec82ba4a19d30c440d28f 27-Sep-2010 Ian Romanick <ian.d.romanick@intel.com> mesa: Force GL_SGIS_generate_mipmap to always be enabled

As per discussions at XDS.
/external/mesa3d/src/mesa/main/texparam.c
ec2b92f98c2e7f161521b447cc1d9a36bce3707c 11-Jun-2010 Brian Paul <brianp@vmware.com> mesa: rename src/mesa/shader/ to src/mesa/program/
/external/mesa3d/src/mesa/main/texparam.c
066477ab226c6bf9598511ebe9134cb360fb54a2 30-Mar-2010 Chia-I Wu <olv@lunarg.com> mesa: Add missing features.

Add features tested in the code but missing from mfeatures.h.

This also fixes some tests of features. They should be tested with
"#if", not "#ifdef".
/external/mesa3d/src/mesa/main/texparam.c
61753c4bf7f6948aad208eddc7a2bae24763e028 20-Mar-2010 Brian Paul <brianp@vmware.com> mesa: added GL3 query for GL_TEXTURE_SHARED_SIZE
/external/mesa3d/src/mesa/main/texparam.c
b2a30497cc8b107ea74c3d8fbb646e59a4d55a05 03-Feb-2010 Brian Paul <brianp@vmware.com> mesa: increase number of texture units to MAX_COMBINED_TEXTURE_IMAGE_UNITS

We were misinterpretting GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS previously.

It's the number of texture units for which we need to keep state; not
just the total number of texture units addressable by the vertex shader
plus fragment shader.

Since sw Mesa independently supports 16 texture units in vertex shaders
and 16 texture units in fragment shaders, the max combined units is 32.

Note that the docs for glActiveTexture() indicate the max legal unit is
MAX(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, MAX_TEXTURE_COORDS) - 1.

A new piglit test (texunits.c) tests the various texture unit limits.

I'm pretty sure I've got this all right now, but additional reviews
are welcome...
/external/mesa3d/src/mesa/main/texparam.c
cd8614b0287dc5a69725ec4ee0208fad61f7789e 22-Jan-2010 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/pipebuffer/Makefile
src/gallium/auxiliary/pipebuffer/SConscript
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/drivers/i915/i915_surface.c
src/gallium/drivers/i915/i915_texture.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/softpipe/sp_prim_vbuf.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/winsys/drm/intel/gem/intel_drm_api.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/radeon/core/radeon_drm.c
src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
src/mesa/state_tracker/st_cb_clear.c
59eed7a2015cf301ea20392febc0de6b8d1ee0b1 18-Jan-2010 Vinson Lee <vlee@vmware.com> mesa: Remove unnecessary header from texparam.c.
/external/mesa3d/src/mesa/main/texparam.c
7836a96657eeb1b1a924d582bbf9db5b1692fadc 05-Jan-2010 Brian Paul <brianp@vmware.com> mesa: added _mesa_[Get]TexParameterI[u]iv() functions

New in GL 3.0. Primarily meant for setting int/uint-valued texture
border color. Not plugged into dispatch table yet.
/external/mesa3d/src/mesa/main/texparam.c
f6c2d1f94ffa8f87b22ed1ff5c465d0e9aa1489e 05-Jan-2010 Brian Paul <brianp@vmware.com> mesa: make texture BorderColor a union of float/int/uint

When we have integer-valued texture formats, the texture border color
must also store integer and uint values.

With GL 3.0, the new glTexParameterIiv() and glTexParameterIuiv() functions
can set the border color to int or uint values.
/external/mesa3d/src/mesa/main/texparam.c
32b9983c0a593c0b50a44ddae829dee820cfd448 05-Jan-2010 Brian Paul <brianp@vmware.com> mesa: use get_texobj() in _mesa_GetTexParameter() funcs
/external/mesa3d/src/mesa/main/texparam.c
6d845808589b9df84f23551b122533a55dce6bd5 05-Jan-2010 Brian Paul <brianp@vmware.com> mesa: add missing _mesa_lock_texture() call
/external/mesa3d/src/mesa/main/texparam.c
b605f4ff11c894500f2d0273c5d4653ff413448d 11-Dec-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
dcb4a37fc89924192d923ed6906d2922371b8cb1 10-Dec-2009 Vinson Lee <vlee@vmware.com> mesa: Fix array out-of-bounds access by _mesa_TexParameteriv.
/external/mesa3d/src/mesa/main/texparam.c
3f7c2ac2798b385bed97b6931a1568a7e0223a0a 09-Dec-2009 Vinson Lee <vlee@vmware.com> mesa: Fix array out-of-bounds access by _mesa_TexParameteri.

_mesa_TexParameteri calls set_tex_parameteri, which uses the
params argument as an array.
/external/mesa3d/src/mesa/main/texparam.c
a1d46fbea0b40d7edc668ea5993ea4318f37c9f9 09-Dec-2009 Vinson Lee <vlee@vmware.com> mesa: Fix array out-of-bounds access by _mesa_TexParameteri.

_mesa_TexParameteri calls set_tex_parameterf, which uses the
params argument as an array.
/external/mesa3d/src/mesa/main/texparam.c
d88f3b946804f9a3e8cad4f8896e6be488fec2b5 08-Dec-2009 Vinson Lee <vlee@vmware.com> mesa: Fix array out-of-bounds access by _mesa_TexParameterfv.

_mesa_TexParameterfv calls set_tex_parameteri, which uses the
params argument as an array.
/external/mesa3d/src/mesa/main/texparam.c
ca8a2150c79899bad0f80e132656863822db045e 30-Nov-2009 Vinson Lee <vlee@vmware.com> mesa: Fix array out-of-bounds access by _mesa_TexParameterf.

_mesa_TexParameterf calls set_tex_parameterf, which uses the params
argument as an array.
(cherry picked from commit 270d36da146b899d39e08f830fe34b63833a3731)
/external/mesa3d/src/mesa/main/texparam.c
4071d065c2c32a872bb148d108252a2380c42da4 30-Nov-2009 Vinson Lee <vlee@vmware.com> mesa: Fix array out-of-bounds access by _mesa_TexParameterf.

_mesa_TexParameterf calls set_tex_parameteri, which uses the params
argument as an array.
(cherry picked from commit a201dfb6bf28b89d6f511c2ec9ae0d81ef18511d)
/external/mesa3d/src/mesa/main/texparam.c
270d36da146b899d39e08f830fe34b63833a3731 30-Nov-2009 Vinson Lee <vlee@vmware.com> mesa: Fix array out-of-bounds access by _mesa_TexParameterf.

_mesa_TexParameterf calls set_tex_parameterf, which uses the params
argument as an array.
/external/mesa3d/src/mesa/main/texparam.c
a201dfb6bf28b89d6f511c2ec9ae0d81ef18511d 30-Nov-2009 Vinson Lee <vlee@vmware.com> mesa: Fix array out-of-bounds access by _mesa_TexParameterf.

_mesa_TexParameterf calls set_tex_parameteri, which uses the params
argument as an array.
/external/mesa3d/src/mesa/main/texparam.c
644d8fd363ca7d8f40f4fa319919985cc002df9e 31-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added comment
/external/mesa3d/src/mesa/main/texparam.c
9927d7f31c5c46c7b061cf8e13324ac4a837c4b7 02-Oct-2009 Chia-I Wu <olvaffe@gmail.com> mesa: Fix compilation errors and warnings when features are disabled.

Some of the fixes are cherry-picked from opengl-es branch.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
/external/mesa3d/src/mesa/main/texparam.c
1f196b786d6bd0c6a5dbdc638574ff716cc3d4de 29-Oct-2009 Brian Paul <brianp@vmware.com> Merge branch 'texformat-rework'

Conflicts:
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/dri/s3v/s3v_tex.c
src/mesa/drivers/dri/s3v/s3v_xmesa.c
src/mesa/drivers/dri/trident/trident_context.c
src/mesa/main/debug.c
src/mesa/main/mipmap.c
src/mesa/main/texformat.c
src/mesa/main/texgetimage.c
d6ee86c77a8e1543557fd64c1f1c354baa0a8ad8 25-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove _mesa_compressed_texture_size()

Use _mesa_format_image_size() instead.
/external/mesa3d/src/mesa/main/texparam.c
cd62b4f00a11e9c548bd61652f88ab772d8421b8 23-Oct-2009 Brian Paul <brianp@vmware.com> mesa: fix GL_TEXTURE_INTERNAL_FORMAT query for compressed formats

Need to return the actual compressed format when the user originally
requested a generic compressed format.
/external/mesa3d/src/mesa/main/texparam.c
b6bdafdf2cf1110b4a5ca7cf9e1c3dcb124b800f 02-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove gl_texture_image::IsCompressed field

Use _mesa_is_format_compressed() instead.
/external/mesa3d/src/mesa/main/texparam.c
1f7c914ad0beea8a29c1a171c7cd1a12f2efe0fa 01-Oct-2009 Brian Paul <brianp@vmware.com> mesa: replace gl_texture_format with gl_format

Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum.
ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x.
gl_texture_format will go away next.
/external/mesa3d/src/mesa/main/texparam.c
5767a677a0129015dcc568b6f5d2d323fae8a63f 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa: fix GL_TEXTURE_LUMINANCE_SIZE query
/external/mesa3d/src/mesa/main/texparam.c
af0adb585223f6227f4c5c8564df8d7f6622d30f 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa: use more mesa format functions
/external/mesa3d/src/mesa/main/texparam.c
b64d478a5bd4af4128938782d787abe02a0896ee 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa: use _mesa_get_format_bits()
/external/mesa3d/src/mesa/main/texparam.c
5d526ed21ac9f1ec9220c2adb4c905893eb9d990 15-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
0fa1692f14f4a64b045bc3f26a5ab401d682b118 11-Sep-2009 Vinson Lee <vlee@vmware.com> mesa: raise GL_INVALID_ENUM not GL_INVALID_VALUE for glTexParamter errors

Signed-off-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/texparam.c
8a9795e5c6ca353aa831148cd1c262fe1013af48 13-Aug-2009 Brian Paul <brianp@vmware.com> mesa: rework error check in glGetTexLevelParameter(), remove tex_image_dimensions()
/external/mesa3d/src/mesa/main/texparam.c
6aa7a03d856f4cfdbed493c976387b2164a0c922 13-Aug-2009 Brian Paul <brianp@vmware.com> mesa: use _mesa_get_current_tex_unit() in more places
/external/mesa3d/src/mesa/main/texparam.c
f44638fa613b48e8d6551ebcb127336b932ba6c8 29-Jun-2009 Brian Paul <brianp@vmware.com> mesa: check for ARB_framebuffer_object for GL_TEXTURE_STENCIL_SIZE_EXT query
/external/mesa3d/src/mesa/main/texparam.c
74bec42b45910e2ff6bf1a8cc0eeb2bc5c705767 06-May-2009 Brian Paul <brianp@vmware.com> mesa: limit number of error raised by invalid GL_TEXTURE_MAX_ANISOTROPY_EXT
/external/mesa3d/src/mesa/main/texparam.c
1d0039959302fddd560dc7f9642f312e588cce0e 24-Apr-2009 Brian Paul <brianp@vmware.com> mesa: more informative error messages
/external/mesa3d/src/mesa/main/texparam.c
ebc1478e501d43e0de54e7b6c3edfbc81d7d20c6 02-Apr-2009 Roland Scheidegger <sroland@vmware.com> mesa: fix TexParameter functions

premature return in TexParameterf caused mesa to never call Driver.TexParameter
breaking drivers relying on this (fix bug #20966).
While here, also fix using ctx->ErrorValue when deciding to call
Driver.TexParameter. Errors are sticky and uncleared errors thus would cause
this to no longer get called. Since we thus need return value of
set_tex_parameter[if] can also optimize this to only call when value changed.
/external/mesa3d/src/mesa/main/texparam.c
7fbae9f41d79fc410f6c6638e26be0ff2be545bd 12-Mar-2009 Brian Paul <brianp@vmware.com> mesa: get rid of gl_texture_object::_BorderChan
/external/mesa3d/src/mesa/main/texparam.c
9818734e0148510967ca9ee0d1aa8b196b509f02 21-Feb-2009 Brian Paul <brianp@vmware.com> mesa: use an array for current texture objects

Use loops to consolidate lots of texture object code.
/external/mesa3d/src/mesa/main/texparam.c
aad3f546a046fe40b771e5d5f965b29189821d51 09-Feb-2009 Brian Paul <brianp@vmware.com> mesa: avoid setting texObj->_Complete = GL_FALSE when there's no state change

Avoid a little bit of unneeded state validation and fixes a bug where the
texture complete flags was set to false, but we didn't signal _NEW_TEXTURE.

Fixes piglit tex1d-2dborder failure.
/external/mesa3d/src/mesa/main/texparam.c
37c768b36aad22ecad48c7caab272354383e26a7 09-Feb-2009 Brian Paul <brianp@vmware.com> mesa: add no-change testing for a few more texture parameters
/external/mesa3d/src/mesa/main/texparam.c
33fa5e4bfad8005f09ad3c9fc92c40fa863935d1 28-Jan-2009 Ian Romanick <idr@freedesktop.org> Make GL_ARB_texture_compression mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/texparam.c
26da28c995557c8b913e5ccfe31b31dc32e6c735 29-Jan-2009 Brian Paul <brianp@vmware.com> mesa: remove GL_SGIX_shadow, GL_SGIX_shadow_ambient and GL_SGIX_depth_texture

Everyone should be using the newer/better ARB versions of these extensions.
/external/mesa3d/src/mesa/main/texparam.c
72f0b4a55ba36bb8571b4c11d0098361f766814e 28-Jan-2009 Brian Paul <brianp@vmware.com> mesa: additional GL_INVALID_OPERATION tests for texture swizzle
/external/mesa3d/src/mesa/main/texparam.c
4a89e51c5f88b57040b361b62e80a57c8248ba4b 28-Jan-2009 Brian Paul <brianp@vmware.com> mesa: set/get new state for GL_EXT_texture_swizzle
/external/mesa3d/src/mesa/main/texparam.c
318e53a4bf27499935c874f475af111ffaa71fdd 27-Jan-2009 Brian Paul <brianp@vmware.com> mesa: refactor glTexParameter code
/external/mesa3d/src/mesa/main/texparam.c
4741dbcbbc2514de370a760f4b78a17491014555 02-Oct-2008 Ian Romanick <ian.d.romanick@intel.com> Unify ARB_depth_texture and SGIX_depth_texture

The ARB extension is a superset of the older SGIX extension. Any
hardware that can support the SGIX version can also support the ARB
version. In Mesa, any driver that supports one also supports the
other. This unification just simplifies some bits of code.
/external/mesa3d/src/mesa/main/texparam.c
ee80c64be8ebeebc1cf4c4913049eb07b9326b96 26-Sep-2008 Brad King <brad.king@kitware.com> mesa: fix param indexing
/external/mesa3d/src/mesa/main/texparam.c
1b7e90984511cfa47597c255d73ca416ddd2db6f 13-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: texture crop rect state
(cherry picked from commit c01fbc7866d7cd5cf4263dffec6d9591470b4c23)
/external/mesa3d/src/mesa/main/texparam.c
ddd630ef907cd6bb91bad0c9f5db83f2fa67be47 12-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: refactor: move various ENUM_TO_x macros into macros.h
/external/mesa3d/src/mesa/main/texparam.c
ae1fdc15238498bf025d0f0be7337e2f9dda455f 12-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: refactor: move glTexParameter-related functions into new texparam.c file
/external/mesa3d/src/mesa/main/texparam.c