mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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:
parent
fe19405c46
commit
b9fea5ea6b
2 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue