summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElie Tournier <[email protected]>2019-02-15 16:18:25 +0000
committerGert Wollny <[email protected]>2019-03-09 11:33:14 +0100
commit1f1514e1aa318b1d102ae59517b685b5606dc5e7 (patch)
tree052e3cef9e5b8fcf03abd523d52d9f2f37c8bf61
parent8ad1e86bb075851fa53f6e218fc10bcbf68cc208 (diff)
virgl: Set PIPE_CAP_DOUBLES when running on GLES This is a lie but no known app use fp64.
Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: <Gurchetan Singh [email protected]>
-rw-r--r--src/gallium/drivers/virgl/virgl_screen.c3
1 files changed, 2 insertions, 1 deletions
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: