From 93c2ebbd83604263fa46351a7efcde382322024b Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 9 May 2014 04:24:42 -0400 Subject: radeonsi: Enable geometry shaders with LLVM 3.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer CC: "10.1 10.2" --- src/gallium/drivers/radeonsi/si_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/radeonsi/si_pipe.c') diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index e5d0a95e18e..07c00cf33d0 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -225,7 +225,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param) return 4; case PIPE_CAP_GLSL_FEATURE_LEVEL: - return HAVE_LLVM >= 0x0305 ? 330 : 140; + return (LLVM_SUPPORTS_GEOM_SHADERS) ? 330 : 140; case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE: return MIN2(sscreen->b.info.vram_size, 0xFFFFFFFF); @@ -309,7 +309,7 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu case PIPE_SHADER_VERTEX: break; case PIPE_SHADER_GEOMETRY: -#if HAVE_LLVM < 0x0305 +#if !(LLVM_SUPPORTS_GEOM_SHADERS) return 0; #endif break; -- cgit v1.2.3