diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-01-27 10:35:13 +0100 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-02-02 16:53:42 +0100 |
commit | a020cb3a72019748fee1824fc542b3b8225226c9 (patch) | |
tree | 0d672109379cb159e7671c8b315815c6d8046f64 /src/gallium/state_trackers/clover | |
parent | 96123dbad9f0de74e9b08d08df9e2e75cbfcd745 (diff) |
gallium: turn PIPE_SHADER_CAP_DOUBLES into a screen capability
Make the cap consistent with PIPE_CAP_INT64.
Aside from the hypothetical case of using draw for vertex shaders (and
actually caring about doubles...), every implementation supports doubles
either nowhere or everywhere.
Also, st/mesa didn't even check the cap correctly in all supported
shader stages.
While at it, add a missing LLVM version check for 64-bit integers in
radeonsi. This is conservative: judging by the log, LLVM 3.8 might be
sufficient, but there are probably bugs that have been fixed since then.
v2: fix clover (Marek)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r-- | src/gallium/state_trackers/clover/core/device.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/core/device.cpp b/src/gallium/state_trackers/clover/core/device.cpp index 8f1c1da513..158c9aa696 100644 --- a/src/gallium/state_trackers/clover/core/device.cpp +++ b/src/gallium/state_trackers/clover/core/device.cpp @@ -186,8 +186,7 @@ device::image_support() const { bool device::has_doubles() const { - return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, - PIPE_SHADER_CAP_DOUBLES); + return pipe->get_param(pipe, PIPE_CAP_DOUBLES); } std::vector<size_t> |