diff options
author | Bas Nieuwenhuizen <[email protected]> | 2016-04-02 13:39:54 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-04-19 18:10:32 +0200 |
commit | e0b729c544ab0f25cd90af5daffdff0940743e14 (patch) | |
tree | 31989fdc5fa11a46fc9c2c424934c6408cbf7e73 /src/mesa/state_tracker/st_extensions.c | |
parent | 41d79bcbfa64f6f72b0090e12838073983ea6e5b (diff) |
mesa/st: enable compute shaders if images are also supported
v2: Also depend on atomic counters.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; } } } |