Module: Mesa
Branch: master
Commit: da85ab4b655a28cec33a81dae78ebe375fef9aa1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=da85ab4b655a28cec33a81dae78ebe375fef9aa1

Author: Tom Stellard <thomas.stell...@amd.com>
Date:   Thu Feb 26 23:25:14 2015 +0000

radeonsi/compute: Enable PIPE_SHADER_CAP_DOUBLES v2

v2:
  - Simplify ifdef

Reviewed-by: Michel Dänzer <michel.daen...@amd.com>

---

 src/gallium/drivers/radeonsi/si_pipe.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c 
b/src/gallium/drivers/radeonsi/si_pipe.c
index f8fd3fa..f1a5388 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -363,8 +363,8 @@ 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. */
+                       return HAVE_LLVM >= 0x0307;
+
                case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE: {
                        uint64_t max_const_buffer_size;
                        pscreen->get_compute_param(pscreen,

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to