Skip to content

Commit

Permalink
llvmpipe: compile with hack-convert-to-float
Browse files Browse the repository at this point in the history
llvmpipe optimize conversions, failing on our implementation of
rounding conversions.

Compiling with hack-convert-to-float fixes the issue
  • Loading branch information
rjodinchr committed Jul 17, 2023
1 parent 06942d5 commit 6f3366b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/device_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ struct cvk_device_properties_llvmpipe : public cvk_device_properties {
"half_sin", "half_sqrt", "half_tan",
});
}
std::string get_compile_options() const override final {
return "-hack-convert-to-float";
}
};

static bool isllvmpipeDevice(const uint32_t vendorID) {
Expand Down

0 comments on commit 6f3366b

Please sign in to comment.