i965: Enable ARB/KHR_robust_buffer_access_behavior on BYT and HSW+
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 May 2016 20:46:43 +0000 (13:46 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 May 2016 02:12:34 +0000 (19:12 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
docs/GL3.txt
src/mesa/drivers/dri/i965/intel_extensions.c

index 66619d78308e33d2f9ed8f387817a5e04965bf2a..ff940ff3f8ecc171f332e44eb7bd9f94df1e2692 100644 (file)
@@ -177,7 +177,7 @@ GL 4.3, GLSL 4.30:
   GL_ARB_invalidate_subdata                             DONE (all drivers)
   GL_ARB_multi_draw_indirect                            DONE (i965, nvc0, r600, radeonsi, llvmpipe, softpipe, swr)
   GL_ARB_program_interface_query                        DONE (all drivers)
-  GL_ARB_robust_buffer_access_behavior                  DONE (radeonsi)
+  GL_ARB_robust_buffer_access_behavior                  DONE (i965, radeonsi)
   GL_ARB_shader_image_size                              DONE (i965, radeonsi, softpipe)
   GL_ARB_shader_storage_buffer_object                   DONE (i965, nvc0, radeonsi, softpipe)
   GL_ARB_stencil_texturing                              DONE (i965/gen8+, nv50, nvc0, r600, radeonsi, llvmpipe, softpipe, swr)
@@ -218,7 +218,7 @@ GL 4.5, GLSL 4.50:
   GL_ARB_shader_texture_image_samples                   DONE (i965, nv50, nvc0, r600, radeonsi)
   GL_ARB_texture_barrier                                DONE (i965, nv50, nvc0, r600, radeonsi)
   GL_KHR_context_flush_control                          DONE (all - but needs GLX/EGL extension to be useful)
-  GL_KHR_robust_buffer_access_behavior                  not started
+  GL_KHR_robust_buffer_access_behavior                  DONE (i965)
   GL_KHR_robustness                                     not started (90% done with the ARB variant)
   GL_EXT_shader_integer_mix                             DONE (all drivers that support GLSL)
 
index 0f0d1ce94bd6c79774968be302987b2ba57ce11e..6ed55036c3fee90e185702a6780db00d59e1dfc8 100644 (file)
@@ -370,6 +370,11 @@ intelInitExtensions(struct gl_context *ctx)
       }
    }
 
+   if (brw->gen >= 8 || brw->is_haswell || brw->is_baytrail) {
+      ctx->Extensions.ARB_robust_buffer_access_behavior = true;
+      ctx->Extensions.KHR_robust_buffer_access_behavior = true;
+   }
+
    if (brw->intelScreen->has_mi_math_and_lrr) {
       ctx->Extensions.ARB_query_buffer_object = true;
    }