diff options
author | Tom Stellard <[email protected]> | 2014-09-25 18:10:44 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-10-31 15:24:00 -0400 |
commit | fa07f4b68a20e54e1766876203b11a8b90ff120f (patch) | |
tree | 3143eb857d056ebbbf0586abb5dbec2db1581681 /src/gallium/drivers/r600/r600_pipe.c | |
parent | e91735a641b71bc2bccabd0c779a626fa412b314 (diff) |
r600g/compute: Enable PIPE_SHADER_IR_NATIVE for compute shaders v2
v2:
- Drop dependency on LLVM >= 3.5.1
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index c86daa6c249..0b571e45e9b 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -472,7 +472,11 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e return 16; case PIPE_SHADER_CAP_PREFERRED_IR: if (shader == PIPE_SHADER_COMPUTE) { +#if HAVE_LLVM < 0x0306 return PIPE_SHADER_IR_LLVM; +#else + return PIPE_SHADER_IR_NATIVE; +#endif } else { return PIPE_SHADER_IR_TGSI; } |