diff --git a/docs/gallium/screen.rst b/docs/gallium/screen.rst index 6d933ad78f4..eac08f411c3 100644 --- a/docs/gallium/screen.rst +++ b/docs/gallium/screen.rst @@ -579,7 +579,8 @@ The integer capabilities: * ``PIPE_CAP_TEXTURE_SHADOW_LOD``: True if the driver supports shadow sampler types with texture functions having interaction with LOD of texture lookup. * ``PIPE_CAP_SHADER_SAMPLES_IDENTICAL``: True if the driver supports a shader query to tell whether all samples of a multisampled surface are definitely identical. -* ``PIPE_CAP_TGSI_ATOMINC_WRAP``: Atomic increment/decrement + wrap around are supported. +* ``PIPE_CAP_IMAGE_ATOMIC_INC_WRAP``: Atomic increment/decrement + wrap around + are supported. * ``PIPE_CAP_PREFER_IMM_ARRAYS_AS_CONSTBUF``: True if gallium frontends should turn arrays whose contents can be deduced at compile time into constant buffer loads, or false if the driver can handle such arrays itself in a more diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 08492901632..617a9dbf38a 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -367,7 +367,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_CS_DERIVED_SYSTEM_VALUES_SUPPORTED: case PIPE_CAP_ATOMIC_FLOAT_MINMAX: case PIPE_CAP_SHADER_SAMPLES_IDENTICAL: - case PIPE_CAP_TGSI_ATOMINC_WRAP: + case PIPE_CAP_IMAGE_ATOMIC_INC_WRAP: case PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE: case PIPE_CAP_GLSL_ZERO_INIT: return 0; diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c index 4ffbf5ca8fa..38f9df0d879 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c @@ -254,7 +254,7 @@ nv30_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS: case PIPE_CAP_IMAGE_LOAD_FORMATTED: case PIPE_CAP_TGSI_DIV: - case PIPE_CAP_TGSI_ATOMINC_WRAP: + case PIPE_CAP_IMAGE_ATOMIC_INC_WRAP: case PIPE_CAP_IMAGE_STORE_FORMATTED: return 0; diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c index f4ff8c308fc..70823b0402d 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c @@ -377,7 +377,7 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_CS_DERIVED_SYSTEM_VALUES_SUPPORTED: case PIPE_CAP_FBFETCH_COHERENT: case PIPE_CAP_TGSI_SKIP_SHRINK_IO_ARRAYS: - case PIPE_CAP_TGSI_ATOMINC_WRAP: + case PIPE_CAP_IMAGE_ATOMIC_INC_WRAP: case PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION: case PIPE_CAP_TGSI_TG4_COMPONENT_IN_SWIZZLE: case PIPE_CAP_OPENCL_INTEGER_FUNCTIONS: diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index 9e7dbb1b454..bcbe048b9e6 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c @@ -299,7 +299,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_QUERY_SO_OVERFLOW: case PIPE_CAP_DEST_SURFACE_SRGB_CONTROL: case PIPE_CAP_TGSI_DIV: - case PIPE_CAP_TGSI_ATOMINC_WRAP: + case PIPE_CAP_IMAGE_ATOMIC_INC_WRAP: case PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION: case PIPE_CAP_DEVICE_RESET_STATUS_QUERY: case PIPE_CAP_PREFER_IMM_ARRAYS_AS_CONSTBUF: diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 2fcde57bea6..1cab67ef9cb 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -164,7 +164,7 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION: case PIPE_CAP_PREFER_REAL_BUFFER_IN_CONSTBUF0: case PIPE_CAP_COMPUTE_SHADER_DERIVATIVES: - case PIPE_CAP_TGSI_ATOMINC_WRAP: + case PIPE_CAP_IMAGE_ATOMIC_INC_WRAP: case PIPE_CAP_IMAGE_STORE_FORMATTED: return 1; diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 78db849b515..20fccd33494 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -957,7 +957,7 @@ enum pipe_cap PIPE_CAP_VERTEX_SHADER_SATURATE, PIPE_CAP_TEXTURE_SHADOW_LOD, PIPE_CAP_SHADER_SAMPLES_IDENTICAL, - PIPE_CAP_TGSI_ATOMINC_WRAP, + PIPE_CAP_IMAGE_ATOMIC_INC_WRAP, PIPE_CAP_PREFER_IMM_ARRAYS_AS_CONSTBUF, PIPE_CAP_GL_SPIRV, PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS, diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index e2c04366c10..04d484e1b55 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -815,7 +815,7 @@ void st_init_extensions(struct pipe_screen *screen, { o(ARB_shader_draw_parameters), PIPE_CAP_DRAW_PARAMETERS }, { o(ARB_shader_group_vote), PIPE_CAP_SHADER_GROUP_VOTE }, { o(EXT_shader_image_load_formatted), PIPE_CAP_IMAGE_LOAD_FORMATTED }, - { o(EXT_shader_image_load_store), PIPE_CAP_TGSI_ATOMINC_WRAP }, + { o(EXT_shader_image_load_store), PIPE_CAP_IMAGE_ATOMIC_INC_WRAP }, { o(ARB_shader_stencil_export), PIPE_CAP_SHADER_STENCIL_EXPORT }, { o(ARB_shader_texture_image_samples), PIPE_CAP_TEXTURE_QUERY_SAMPLES }, { o(ARB_shader_texture_lod), PIPE_CAP_FRAGMENT_SHADER_TEXTURE_LOD },