radeonsi/compute: Enable PIPE_SHADER_CAP_DOUBLES v2
authorTom Stellard <thomas.stellard@amd.com>
Thu, 26 Feb 2015 23:25:14 +0000 (23:25 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 27 Feb 2015 14:57:52 +0000 (14:57 +0000)
v2:
  - Simplify ifdef

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index f8fd3fa767e29fec9518addb163442c107f25efa..f1a53883f2a618e10c573a037eb92350935a7667 100644 (file)
@@ -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,