return vscreen->caps.caps.v1.max_dual_source_render_targets;
case PIPE_CAP_OCCLUSION_QUERY:
return vscreen->caps.caps.v1.bset.occlusion_query;
+ case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE:
+ if (vscreen->caps.caps.v2.host_feature_check_version >= 20)
+ return vscreen->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_MIRROR_CLAMP_TO_EDGE;
+ FALLTHROUGH;
case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
return vscreen->caps.caps.v1.bset.mirror_clamp &&
- vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_HOST_IS_GLES ? 0 : 1;
- case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE:
- return vscreen->caps.caps.v1.bset.mirror_clamp;
+ (vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_HOST_IS_GLES);
case PIPE_CAP_TEXTURE_SWIZZLE:
return 1;
case PIPE_CAP_MAX_TEXTURE_2D_SIZE:
#define VIRGL_CAP_V2_PIPELINE_STATISTICS_QUERY (1 << 13)
#define VIRGL_CAP_V2_DRAW_PARAMETERS (1 << 14)
#define VIRGL_CAP_V2_GROUP_VOTE (1 << 15)
+#define VIRGL_CAP_V2_MIRROR_CLAMP_TO_EDGE (1 << 16)
/* virgl bind flags - these are compatible with mesa 10.5 gallium.
* but are fixed, no other should be passed to virgl either.