virgl: Do not expose EXT_texture_mirror_clamp when using a GLES host
The GL_MIRROR_CLAMP_EXT wrap parameter is never available in GLES. This fixes the `spec@!opengl 1.1@texwrap 2d proj` piglit test when using a GLES host. Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Reviewed-by: Filip Gawin <filip.gawin@collabora.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24935>
This commit is contained in:
parent
1c367933ba
commit
9c39ea796c
1 changed files with 2 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
|
|||
case PIPE_CAP_OCCLUSION_QUERY:
|
||||
return vscreen->caps.caps.v1.bset.occlusion_query;
|
||||
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;
|
||||
case PIPE_CAP_TEXTURE_SWIZZLE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue