i965: Enable 64-bit GLSL extensions
authorMatt Turner <mattst88@gmail.com>
Thu, 18 Oct 2018 16:51:51 +0000 (09:51 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 10 Jan 2019 00:42:41 +0000 (16:42 -0800)
Now that we have software implementations of ARB_gpu_shader_int64 and
ARB_gpu_shader_fp64 we can unconditionally enable these extensions.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
docs/relnotes/19.0.0.html
src/mesa/drivers/dri/i965/intel_extensions.c

index 4c831977258cf9b9debcf5f8328a0682955fa794..10c883f398f70f8194249df589a75ea1657d7004 100644 (file)
@@ -47,6 +47,7 @@ TBD.
 <li>GL_EXT_texture_view on drivers supporting texture views (ES extension).</li>
 <li>GL_OES_texture_view on drivers supporting texture views (ES extension).</li>
 <li>GL_NV_shader_atomic_float on nvc0 (Fermi/Kepler only).</li>
+<li>Shader-based software implementations of GL_ARB_gpu_shader_fp64, GL_ARB_gpu_shader_int64, GL_ARB_vertex_attrib_64bit, and GL_ARB_shader_ballot on i965.</li>
 </ul>
 
 <h2>Bug fixes</h2>
index c1e92e586e35d6edcc8e0cf99d939c92afd5225d..9fde10c45353e24121a5013a49b2f0350e7cde68 100644 (file)
@@ -229,7 +229,7 @@ intelInitExtensions(struct gl_context *ctx)
       ctx->Extensions.ARB_framebuffer_no_attachments = true;
       if (ctx->API != API_OPENGL_COMPAT) {
          ctx->Extensions.ARB_gpu_shader5 = true;
-         ctx->Extensions.ARB_gpu_shader_fp64 = devinfo->has_64bit_types;
+         ctx->Extensions.ARB_gpu_shader_fp64 = true;
       }
       ctx->Extensions.ARB_shader_atomic_counters = true;
       ctx->Extensions.ARB_shader_atomic_counter_ops = true;
@@ -243,7 +243,7 @@ intelInitExtensions(struct gl_context *ctx)
       ctx->Extensions.ARB_texture_compression_bptc = true;
       ctx->Extensions.ARB_texture_view = true;
       ctx->Extensions.ARB_shader_storage_buffer_object = true;
-      ctx->Extensions.ARB_vertex_attrib_64bit = devinfo->has_64bit_types;
+      ctx->Extensions.ARB_vertex_attrib_64bit = true;
       ctx->Extensions.EXT_shader_samples_identical = true;
       ctx->Extensions.OES_primitive_bounding_box = true;
       ctx->Extensions.OES_texture_buffer = true;
@@ -295,9 +295,9 @@ intelInitExtensions(struct gl_context *ctx)
    }
 
    if (devinfo->gen >= 8) {
-      ctx->Extensions.ARB_gpu_shader_int64 = devinfo->has_64bit_types;
+      ctx->Extensions.ARB_gpu_shader_int64 = true;
       /* requires ARB_gpu_shader_int64 */
-      ctx->Extensions.ARB_shader_ballot = devinfo->has_64bit_types;
+      ctx->Extensions.ARB_shader_ballot = true;
       ctx->Extensions.ARB_ES3_2_compatibility = true;
    }