mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
microsoft/compiler: Hook up uavs-at-every-stage flag
Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14294>
This commit is contained in:
parent
72b0d0cda0
commit
efc47571d4
1 changed files with 5 additions and 0 deletions
|
|
@ -950,6 +950,9 @@ emit_uav(struct ntd_context *ctx, unsigned binding, unsigned space, unsigned cou
|
||||||
add_resource(ctx, res_kind == DXIL_RESOURCE_KIND_RAW_BUFFER ? DXIL_RES_UAV_RAW : DXIL_RES_UAV_TYPED, &layout);
|
add_resource(ctx, res_kind == DXIL_RESOURCE_KIND_RAW_BUFFER ? DXIL_RES_UAV_RAW : DXIL_RES_UAV_TYPED, &layout);
|
||||||
if (res_kind == DXIL_RESOURCE_KIND_RAW_BUFFER)
|
if (res_kind == DXIL_RESOURCE_KIND_RAW_BUFFER)
|
||||||
ctx->mod.raw_and_structured_buffers = true;
|
ctx->mod.raw_and_structured_buffers = true;
|
||||||
|
if (ctx->mod.shader_kind != DXIL_PIXEL_SHADER &&
|
||||||
|
ctx->mod.shader_kind != DXIL_COMPUTE_SHADER)
|
||||||
|
ctx->mod.feats.uavs_at_every_stage = true;
|
||||||
|
|
||||||
if (!ctx->opts->vulkan_environment) {
|
if (!ctx->opts->vulkan_environment) {
|
||||||
for (unsigned i = 0; i < count; ++i) {
|
for (unsigned i = 0; i < count; ++i) {
|
||||||
|
|
@ -1233,6 +1236,8 @@ get_module_flags(struct ntd_context *ctx)
|
||||||
flags |= (1 << 13);
|
flags |= (1 << 13);
|
||||||
if (ctx->mod.feats.use_64uavs)
|
if (ctx->mod.feats.use_64uavs)
|
||||||
flags |= (1 << 15);
|
flags |= (1 << 15);
|
||||||
|
if (ctx->mod.feats.uavs_at_every_stage)
|
||||||
|
flags |= (1 << 16);
|
||||||
if (ctx->mod.feats.cs_4x_raw_sb)
|
if (ctx->mod.feats.cs_4x_raw_sb)
|
||||||
flags |= (1 << 17);
|
flags |= (1 << 17);
|
||||||
if (ctx->mod.feats.wave_ops)
|
if (ctx->mod.feats.wave_ops)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue