diff options
author | Gert Wollny <gert.wollny@collabora.com> | 2023-02-22 17:58:58 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-03-16 09:30:00 +0000 |
commit | 831e7818aad562be029a00492bd86640bbe7bc59 (patch) | |
tree | 30a958be1244b2c6e55157f2ef0dfb6325bbb6f5 /src/virtio | |
parent | d53aba56dbc382a8ff93614ca685d7d6ea14314b (diff) | |
download | mesa-831e7818aad562be029a00492bd86640bbe7bc59.tar.gz |
virgl: Enable AMD_vertex_shader_(layer|viewport_index) when host supports it
This increase the number of cases when the texture upload from buffer
can use the PBO upload code path.
v2: Fix logic combination (Corentin)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21586>
Diffstat (limited to 'src/virtio')
-rw-r--r-- | src/virtio/virtio-gpu/virgl_hw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/virtio/virtio-gpu/virgl_hw.h b/src/virtio/virtio-gpu/virgl_hw.h index 97b47e0ae31..4007fa1677a 100644 --- a/src/virtio/virtio-gpu/virgl_hw.h +++ b/src/virtio/virtio-gpu/virgl_hw.h @@ -466,6 +466,8 @@ enum virgl_formats { #define VIRGL_CAP_V2_SCANOUT_USES_GBM (1 << 8) #define VIRGL_CAP_V2_SSO (1 << 9) #define VIRGL_CAP_V2_TEXTURE_SHADOW_LOD (1 << 10) +#define VIRGL_CAP_V2_VS_VERTEX_LAYER (1 << 11) +#define VIRGL_CAP_V2_VS_VIEWPORT_INDEX (1 << 12) /* virgl bind flags - these are compatible with mesa 10.5 gallium. * but are fixed, no other should be passed to virgl either. */ |