From 1f1514e1aa318b1d102ae59517b685b5606dc5e7 Mon Sep 17 00:00:00 2001 From: Elie Tournier Date: Fri, 15 Feb 2019 16:18:25 +0000 Subject: [PATCH] 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: --- src/gallium/drivers/virgl/virgl_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.30.2