mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
zink: only enable vote if we can support it
We can only support subgroup vote if we have support for SPIR-V 1.3 or later. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11044>
This commit is contained in:
parent
990ed280d0
commit
263ec2fd2a
1 changed files with 3 additions and 1 deletions
|
|
@ -246,7 +246,6 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_CLIP_HALFZ:
|
||||
case PIPE_CAP_TGSI_TXQS:
|
||||
case PIPE_CAP_TEXTURE_BARRIER:
|
||||
case PIPE_CAP_TGSI_VOTE:
|
||||
case PIPE_CAP_DRAW_PARAMETERS:
|
||||
case PIPE_CAP_QUERY_SO_OVERFLOW:
|
||||
case PIPE_CAP_GL_SPIRV:
|
||||
|
|
@ -257,6 +256,9 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_TGSI_PACK_HALF_FLOAT:
|
||||
return 1;
|
||||
|
||||
case PIPE_CAP_TGSI_VOTE:
|
||||
return screen->spirv_version >= 0x00010300;
|
||||
|
||||
case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
|
||||
return screen->info.have_EXT_provoking_vertex;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue