OSDN Git Service

i965: Enable ARB_shader_precision on Gen8+.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 17 May 2016 00:49:21 +0000 (17:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 17 May 2016 00:52:45 +0000 (17:52 -0700)
I recently fixed a bug in the Piglit tests:
https://lists.freedesktop.org/archives/piglit/2016-May/019802.html

With that patch in place, we pass all the tests.  So, turn it on.

We could probably expose this earlier than Gen8, but the extension
says that OpenGL 4.0 is required, and all of our tests are written
against GLSL 4.00 (which is only supported on Gen8+).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_extensions.c

index 362a7e5..cae53f2 100644 (file)
@@ -374,6 +374,7 @@ intelInitExtensions(struct gl_context *ctx)
    }
 
    if (brw->gen >= 8) {
+      ctx->Extensions.ARB_shader_precision = true;
       ctx->Extensions.ARB_stencil_texturing = true;
       ctx->Extensions.ARB_texture_stencil8 = true;
       ctx->Extensions.ARB_gpu_shader_fp64 = true;