mesa/src
Roland Scheidegger 4f44202aae draw: always call util_cpu_detect() in draw context creation.
Since disabling denorms in draw_vbo() we require the util_cpu_caps to be
initialized there. Hence add another util_cpu_detect() call in
draw_create_context() which should ensure this.
(There is another call in draw_get_option_use_llvm() which only gets called
with x86 (not x86_64) but calling it always there wouldn't help since it most
likely wouldn't get called when compiling without llvm, so leave it alone
there.)
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=66806.
(Because util_cpu_caps wasn't initialized when first calling util_fpstate_get()
hence it returning zero, but it would later get initialized by rtasm translate
code hence when draw call returned it unmasked all exceptions by calling
util_fpstate_set(). This was happening only with DRAW_USE_LLVM=0 or not
compiling with llvm, otherwise the llvm init code was calling it on time too.)

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
2013-08-15 17:38:27 +02:00
..
egl gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-13 18:11:22 -07:00
gallium draw: always call util_cpu_detect() in draw context creation. 2013-08-15 17:38:27 +02:00
gbm gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-13 18:11:22 -07:00
getopt
glsl glsl: disable ARB_texture_cube_map_array_enable keywords for glsl es 2013-08-13 18:13:35 -07:00
glx glx: Generate GLXBadDrawable when drawable is zero 2013-08-13 17:54:29 -07:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi mesa: Treat glBindFramebuffer and glBindFramebufferEXT more correctly 2013-08-06 12:19:55 -07:00
mesa mesa: Use _mesa_detach_renderbuffer when deleting a texture 2013-08-13 17:54:24 -07:00
Makefile.am gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-13 18:11:22 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00