summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2019-07-12 15:46:27 +0200
committerMarek Olšák <[email protected]>2019-08-06 17:40:52 -0400
commit71e619a82549d9212c58a91ac0de53c0f21059dd (patch)
treee5ec8383d3fbc1192ddaefc49d3010f61dd61835 /src/mesa/state_tracker/st_extensions.c
parent91924453eedf3d4e0d57e0c2458db4560122b096 (diff)
glapi: add EXT_shader_image_load_store
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r--src/mesa/state_tracker/st_extensions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index c146c8d9902..abc816ed0d4 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -725,6 +725,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_TGSI_VOTE },
{ o(EXT_shader_image_load_formatted), PIPE_CAP_IMAGE_LOAD_FORMATTED },
+ { o(EXT_shader_image_load_store), PIPE_CAP_TGSI_ATOMINC_WRAP },
{ o(ARB_shader_stencil_export), PIPE_CAP_SHADER_STENCIL_EXPORT },
{ o(ARB_shader_texture_image_samples), PIPE_CAP_TGSI_TXQS },
{ o(ARB_shader_texture_lod), PIPE_CAP_FRAGMENT_SHADER_TEXTURE_LOD },
@@ -1179,6 +1180,9 @@ void st_init_extensions(struct pipe_screen *screen,
extensions->OES_sample_variables = extensions->ARB_sample_shading &&
extensions->ARB_gpu_shader5;
+ extensions->EXT_shader_image_load_store &=
+ screen->get_param(screen, PIPE_CAP_IMAGE_LOAD_FORMATTED);
+
/* Maximum sample count. */
{
static const enum pipe_format color_formats[] = {