virgl: Use better reporting for mirror_clamp features
Fixes: 9efe50c83b
virgl: report MIRROR_CLAMP features better
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27106>
This commit is contained in:
@@ -97,6 +97,8 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
||||
return vscreen->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_MIRROR_CLAMP_TO_EDGE;
|
||||
FALLTHROUGH;
|
||||
case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
|
||||
if (vscreen->caps.caps.v2.host_feature_check_version >= 22)
|
||||
return vscreen->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_MIRROR_CLAMP;
|
||||
return vscreen->caps.caps.v1.bset.mirror_clamp &&
|
||||
!(vscreen->caps.caps.v2.capability_bits & VIRGL_CAP_HOST_IS_GLES);
|
||||
case PIPE_CAP_TEXTURE_SWIZZLE:
|
||||
|
@@ -586,6 +586,7 @@ enum virgl_formats {
|
||||
#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)
|
||||
#define VIRGL_CAP_V2_MIRROR_CLAMP (1 << 17)
|
||||
|
||||
/* virgl bind flags - these are compatible with mesa 10.5 gallium.
|
||||
* but are fixed, no other should be passed to virgl either.
|
||||
|
Reference in New Issue
Block a user