From: Elie Tournier Date: Fri, 15 Feb 2019 16:18:25 +0000 (+0000) Subject: virgl: Set PIPE_CAP_DOUBLES when running on GLES This is a lie but no known app use... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f1514e1aa318b1d102ae59517b685b5606dc5e7;p=mesa.git virgl: Set PIPE_CAP_DOUBLES when running on GLES This is a lie but no known app use fp64. Signed-off-by: Elie Tournier Reviewed-by: --- diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index b290d7d149f..66e520eab8a 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -228,7 +228,8 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT: return vscreen->caps.caps.v2.shader_buffer_offset_alignment; case PIPE_CAP_DOUBLES: - return vscreen->caps.caps.v1.bset.has_fp64; + return vscreen->caps.caps.v1.bset.has_fp64 || + (vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_FAKE_FP64); case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS: return vscreen->caps.caps.v2.max_shader_patch_varyings; case PIPE_CAP_SAMPLER_VIEW_TARGET: