[Mesa-dev] [PATCH 3/3] radeonsi/compute: Enable PIPE_SHADER_CAP_DOUBLES
Tom Stellard
thomas.stellard at amd.com
Thu Feb 26 17:06:29 PST 2015
---
src/gallium/drivers/radeonsi/si_pipe.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 26182c2..c7a7622 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -360,8 +360,11 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu
return PIPE_SHADER_IR_NATIVE;
#endif
case PIPE_SHADER_CAP_DOUBLES:
- return 0; /* XXX: Enable doubles once the compiler can
- handle them. */
+#if HAVE_LLVM >= 0x0307
+ return 1;
+#else
+ return 0;
+#endif
case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE: {
uint64_t max_const_buffer_size;
pscreen->get_compute_param(pscreen,
--
2.0.4
More information about the mesa-dev
mailing list