mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00:00
gallium: rename ballot cap
This cap is no longer TGSI specific, so let's rename it to reflect reality. Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15316>
This commit is contained in:
parent
b3ce733da9
commit
115298b71e
@ -437,7 +437,7 @@ The integer capabilities:
|
||||
* ``PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE``: The page size of sparse buffers in
|
||||
bytes, or 0 if sparse buffers are not supported. The page size must be at
|
||||
most 64KB.
|
||||
* ``PIPE_CAP_TGSI_BALLOT``: Whether the BALLOT and READ_* opcodes as well as
|
||||
* ``PIPE_CAP_SHADER_BALLOT``: Whether the BALLOT and READ_* opcodes as well as
|
||||
the SUBGROUP_* semantics are supported.
|
||||
* ``PIPE_CAP_TES_LAYER_VIEWPORT``: Whether ``VARYING_SLOT_LAYER`` and
|
||||
``VARYING_SLOT_VIEWPORT`` are supported as tessellation evaluation
|
||||
|
@ -310,7 +310,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
|
||||
case PIPE_CAP_SHADER_CLOCK:
|
||||
case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE:
|
||||
case PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE:
|
||||
case PIPE_CAP_TGSI_BALLOT:
|
||||
case PIPE_CAP_SHADER_BALLOT:
|
||||
case PIPE_CAP_TES_LAYER_VIEWPORT:
|
||||
case PIPE_CAP_CAN_BIND_CONST_BUFFER_AS_VERTEX:
|
||||
case PIPE_CAP_TGSI_DIV:
|
||||
|
@ -200,7 +200,7 @@ crocus_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
return true;
|
||||
case PIPE_CAP_INT64:
|
||||
case PIPE_CAP_INT64_DIVMOD:
|
||||
case PIPE_CAP_TGSI_BALLOT:
|
||||
case PIPE_CAP_SHADER_BALLOT:
|
||||
case PIPE_CAP_PACKED_UNIFORMS:
|
||||
return devinfo->ver == 8;
|
||||
case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
|
||||
|
@ -221,7 +221,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
case PIPE_CAP_TGSI_TEX_TXF_LZ:
|
||||
case PIPE_CAP_TEXTURE_QUERY_SAMPLES:
|
||||
case PIPE_CAP_SHADER_CLOCK:
|
||||
case PIPE_CAP_TGSI_BALLOT:
|
||||
case PIPE_CAP_SHADER_BALLOT:
|
||||
case PIPE_CAP_MULTISAMPLE_Z_RESOLVE:
|
||||
case PIPE_CAP_CLEAR_TEXTURE:
|
||||
case PIPE_CAP_CLEAR_SCISSORED:
|
||||
|
@ -228,7 +228,7 @@ nv30_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
case PIPE_CAP_SHADER_CLOCK:
|
||||
case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE:
|
||||
case PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE:
|
||||
case PIPE_CAP_TGSI_BALLOT:
|
||||
case PIPE_CAP_SHADER_BALLOT:
|
||||
case PIPE_CAP_TES_LAYER_VIEWPORT:
|
||||
case PIPE_CAP_CAN_BIND_CONST_BUFFER_AS_VERTEX:
|
||||
case PIPE_CAP_POST_DEPTH_COVERAGE:
|
||||
|
@ -337,7 +337,7 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
case PIPE_CAP_INT64_DIVMOD:
|
||||
case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE:
|
||||
case PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE:
|
||||
case PIPE_CAP_TGSI_BALLOT:
|
||||
case PIPE_CAP_SHADER_BALLOT:
|
||||
case PIPE_CAP_TES_LAYER_VIEWPORT:
|
||||
case PIPE_CAP_POST_DEPTH_COVERAGE:
|
||||
case PIPE_CAP_BINDLESS_TEXTURE:
|
||||
|
@ -323,7 +323,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
case PIPE_CAP_FBFETCH:
|
||||
return class_3d >= NVE4_3D_CLASS ? 1 : 0; /* needs testing on fermi */
|
||||
case PIPE_CAP_SEAMLESS_CUBE_MAP_PER_TEXTURE:
|
||||
case PIPE_CAP_TGSI_BALLOT:
|
||||
case PIPE_CAP_SHADER_BALLOT:
|
||||
return class_3d >= NVE4_3D_CLASS;
|
||||
case PIPE_CAP_BINDLESS_TEXTURE:
|
||||
return class_3d >= NVE4_3D_CLASS;
|
||||
|
@ -146,7 +146,7 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
case PIPE_CAP_CAN_BIND_CONST_BUFFER_AS_VERTEX:
|
||||
case PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION:
|
||||
case PIPE_CAP_SIGNED_VERTEX_BUFFER_OFFSET:
|
||||
case PIPE_CAP_TGSI_BALLOT:
|
||||
case PIPE_CAP_SHADER_BALLOT:
|
||||
case PIPE_CAP_SHADER_GROUP_VOTE:
|
||||
case PIPE_CAP_FBFETCH:
|
||||
case PIPE_CAP_COMPUTE_GRID_INFO_LAST_BLOCK:
|
||||
|
@ -468,7 +468,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
case PIPE_CAP_POINT_SPRITE:
|
||||
return 1;
|
||||
|
||||
case PIPE_CAP_TGSI_BALLOT:
|
||||
case PIPE_CAP_SHADER_BALLOT:
|
||||
return screen->info.have_vulkan12 && screen->info.have_EXT_shader_subgroup_ballot && screen->info.props11.subgroupSize <= 64;
|
||||
|
||||
case PIPE_CAP_SAMPLE_SHADING:
|
||||
|
@ -898,7 +898,7 @@ enum pipe_cap
|
||||
PIPE_CAP_SHADER_CLOCK,
|
||||
PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE,
|
||||
PIPE_CAP_SPARSE_BUFFER_PAGE_SIZE,
|
||||
PIPE_CAP_TGSI_BALLOT,
|
||||
PIPE_CAP_SHADER_BALLOT,
|
||||
PIPE_CAP_TES_LAYER_VIEWPORT,
|
||||
PIPE_CAP_CAN_BIND_CONST_BUFFER_AS_VERTEX,
|
||||
PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION,
|
||||
|
@ -810,7 +810,7 @@ void st_init_extensions(struct pipe_screen *screen,
|
||||
{ o(ARB_sample_shading), PIPE_CAP_SAMPLE_SHADING },
|
||||
{ o(ARB_sample_locations), PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS },
|
||||
{ o(ARB_seamless_cube_map), PIPE_CAP_SEAMLESS_CUBE_MAP },
|
||||
{ o(ARB_shader_ballot), PIPE_CAP_TGSI_BALLOT },
|
||||
{ o(ARB_shader_ballot), PIPE_CAP_SHADER_BALLOT },
|
||||
{ o(ARB_shader_clock), PIPE_CAP_SHADER_CLOCK },
|
||||
{ o(ARB_shader_draw_parameters), PIPE_CAP_DRAW_PARAMETERS },
|
||||
{ o(ARB_shader_group_vote), PIPE_CAP_SHADER_GROUP_VOTE },
|
||||
|
Loading…
Reference in New Issue
Block a user