[Mesa-dev] [PATCH 19/20] mesa/st: enable compute shaders if images are also supported
Samuel Pitoiset
samuel.pitoiset at gmail.com
Sat Apr 2 13:17:45 UTC 2016
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 04/02/2016 03:11 PM, Bas Nieuwenhuizen wrote:
> 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;
> }
> }
> }
>
More information about the mesa-dev
mailing list