anv: enable float64 feature on supported platforms
v2: - Remove image_ms_array initialization (Jason) Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:

committed by
Juan A. Suarez Romero

parent
88c8121ec9
commit
465204695f
@@ -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 =
|
nir_function *entry_point =
|
||||||
spirv_to_nir(spirv, module->size / 4,
|
spirv_to_nir(spirv, module->size / 4,
|
||||||
spec_entries, num_spec_entries,
|
spec_entries, num_spec_entries,
|
||||||
stage, entrypoint_name, NULL, nir_options);
|
stage, entrypoint_name, &supported_ext, nir_options);
|
||||||
nir_shader *nir = entry_point->shader;
|
nir_shader *nir = entry_point->shader;
|
||||||
assert(nir->stage == stage);
|
assert(nir->stage == stage);
|
||||||
nir_validate_shader(nir);
|
nir_validate_shader(nir);
|
||||||
|
Reference in New Issue
Block a user