From f61e382f0afc48bc09f21c50639f760acca85bc5 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 24 Feb 2014 16:51:05 -0500 Subject: r600g/compute: PIPE_CAP_COMPUTE should be false for pre-evergreen GPUs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This prevents clover from using unsupported devices. Reviewed-by: Marek Olšák Reviewed-by: Alex Deucher CC: "10.0 10.1" --- src/gallium/drivers/r600/r600_pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index f2782e6baa0..2fceb3c645a 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: @@ -358,6 +357,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: return 1; + case PIPE_CAP_COMPUTE: + return rscreen->b.chip_class > R700; + case PIPE_CAP_TGSI_TEXCOORD: return 0; -- cgit v1.2.3