anv: enable float64 feature on supported platforms
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 4 Jan 2017 12:11:35 +0000 (13:11 +0100)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 9 Jan 2017 09:44:07 +0000 (10:44 +0100)
v2:
- Remove image_ms_array initialization (Jason)

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_pipeline.c

index 196cb740d3aba2a5d35c4ed788aec0c032912654..2c46ef5bf96f4dc4dd19f3a624021ff754b5b621 100644 (file)
@@ -124,10 +124,14 @@ anv_shader_compile_to_nir(struct anv_device *device,
       }
    }
 
+   const struct nir_spirv_supported_extensions supported_ext = {
+      .float64 = device->instance->physicalDevice.info.gen >= 8,
+   };
+
    nir_function *entry_point =
       spirv_to_nir(spirv, module->size / 4,
                    spec_entries, num_spec_entries,
-                   stage, entrypoint_name, NULL, nir_options);
+                   stage, entrypoint_name, &supported_ext, nir_options);
    nir_shader *nir = entry_point->shader;
    assert(nir->stage == stage);
    nir_validate_shader(nir);