[Mesa-dev] [PATCH] r600g/compute: PIPE_CAP_COMPUTE should be false for pre-evergreen GPUs
Marek Olšák
maraeo at gmail.com
Mon Feb 24 14:00:01 PST 2014
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Mon, Feb 24, 2014 at 10:53 PM, Tom Stellard <thomas.stellard at amd.com> wrote:
> This prevents clover from using unsupported devices.
> ---
> src/gallium/drivers/r600/r600_pipe.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
> index 0f75a53..157d560 100644
> --- a/src/gallium/drivers/r600/r600_pipe.c
> +++ b/src/gallium/drivers/r600/r600_pipe.c
> @@ -348,7 +348,6 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
> case PIPE_CAP_VERTEX_ELEMENT_SRC_OFFSET_4BYTE_ALIGNED_ONLY:
> case PIPE_CAP_USER_INDEX_BUFFERS:
> case PIPE_CAP_USER_CONSTANT_BUFFERS:
> - case PIPE_CAP_COMPUTE:
> case PIPE_CAP_START_INSTANCE:
> case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS:
> case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
> @@ -357,6 +356,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
> case PIPE_CAP_TEXTURE_MULTISAMPLE:
> return 1;
>
> + case PIPE_CAP_COMPUTE:
> + return rscreen->b.chip_class > R700;
> +
> case PIPE_CAP_TGSI_TEXCOORD:
> return 0;
>
> --
> 1.8.1.4
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list