[Mesa-dev] [PATCH 19/20] mesa/st: enable compute shaders if images are also supported

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Sat Apr 2 13:11:02 UTC 2016


Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
 src/mesa/state_tracker/st_extensions.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 6c0df8d..7bbe87d 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -1139,9 +1139,9 @@ 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; */
+
+         if (extensions->ARB_shader_image_load_store)
+            extensions->ARB_compute_shader = true;
       }
    }
 }
-- 
2.7.4



More information about the mesa-dev mailing list