diff options
author | Tom Stellard <[email protected]> | 2014-05-09 04:24:42 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-05-09 12:16:05 -0400 |
commit | 93c2ebbd83604263fa46351a7efcde382322024b (patch) | |
tree | 221ae9107b58dd07033b035934fc97d58aed90b9 /src/gallium/drivers/radeonsi/si_pipe.c | |
parent | c5d000832579c17fdeff7ec8aaf7430d9b2e1049 (diff) |
radeonsi: Enable geometry shaders with LLVM 3.4.1
Reviewed-by: Michel Dänzer <[email protected]>
CC: "10.1 10.2" <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |