diff options
author | Tom Stellard <[email protected]> | 2014-09-25 18:11:24 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-10-31 15:24:00 -0400 |
commit | 1f4e48d5b53e73605832971f3fb06cb3402f97a5 (patch) | |
tree | 9f4a475a36e329d94e8198d5449c7e298db69837 /src/gallium/drivers/radeonsi/si_pipe.c | |
parent | fa07f4b68a20e54e1766876203b11a8b90ff120f (diff) |
radeonsi/compute: Enable PIPE_SHADER_IR_NATIVE for compute shaders v2
v2:
- Drop dependency on LLVM >= 3.5.1
- Rename si_create_shader() to si_shader_binary_read()
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 0577cd2a924..53c83ba3889 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -336,7 +336,11 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu case PIPE_SHADER_COMPUTE: switch (param) { case PIPE_SHADER_CAP_PREFERRED_IR: +#if HAVE_LLVM < 0x0306 return PIPE_SHADER_IR_LLVM; +#else + return PIPE_SHADER_IR_NATIVE; +#endif case PIPE_SHADER_CAP_DOUBLES: return 0; /* XXX: Enable doubles once the compiler can handle them. */ |