i965: enable AtomicStorage capability for gen7+
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 28 Oct 2017 09:27:17 +0000 (11:27 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 3 Jul 2018 10:41:46 +0000 (12:41 +0200)
That is the same gen requirement for ARB_shader_atomic_counters.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/drivers/dri/i965/brw_context.c

index 9ced230ec14350fc45e7c3dae83b48b7c7799c67..e755de6241a69f9c9339a98e241b479c3759533a 100644 (file)
@@ -363,6 +363,7 @@ brw_initialize_spirv_supported_capabilities(struct brw_context *brw)
    ctx->Const.SpirVCapabilities.draw_parameters = true;
    ctx->Const.SpirVCapabilities.image_write_without_format = true;
    ctx->Const.SpirVCapabilities.variable_pointers = true;
+   ctx->Const.SpirVCapabilities.atomic_storage = devinfo->gen >= 7;
 }
 
 static void