mesa/src
Iago Toral Quiroga 6148e3aae7 mesa: Fix ctx->Texture.CubeMapSeamless
The intel driver code, and apparently all other Mesa drivers, call
_mesa_initialize_context early in the CreateContext hook. That
function will end up calling _mesa_init_texture which will do:

ctx->Texture.CubeMapSeamless = _mesa_is_gles3(ctx);

But this won't work at this point, since _mesa_is_gles3 requires
ctx->Version to be set and that will not happen until late
in the CreateContext hook, when _mesa_compute_version is called.

We can't just move the call to _mesa_compute_version before
_mesa_initialize_context since it needs that available extensions
have been computed, which again requires other things to be
initialized, etc. Instead, we enable seamless cube maps since
GLES2, which should work for most implementations, and expect
drivers that don't support this to disable it manually as part
of their context initialization setup.

Fixes the following 192 dEQP tests:
dEQP-GLES3.functional.texture.filtering.cube.formats.*
dEQP-GLES3.functional.texture.filtering.cube.sizes.*
dEQP-GLES3.functional.texture.filtering.cube.combinations.*
dEQP-GLES3.functional.texture.mipmap.cube.*
dEQP-GLES3.functional.texture.vertex.cube.filtering.*
dEQP-GLES3.functional.texture.vertex.cube.wrap.*
dEQP-GLES3.functional.shaders.texture_functions.texturelod.samplercube_fixed_*

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2015-02-24 08:58:54 +01:00
..
egl egl, wayland: RGB565 format support on Back-buffer 2015-02-23 14:07:02 -08:00
gallium mesa: move math-related function into new c99_math.h file 2015-02-23 14:45:14 -07:00
gbm gbm: Define _DEFAULT_SOURCE to avoid warning 2015-01-16 21:54:54 -08:00
getopt
glsl nir/gcm: Add some missing break statements 2015-02-23 13:20:13 -08:00
glx glx: do not leak the dri2 extension information 2015-02-18 11:02:25 +00:00
gtest
hgl
loader loader: not having a pci-id should not be a warn 2015-02-21 17:11:02 -05:00
mapi glapi: add ARB_gpu_shader_fp64 (v2) 2015-02-19 00:28:33 -05:00
mesa mesa: Fix ctx->Texture.CubeMapSeamless 2015-02-24 08:58:54 +01:00
util ra: Disable round-robin strategy for optimistically colorable nodes. 2015-02-23 20:55:40 +02:00
Makefile.am glsl: Build a libglsl_util library. 2015-01-23 14:28:44 -08:00
SConscript