summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-04-26 23:17:41 -0400
committerMarge Bot <[email protected]>2020-04-29 16:25:06 +0000
commit6fe7d6758a5ddc09bc5d186b8219fb9ad807fad4 (patch)
tree2bb0e39acdebadbaf7a68835f8c6fc01db089429 /src
parenta2542deb63adb3b5536947bcf9610c0ceca9da28 (diff)
st/mesa: expose more SPIR-V capabilities
Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4760>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_extensions.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index b6f6091fb3a..386b035a052 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -1711,11 +1711,23 @@ void st_init_extensions(struct pipe_screen *screen,
struct spirv_supported_capabilities *spirv_caps = &consts->SpirVCapabilities;
spirv_caps->atomic_storage = extensions->ARB_shader_atomic_counters;
+ spirv_caps->demote_to_helper_invocation = extensions->EXT_demote_to_helper_invocation;
spirv_caps->draw_parameters = extensions->ARB_shader_draw_parameters;
spirv_caps->float64 = extensions->ARB_gpu_shader_fp64;
spirv_caps->geometry_streams = extensions->ARB_gpu_shader5;
+ spirv_caps->image_ms_array = extensions->ARB_shader_image_load_store &&
+ consts->MaxImageSamples > 1;
+ spirv_caps->image_read_without_format = extensions->EXT_shader_image_load_formatted;
spirv_caps->image_write_without_format = extensions->ARB_shader_image_load_store;
spirv_caps->int64 = extensions->ARB_gpu_shader_int64;
+ spirv_caps->post_depth_coverage = extensions->ARB_post_depth_coverage;
+ spirv_caps->shader_clock = extensions->ARB_shader_clock;
+ spirv_caps->shader_viewport_index_layer = extensions->ARB_shader_viewport_layer_array;
+ spirv_caps->stencil_export = extensions->ARB_shader_stencil_export;
+ spirv_caps->storage_image_ms = extensions->ARB_shader_image_load_store &&
+ consts->MaxImageSamples > 1;
+ spirv_caps->subgroup_ballot = extensions->ARB_shader_ballot;
+ spirv_caps->subgroup_vote = extensions->ARB_shader_group_vote;
spirv_caps->tessellation = extensions->ARB_tessellation_shader;
spirv_caps->transform_feedback = extensions->ARB_transform_feedback3;
spirv_caps->variable_pointers =