From: Bas Nieuwenhuizen Date: Sat, 2 Apr 2016 11:39:54 +0000 (+0200) Subject: mesa/st: enable compute shaders if images are also supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0b729c544ab0f25cd90af5daffdff0940743e14;p=mesa.git mesa/st: enable compute shaders if images are also supported v2: Also depend on atomic counters. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák Reviewed-by: Nicolai Hähnle --- diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 6d407d33eff..939f15d5e9f 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1168,9 +1168,10 @@ void st_init_extensions(struct pipe_screen *screen, consts->MaxComputeWorkGroupCount[i] = grid_size[i]; consts->MaxComputeWorkGroupSize[i] = block_size[i]; } - /* XXX: ARB_compute_shader is not enabled by default because images - * support is still not implemented yet. */ - /* extensions->ARB_compute_shader = true; */ + + extensions->ARB_compute_shader = + extensions->ARB_shader_image_load_store && + extensions->ARB_shader_atomic_counters; } } }